Notifications
Clear all

[Closed] paste instanced controller

hello
I am trying to write a script that copy a controller and paste it (with the instance option) to an second selected node

a = selection[1]
b = selection[2]
i = a[3][2].controller
(for an euler rotation controller)[b]
j = b[3][2].controller

[/b]But i can’t find the instance copy controller maxscript command like
“copy i to j”

how can i do that ?

Arno
arno3d.blogspot.com

2 Replies
1 Reply
(@zeboxx2)
Joined: 11 months ago

Posts: 0

To instance a controller, you just make a direct reference:

b[3][2].controller = a[3][2].controller

For a copy, you’d use:

b[3][2].controller = copy a[3][2].controller

So simply like that ! incredible
It is much more faster than I did before : copying/paste the controllers in the trackview.

thank you

Arno
arno3d.blogspot.com