Notifications
Clear all

[Closed] Float Script evaluation

Hi,
I’ve added a float script controller to an xform modifer’s gizmo rotation.
my float expression is this:

-(refs.dependents this)[6].rotation.x

in the gizmo x rotation, of course.
It works, but it doesn’t update realtime – it does only if I click “evaluate” or scrub the timeline. Any idea on what I’m doing wrong?
max2009 64b.

3 Replies
 eek

Create a variable, pointing to the track you want. And then just refer to it in the script e.g

‘val’

thats all – you don’t need refs.dependants.

eek,
actually the refs.dependants is there just ’cause I can’t just create a variable – what I’m doing is creating a lot of references for a base object, than add an xform on top of the reference stack and make it “know” who its daddy is, in order to behave accordingly.
The last part (adding xform modifier, changing its controllers to script controlers etc) will be scripted, so theoretically I could do that, if adding a variable etc is scriptable – I’ll give that a look.
No clue about why the expression won’t work realtime? Or a way to force it?

Ok, piece of cake. I’ll just add a variable via script with addnode.
Thanks!
bye,
S