VEX: store @P from frame one
2137
2
1
-
- olivierth
- Member

- 1177 posts
- Joined: April 2017
- Offline
Hi!
I'm using @P to scatter some shapes on a dress. When I play the animation, some funky stuff happens because the @P changed over time.
How can I “store” the @P found at frame one and never change it after?
Thanks.
-Olivier
Attachments:
transfer_scatter_to_animated_dress.JPG (268.0 KB)
-
- BabaJ
- Member

- 2164 posts
- Joined: Sept. 2015
- Offline
Branch the source node with a timewarp node set to desired frame you want to “catch/freeze” the values at.
Then in the other branch use a vex function like the pointattrib() function to bring in the values from that timewarp node.
Edited by BabaJ - May 19, 2018 21:23:49
-
- olivierth
- Member

- 1177 posts
- Joined: April 2017
- Offline
Ahhh!!
Sounds way more efficient than what I was trying…
Thanks BabaJ!
-Olivier