Nodebundle for playing with nodes

 From:  Michael Gibson
7777.1595 In reply to 7777.1594 
Hi Pilou,

re:
> Ps @ Michael : an object (say a solid) created by Elephant ( Elephant stopped or not) is
> just selectable by "box selection" and not by a simple click!

The object probably has hit testing turned off, there is a .setHitTest(bool) method on objects that can turn it on or off. Some geometry factories probably set it to off so that you won't start snapping on to the objects that have just been generated. That's for stuff like in the Extrude command you don't want to get object snaps on the object generated from your last mouse move.

If you run this script and do something to redraw the view (like zoom/pan/rotate) it should go back to normal behavior:

script: var objs = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); obj.setHitTest( true ); }

It's probably something that the node editor should do automatically on its output objects.

- Michael