Edit this macro to individually apply to all selected objects

Actually.. What I'd like is the code to plug into this or any other drag and drop macro that will let them apply to multiple objects. In this case, it specifically has to apply with only one object selected or else the newly "unique" controller will actually be instanced amongst all the objects currently selected which doesn't help. But most of the time the code would be sufficient if it just let me apply the macro to multiple selected objects. Here is the one I need fixed currently:

macroScript Macro9
category:"DragAndDrop"
toolTip:""
(
actionMan.executeAction 1 "450" -- Track View: Make Controller Unique
$.Transform.controller = prs ()
)

The reason I Need this is that Max's autocad importer makes objects that have a shared controller, so when you try to move one, it moves them all.. Also, you can't group those items that share or have an instanced controller.. and typically I want to group similiar items..

Thanks for any assistance with this.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
denisT's picture

macroScript

macroScript Macro9
category:"DragAndDrop"
toolTip:""
(
for obj in (selection as array) do obj.controller = copy obj.controller
)

it makes transform controller unique for all selected objects

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.