Notifications
Clear all

[Closed] Local declarations not working in script controller

Hi zbuffer,

Your suggestion still yields the same result :(…no incrementation.

Here is how to do it:

*Add a Custom Attribute to the Scripted Controller’s track.
*Assign a Bezier Float controller to the Parameter in the Custom Attribute
*Create a variable called var1 in the Scripted Controller
*Assign the Controller of the CA Parameter to the variable
*In the Scripted Controller, enter


 var1.value += 1
 print var1.value
 [0,0,0]
 

Scrub the time line – the value will increment.
How you are going to reset it though is another story and up to you…

Heh yea I figured I’d have to do it using CAs…ah well

Page 2 / 2