PDA

View Full Version : Custom shape deselection callback


Inos
11-19-2011, 04:47 PM
Hello everyone,

I have a custom node built of multiple components. When the user selects some of them, they get highlighted. The problem is, if he just clicks someplace else in the viewport, the components remain highlighted.
I was wondering if there is a way to let the shape know it was deselected.

Thanks,
Inos

zoharl
11-20-2011, 11:03 PM
Using a scriptJob(), or something to that sort, maybe you can respond to click event inside the viewport, and respond by clearing the selection.
If there isn't such a thing, maybe you could envelop your environment in a huge sphere or a cube that would be transparent, but still selectable, and would catch mouse clicks.

CGTalk Moderation
11-20-2011, 11:03 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.