Hi, everyone.
My simple question:
What's the difference between $PT and $ID?
One is point number and another is ID number.
They're useful in using particles.
I put it in this way to say, A Point has PT and ID, doesn't it? :roll:
Thanks for your reading.
What's the difference between $PT and $ID
16290 5 1- sisqosnew
- Member
- 57 posts
- Joined: Feb. 2006
- Offline
- anamous
- Member
- 186 posts
- Joined: Jan. 2006
- Offline
in POPs, particles have both $PT and $ID. the main difference is that when particles die, the $PT of the remaining particles mostly will change ($PT always goes from “0” to “amount_of_points - 1”), whereas $ID remains constant. a good way to remember this is that $ID is a point attribute, whereas $PT is just the index of the point in the group of all points.
so if you have expressions that rely on some point numbering to achieve an effect (like say rand($PT) for a random number based on the point number), you should use the id of the particle instead, since that is guaranteed to stay the same (so you'd use rand($ID)).
sorry for the complicated way of explaining cheers
so if you have expressions that rely on some point numbering to achieve an effect (like say rand($PT) for a random number based on the point number), you should use the id of the particle instead, since that is guaranteed to stay the same (so you'd use rand($ID)).
sorry for the complicated way of explaining cheers
- sisqosnew
- Member
- 57 posts
- Joined: Feb. 2006
- Offline
- DanTrip
- Member
- 6 posts
- Joined: Nov. 2016
- Offline
- addysmith
- Member
- 6 posts
- Joined: Aug. 2018
- Offline
- Rebus B
- Member
- 80 posts
- Joined: June 2013
- Offline
-
- Quick Links