View Full Version : Custom shape deselection callback

11 November 2011, 05: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.


11 November 2011, 12:03 AM
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 November 2011, 12:03 AM
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.