Notifications
Clear all

[Closed] depends on 2010

the scripted controller in max2010 gives error when using the depends on statement and its not therefore backward compatible . is there any other workaround for this other than using the controller.addnode <name> <node> and then reworking out the script.! pain to fix the old scripts which create scripted controllers

any help is appreciated thanks

4 Replies
 PEN

Well I’m going to tell you that you are far better off correcting the scripts. DependsOn just shouldn’t be used any more as it is very slow compared to adding nodes, controllers or tracks and using the variable in the expression. Setting up a new script in 2010 using dependsOn works just fine and since the point where dependsOn was replaced with the new variables I know that I have loaded old files that still used it.

What are the error messages and do you have any files that I can test?

So where are you working in Toronto? Lived there all my life, well I’m in Uxbridge now but close enough.

nvm, ah my bad it was not the dependson statement that was causing the error it was a typo “depends on” darn that’s what happens when you program 24 | 7 (the white spaces get blurred out :P) … extremely sorry for the post. (the script i was talking about is a simple script that creates a strand of dna, from boxes just to demonstrate the delay text field in the expression controller)

I think an introduction is in place… my name is charles did schooling in U.K had to come to canada for higher ed. (personal reasons )… currently i am pursuing computer science engineering at university of toronto (u of t ;)). i love adobe flash , actionscript 3.0 and jsfl… learning since 9th grade (version 5 if i remember clearly) as for 3d max well its been 2 years *only a couple of months since i started learning maxscript though wow its amazing opens a new world, Automation is amazing in all software’s by the way even VBA in microsoft word gives a lot of power, Jsfl in flash … etc.
spend most of my “free” time in max modelling and rigging industrial robots and i find maxscript can be a lot help ful along with ik controllers and the limit , look at controllers.
when it comes to programming … fan of .net [why doesnt the maxscript editor have intelisense ] i remember old days (talking bout vb6.0 openning a process handle meant looking in the api viewer again and again and again…) but i think the vb 6.0 editor is better than maxscript editor :P. other languages i learn -> php sql and jscript and OpenGL <= helps understand maxscript more clearly (talking about the transformation matrix although in opengl its upside down ( rows and colums i mean :P) )

LOL “working” not yet but soon hopefully…

ps:i was checking out the riggin dvd series it looks amazing . i have started saving for it already. I have problem understaning lip sync… so i was thinking of trying the facial rigging dvd wish there was a series on mechanical rigs as well

 PEN

Well welcome to Toronto.

There is no reason that you should be using dependsOn at all in the script controllers so just stop using it and you will not have any more problems. The best way to work with it is to add the needed variables and assign them to the nodes and tracks that you will need to access.

Never use an objects name in a script controller either. There are two reasons for this, first it is slow as every time the script controller runs it needs to search the scene for the object. The second is that it can break very easily just by changing the name of the object you are trying to access.

What is it that you are taking at UoT? I teach at Humber College when I’m not in production with PEN.

yep totally agree with that the new scripted controller is pretty good. bye bye “dependson”

ps: i am doing CSC course computer science enggineering. second year @ uot.!