Lock object select

Next
 From:  marcorhino
1253.1 
Hi, Michael

It is possible to change the script lock. selection so as to to lock alone the object that it is chosen?

Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
1253.2 In reply to 1253.1 
Hi Marco, could you give some more details please? Which script was this? Was it the one that let you lock an object for point editing so that other objects could not be selected while you were dragging points around?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  marcorhino
1253.3 
Hi, Michael

script LOCK

http://kyticka.webzdarma.cz/3d/moi/

Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  marcorhino
1253.5 In reply to 1253.4 
Hi, Michael

It is itself actual this script.

But unfortunately I is not in a position of to change it.

You could help me

Thanks
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
1253.6 In reply to 1253.5 
Hi Marco, I did change the script above to do the reverse of the one that was on that page - that is to lock selected objects instead of locking unselected objects.

I'm sorry I don't understand what you want it to do instead? Can you please describe more about what you want it to do?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All