Jump to content

Unable to change Node Parameter for each frame


MOKANA

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...