using switch and instance parameter

   2746   2   2
User Avatar
Member
51 posts
Joined: Oct. 2019
Offline
Hello,

Just trying out my first wiggly steps here

I'm wondering how to use the switch node in conjunction with the collision node? I would like the particle to switch from being a point to a instance geometry when the collision happens.

Perhaps I'm trying out the wrong thing here, but I though that I could use the ‘collision’ nodes ‘hit’ as a trigger to switch the index.

Anyhow, a bit lost and would appreciate some help on my way.

best regards
stefan andersson
CG Supervisor - Important Looking Pirates
http://www.ilpvfx.com/ [www.ilpvfx.com]
User Avatar
Member
166 posts
Joined: Oct. 2008
Offline
Tjenare

Are you using the instance POP to get the geometry instanced or are you trying to instance the geometry at SOP level using a Copy SOP? I usually prefer the later but if your trying with a instance POP then try the following approach:

Make the collision POP add an attribute to the particles which has collided.
Create a group from the collided particles.
Instance the geometry onto that group.

I've attached a sample hip file.

Attachments:
instanceAfterCollision.hip (57.8 KB)

User Avatar
Member
166 posts
Joined: Oct. 2008
Offline
And if you want to do it at SOP level with a Copy SOP (which I prefer), just skip the instance POP and pipe the POP Network into a Copy SOP and and enter your group name in the Template Group parameter.
  • Quick Links