PDA

View Full Version : Help! floatation script problem


drewzer
01-22-2003, 07:33 PM
I'm following the rigging tutorial in max 5. Currently I'm doing the spine specifically writing the floation scripts. I can get the start angle to work just fine but when I get to the end angle I get this error message.

Type error: dependsOn needs a maxwrapper arg, got: undefined

Anyone have an idea how to fix this? I've gone back and checked my work up until this point twice and can't find the problem.

Thanks in advance

magicm
01-22-2003, 08:34 PM
Do a seach in the online reference of maxscript. You'll find that dependsOn needs a valid object as an argument.

So, if you want to make a scripted controller depend on (for example) Box01, you would say:

dependsOn $Box01

you can also use multiple objects, just seperate them with a space.

Make sure the objects you specify <u>exist in the current scene</u>!


Hope this helps.

drewzer
01-22-2003, 09:29 PM
Here's what I have in the script box. I might be missing that tag you mention at the end of your reply.

dependsOn $spineTopCTRL $spineCTRL;

top = degToRad $spineTopCRTL.rotation.z_rotation.controller.value;
bot = degToRad $spineBotCTRL.rotation.z_rotation.controller.value;

twist = top-bot

magicm
01-22-2003, 09:47 PM
Originally posted by drewzer
dependsOn $spineTopCTRL $spineCTRL;

top = degToRad $spineTopCRTL.rotation.z_rotation.controller.value;
bot = degToRad $spineBotCTRL.rotation.z_rotation.controller.value;

twist = top-bot


The first line refers to $spineCTRL which is not used in the script.. maybe you should change this to $spineBotCTRL ?

If this doesn't solve your problem, please attach (or email) your maxfile..

drewzer
01-22-2003, 09:52 PM
it won't let me attach the file here, I'd have to email it to you.

CGTalk Moderation
01-14-2006, 06:00 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.