Notifications
Clear all

[Closed] Wire Parameters: Driving me nuts

Hey guys I am doing some rigging and I want to expedite the process of wiring 2 parameters together. Forgot to add I use Max2010 in Windows 7 – 64 Bit
I wrote a small script to do so:

obj1 = $[1] –object to wire
obj2 = $[2] –controller
paramWire.connect obj2.modifiers[#Attribute_Holder].custom_attributes[#Scale] obj1.transform.controller.scale.controller[#y_scale].controller “Scale_”

This does not work. I’ve even tried the explicit scene names, I’ve copied the code verbatim from the macro-recorder and that fails to work. It gives me an error stating that it requires sub anims. There are subanim controllers present. What am I doing wrong? I’d like to build this into a much bigger tool that would allow ease and speed up the process of wiring parameters together.

This is the output from the macro-recorder when I do it by hand:
paramWire.connect $Control_RedStats_005.modifiers[#Attribute_Holder].custom_attributes[#Scale_] $.scale.controller[#Y_Scale] “Scale_”

If I use that it also generates the same error.

Any help is greatly appreciated!

  • Alex
2 Replies

… because it can’t work.
if $[1] is an object the $[2] can’t be a controller.
$ means selected object or set of selected objects.

the wiring is also wrong but it’s an another story.

Dennis,
I got it working thanks man! I really appreciate the help. Something so simple I goofed on…
Anyhow thanks!
-Alex