tuly Posted October 7, 2024 Share Posted October 7, 2024 Hi everyone. I'm trying to save the value of a specific frame in a variable. I want that when a sphere reaches a specific place in time, it captures that frame number for later use. Does anyone know how to do this? I'm trying to put it in a variable and then when I exit the if loop I equal it to itself so that it saves that value, but it's initialized to 0. Quote Link to comment Share on other sites More sharing options...
Atom Posted October 7, 2024 Share Posted October 7, 2024 (edited) Try plugging a Time Shift node of the frame you want into the second input of your wrangle. You can fetch any attribute from that point in time by using the point expression... f@my_attribute = point(1,"my_attribute",@ptnum,0); Edited October 7, 2024 by Atom 1 Quote Link to comment Share on other sites More sharing options...
tuly Posted October 8, 2024 Author Share Posted October 8, 2024 If in the scene, which is more complex, I have the timeshift to capture said attribute, the problem I encounter is that for some reason, @Frame does not let me keep the value of the frame, in this case 206 is reset to 0. I don't know how to control @Frame so that the information of that frame is saved, I have tried to repeat it with "i@active == i@active" to leave said value. Thank you very much for your answer. Quote Link to comment Share on other sites More sharing options...
kushaldas Posted October 15, 2024 Share Posted October 15, 2024 You might have a bit more luck by running your wrangle inside of a solver after copying over the 'myat' attribute from the previous time step, so it can store all the attributes that were evaluated in all the previous time steps 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.