Copy Stamp, Reference particle by ID rather than PT?
5528 10 1-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
Hi, so I have copy sop on a pop network referencing the sphere. So I put a stamp “Resize” rand($PT)/4 on the uniform scale of the transform node to give variable sizes of the particle sphere.
This works up until the particles die, then there's a random resize popping thing that happens. I know why this is happening, the PT numbers are changing. So is there a way to reference by ID or is there a better way to do this?
This works up until the particles die, then there's a random resize popping thing that happens. I know why this is happening, the PT numbers are changing. So is there a way to reference by ID or is there a better way to do this?
Edited by timot.mo - Feb. 9, 2017 12:17:07
-
- sepu
- Member
- 457 posts
- Joined: Feb. 2012
- Offline
-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
-
- tamte
- Member
- 8723 posts
- Joined: July 2007
- Offline
don't use stamping for that
just append Attribute Randomize SOP after your dopnet
Attrib Name: pscale
Dimensions: 1
tweak distribution and values as you wish
and most importantly in Options tab check Seed Attribute
Copy SOP will pick pscale up and automatically scale each copy, much faster than stamping
just append Attribute Randomize SOP after your dopnet
Attrib Name: pscale
Dimensions: 1
tweak distribution and values as you wish
and most importantly in Options tab check Seed Attribute
Copy SOP will pick pscale up and automatically scale each copy, much faster than stamping
Edited by tamte - Feb. 9, 2017 17:23:08
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
-
- sepu
- Member
- 457 posts
- Joined: Feb. 2012
- Offline
on your point attributes where it says "id"
when you use attributes usually are lowercase, so it will be @id. You can create your own and name as you wish but I will recommend just staying how they are by defaults.
take a look at this
https://www.sidefx.com/docs/houdini15.5/vex/snippets [sidefx.com]
the expression will look like
when you use attributes usually are lowercase, so it will be @id. You can create your own and name as you wish but I will recommend just staying how they are by defaults.
take a look at this
https://www.sidefx.com/docs/houdini15.5/vex/snippets [sidefx.com]
the expression will look like
rand(@id)/4
-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
-
- sepu
- Member
- 457 posts
- Joined: Feb. 2012
- Offline
-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
-
- A-OC
- Member
- 253 posts
- Joined: July 2006
- Offline
-
- timot.mo
- Member
- 23 posts
- Joined: Dec. 2015
- Offline
A-OCYes! Thank for this! Something I can study! BTW Where is the force pushing your particles up?
Like this ?
EDIT: never mind, I can see that in the “source_first_input” inside the pop network, you set the “set initial velocity” Dropdown. Very cool, I didn't know that you could do this too.
Learning stuff.. this is fun
![](/static/djangobb_forum/img/smilies/smile.png)
Edited by timot.mo - Feb. 10, 2017 10:29:42
-
- Quick Links