Simple problem, cannot find the solution.
I need to set an attribute based on the current frame, something like this:
if(@Cd.r >= 0.9){
f@t = @Frame;
}
...and I need @t to hold that value, and not change along with the current frames.
Why I need this: I'm trying to control the offset of animated redshift instances by starting the animation once @Cd.r passes a certain threshold. Once the animation starts, the counter for that specific instanced object needs to start at 0, and increase along with the time slider, like so:
@f = @Frame - @t;
string frameNumber = sprintf("%g%", @f);
s@instancefile = concat("$HIP/filepath.", framenumber, ".rs");
Any idea on how to do this?