Ctrl copies active

Next
 From:  Matt T (MATT_T)
5087.1 
Hi Michael, is it possible to have a moi.ini 'yes' / 'no' option for Ctrl copied objects to be active selected once copied. Example; if I select 10 closely spaced objects, do a Ctrl copy rotate where the newly created objects are on top of each other, it is sometimes hard to then select the newly created object. If these were active, instead of the originally selected, on duplication then this could be a good option.

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
5087.2 In reply to 5087.1 
Hi Matt - I think you can solve your problem by setting up a shortcut key with the script on it from here:
http://kyticka.webzdarma.cz/3d/moi/#SelectLastCommandCreated

Paste in that script for "SelectLastCommandCreated" into the command part of the shortcut key and then when you push that key the new objects that were generated by the last executed command will become selected.

That works with the output of any command, and it should give you the hook you want to access those particular new objects in the situation you were describing.

- 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:  coi (MARCO)
5087.3 In reply to 5087.1 
Hey Matt..

there is a script for this kind of behaviour:

SelectLastCommandCreated – selects all the objects that were generated by the last command. So for instance after finishing Array you can hit the shortcut key with this script on it, and all the results of the array will be selected.

script:var a = moi.command.lastCommandRevisionStart; var b = moi.command.lastCommandRevisionEnd; var objects = moi.geometryDatabase.getObjects(); for ( var i = 0; i < objects.length; ++i ) { var obj = objects.item(i); if ( obj.databaseRevision> a && obj.databaseRevision <= b ) obj.selected = true; }

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

~ Marco

P.S...too slow ;)
  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:  Matt T (MATT_T)
5087.4 
Thanks guys, just the right solution....
  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