RudyardKipling Posted March 19, 2020 Share Posted March 19, 2020 Hello good people, Let's say I have a particle simulation, I would like to store the position of every point at the starting frame and then later on, say frame 25, I'd like to reevaluate each point position. If the new number is different than that on frame one, ie the particle moved, something happens to the particle, it stops, turns green, whatever. Basically some kind of if statement, if newVal != oldVal: turn green Any help is welcome! Quote Link to comment Share on other sites More sharing options...
tamagochy Posted March 19, 2020 Share Posted March 19, 2020 Freeze frame and use point wrangle with first input actual points second - freeze one. int pt = findattribval(1, 'point', 'id', @id); vector pos = point(1,'P',pt); if(@P!=pos) do what you need your points should have id attribute 1 1 Quote Link to comment Share on other sites More sharing options...
RudyardKipling Posted March 20, 2020 Author Share Posted March 20, 2020 Ah, brilliant, it worked like a charm! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.