nguyenvuquocan Posted December 29, 2020 Share Posted December 29, 2020 (edited) Hi all master . I have a question . For example , i have a point , this point unhide at Frame 173 or 250 or a random frame . How can i get an attribute equal at this Frame ?. And if i have many points , how can i get it for every points ? . Please check image in bellow . Thank you . Edited December 30, 2020 by nguyenvuquocan Quote Link to comment Share on other sites More sharing options...
yibomination Posted January 4, 2021 Share Posted January 4, 2021 Hi, not a pro but you can add a attribute wrangle and initialize a new attribute with an empty parameter (remember to create the channel by press that button on the right side). Then under the channel type in $F to fill in the attribute. Quote Link to comment Share on other sites More sharing options...
lugnut Posted January 5, 2021 Share Posted January 5, 2021 Not sure if this is what you are asking but if you want to save a frame or time when something happens for the first time this is a simple way to do it: Let say you want to save the frame when a point reaches a certain height. First set with attribute create or wrangle: i@theFrame = -1; then in another wrangle: if(i@theFrame<0 && @P.y> someHeight) @theFrame = @Frame; the theFrame attrib will only be set to hold the frame number one time: when the is greater than the threshold and it hasn't already been set Quote Link to comment Share on other sites More sharing options...
nguyenvuquocan Posted January 6, 2021 Author Share Posted January 6, 2021 On 1/5/2021 at 7:51 AM, lugnut said: Not sure if this is what you are asking but if you want to save a frame or time when something happens for the first time this is a simple way to do it: Let say you want to save the frame when a point reaches a certain height. First set with attribute create or wrangle: i@theFrame = -1; then in another wrangle: if(i@theFrame<0 && @P.y> someHeight) @theFrame = @Frame; the theFrame attrib will only be set to hold the frame number one time: when the is greater than the threshold and it hasn't already been set Thank for help bro . But @Frame is alway change . I mean if i hava a point , this point has an attribute : A . And when Frame < 50 A = 0 . when Frame >= 50 A = 1 . And when A = 1 , has an attribute B and this attribute return 50. Sorry because my skill english so bad :'( . Hope you understand what i say . Quote Link to comment Share on other sites More sharing options...
lugnut Posted January 10, 2021 Share Posted January 10, 2021 Sorry! In my mind it was easier than reality - I forgot you need a solver sop to retain the frame value. Attaching a file. capture_frame_w_solver.hipnc 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.