script controller does not evaluate correctly.

script controller does not evaluate correctly.

har1sf0x
Advocate Advocate
471 Views
0 Replies
Message 1 of 1

script controller does not evaluate correctly.

har1sf0x
Advocate
Advocate

Hello.

 

During the creation of a maxscript i came face to face with a script evalution problem from script controllers.

 

Can please someone explain me why a script controller like the one below does not evalute correctly?

 

/* run the code and playback to see the results. at time 4 for example, if animationrange.start == 0, the position of the point should be [30,30,30]. i also checked the results with realtime playback, still incorrect.

 

a=point()
a=a.pos.controller=position_script()
custAttributes.add a (attributes test (parameters main (pos type:#point3 default:[0,0,0])))
a.script = "if NT == 0 then (this.test.pos = [0,0,0]) else (this.test.pos += [10,10,10])"

 

*/

 

I also noticed that the position was updating even when i was just closing the script controller's window (that's ok by me as long as it works correctly during playback).

0 Likes
472 Views
0 Replies
Replies (0)