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?
How to do this in pop wrangle
2299 2 0- blove
- Member
- 24 posts
- Joined: 5月 2012
- Offline
- tamte
- Member
- 8640 posts
- Joined: 7月 2007
- Offline
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
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
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- blove
- Member
- 24 posts
- Joined: 5月 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