[Closed] Tutorials on Script Controller
Hi everyone,
I’m looking to get some information on Script Controllers. I’m trying to find a website with a good overview of the script controller. I don’t have any specific application to it right now, but i’d like to get to know how it works with some basic tutorials and i’ll get in the more complicated stuff once I understand the basics. I’ve seen some stuff on scriptspot but it always feel too specific and often the code is already there so I don’t know how they got to it.
If you know of a good tutorial for script controllers, please let me know.
Thanks everyone for your time.
Cheers
Guillaume
Best to look at it is like this. It will run a script everytime the controller is evaluated, the result of that script needs to be of the same value that the type of controller is, like point3 on position and scale and quat on rotation. Note, there’s no guarantee it’s evaluated only once a frame! Accumulating values (dynamic effects) is tricky.
Simple example
Say you add a position script controller to box01 and start adding two controllers as variables v1 v2 from box02 and box03.
write this code (v1.value + v2.value)/2.
Press evaluate, now every time box02 or box03 moves it centers box01.
Read the helpfile on the controller and mxs help for maxscript and you should be on your way.
-Johan