[Closed] Wire Parameters
Hey all,
I am trying to wire the x position of a box to be driven by an attribute (named “Param1”) on a Attribute Holder in a point’s modifier stack.
This is the syntax i tried :
paramwire.connect $Point01.modifiers[1].Param1.controller $Box01[3][2][1] "Param1"
This gives me an error :
-- Runtime error: connect requires subAnims
When I access the Param1 controller ( $Point01.modifiers[1].Param1.controller) i get a valid controller. But when I try to get the subanims of the Point ($Point01.modifiers[1].numsubs), it returns 0.
I just need to drive the position of Box01 by the attribute that I have (Param1). Thanks for the help,
Vikram.
Hi Vikram,
try this :
paramwire.connect $Point01.modifiers[1].Custom_Attributes[1] $Box01[3][2][1] "Param1"
I don’t know the reason, but if you type directly the real path “$Point01.modifiers[1].Param1.controller” it doesn’t work. You must search and type the path with a array at the end.
Peul.
This should do it. Just replace the #Modifier with the name of the modifier which holds Param1.
paramWire.connect $Point01[#Modified_Object][#Modifier][#Param1] $Box01[#Transform][#Position][#X_Position] "Param1"