Jump to content

vex expression


tinboy

Recommended Posts

Hi guys

The following reads when a particle comes in a group and creates an attribute assigning the frame number when it came in the group for it:

Attribute Node:

Default: -1

Value: if(ENTER_RELEASE == -1, $F, @ENTER_RELEASE)

 

I'm trying to re-write it as a vex expression  in a popwrangle node as follow:

@enter_release = -1;

if(@enter_release==-1)@enter_release = @Frame;  
else @enter_release = @enter_release;

It displays the frame number when the particle came into the group but instead of displaying the same frame number when it came in it keeps on displaying the current frame number the whole time.

What am I missing here?




 

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