How to do this in pop wrangle

   2292   2   0
User Avatar
Member
24 posts
Joined: May 2012
Offline
I created a new attribute in old pops by attribute node,named “catch_frame”.
I have setted the default value to -1.
And I can set it's value by an expression if($CATCH_FRAME == -1,$F,$CATCH_FRAME).

everything is OK!

I'd like to know:

How to do this in the new pops,by pop wrangle?

Attachments:
trttttt.jpg (157.1 KB)
Catch_Frame.hip (219.0 KB)

User Avatar
Member
8637 posts
Joined: July 2007
Online
here is one of the ways
basically in wrangle you can specify the default value of the attribute using:
type @name = constant_default_value;
so in your case something like:
float @catch_frame = -1;
if (f@catch_frame==-1) f@catch_frame = @Frame;
if you run it only on group you are interested in, it will mark the frame when the particle entered the group

Attachments:
catch_frame_fix.hip (224.3 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
24 posts
Joined: May 2012
Offline
tamte
here is one of the ways
basically in wrangle you can specify the default value of the attribute using:
type @name = constant_default_value;
so in your case something like:
float @catch_frame = -1;
if (f@catch_frame==-1) f@catch_frame = @Frame;
if you run it only on group you are interested in, it will mark the frame when the particle entered the group

Thanks!

Got it!
  • Quick Links