Jump to content
MOKANA

Unable to change Node Parameter for each frame

Recommended Posts

I am using the following code to change the scale parameter in a geometry node:

{
s = @scale;

if (s < 1)
{
 if ($FF >= ch("/obj/CONTROLS/Start_Frame_HV"))
 {
  s = s + .25;
 }
}

return s;
}

I am able to grab the value, evaluate it, add .25 to it, and it is reflected on the desired frame.

However, after the very first time, it will not add to it and it stays at .25 until scene completion.

I have tried referencing it via the ch("...") function but it always comes back with a recursion too deep error.

Up until it hits the desired frame, which is 24, the value remains at the desired value of 0. Then at frame 24 it is set to .25, so this tells me that this script is evaluated at every frame, or am I missing something? I am able to increment it from 0 to .25 at frame 24, but nothing after that.

 

Any guidance would be much appreciated

 

Share this post


Link to post
Share on other sites

You don't need variable s at all.

Replace all occurrences of the variable s with @scale instead. After all, what are you returning s to anyway?

This is running in a wrangle, right?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×