Jump to content

Get An Attribute equal to Frame


Recommended Posts

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 . 
Untitledb3de13dc619a61ad.png

Edited by nguyenvuquocan
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 . 

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...