Jump to content

Family Die Togather?


hosok2

Recommended Posts

Hi all,

Is there any way to access parent particle's attribute?

I used Split to make chidren and want to kill them when parent dies.

Please... somebody help me :(

Interesting topic title.

Not sure: Maybe join some groups to kill the family?

Or define an event that's going to trigger the actions?

Georg

Link to comment
Share on other sites

Interesting topic title.

Not sure: Maybe join some groups to kill the family?

Or define an event that's going to trigger the actions?

Georg

I haven't tried join. I'm not sure how I can use join in pop.

I tried event, and also not sure if this is correct way... anyway, it doesn't work.

I also tried to make children's lifespan same as parent's (lifespan - age) when they are born.

and also tried voppop...

could you look at my file? yellow nodes are my approach so far.

kill.hipnc

Link to comment
Share on other sites

You need to turn on the "Add ID Attributes" toggle in the Source POP's Add Attributes folder. That will give you what you want. The ID of the parent particle is contained in the "parent" attribute.

I usually set the "Add Generation Attribute" on as well. This tells me what generation the particle is found in the "gen" attribute. This comes in handy if your Split POP is going crazy birthing particles from previous splits. Let's you know that this is happening.

Armed with this, you could have a couple split POPs and cascade all the way up to the top if you had to kill the child and all of it's ancestors.

I would use a Group POP to collect all the expressions then use a Kill POP with the group fed in. It takes one full time step before you can kill a particle once it is marked for death. If you really want it dead on the current frame, you will have to increase the Oversampling parameter (time step) on the POP Network SOP above so that the particle network cooks between frames.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...