MOKANA Posted September 23, 2016 Share Posted September 23, 2016 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 Quote Link to comment Share on other sites More sharing options...
celd Posted September 23, 2016 Share Posted September 23, 2016 if you are trying to accumulate a value, it could be a good idea to use sop solver instead Quote Link to comment Share on other sites More sharing options...
Atom Posted September 23, 2016 Share Posted September 23, 2016 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.