PDA

View Full Version : Type error: dependsOn needs a MaxWrapper


Inaudable
06-30-2005, 01:08 PM
Im trying to make a script to allow to set up a slider to set the rotational speed of an object but i keep getting this error when evaluating: -- Type error: dependsOn needs a MaxWrapper arg, got: 50.0

Here is the script:

dependsOn $SpinCTRL.modifiers[#Attribute_Holder].Custom_Attributes.Param1

SpinRate = $SpinCTRL.modifiers[#Attribute_Holder].Custom_Attributes.Param1
degtorad((CurrentTime)*31*SpinRate)

Aearon
06-30-2005, 05:13 PM
try this for the dependsOn:

$SpinCTRL.modifiers[#Attribute_Holder].Custom_Attributes

well, it's just what the error says, you need a maxwrapper node for dependson, all the param1 is is a float value (of 50.0) really.

look up maxwrapper in the reference, it'll explain it better than i can ;)

Inaudable
07-01-2005, 12:52 AM
Thanks Aearon! that works great!
But im sure i tried it like that once or twice :s ahh well at least it works now :D

CGTalk Moderation
07-01-2005, 12:52 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.