Lock object select

 From:  Michael Gibson
1253.4 In reply to 1253.3 
Hi Marco - I'm still not sure if I understand your question. Normally you would want to lock everything _except_ the objects that are selected, so the selected objects will still stay normally active.

That is done by the "LockUnselected" script on that page.

If you want to lock only selected objects, you should be able to do that by this modification to that script:

code:
script:var objs = moi.geometryDatabase.getObjects(), locked = moi.geometryDatabase.createObjectList(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); if ( obj.selected ) locked.addObject( obj ); } locked.lockSelection();


Please let me know if that is not what you are looking for.

- Michael