Jump to content

how to use SOP att to control POP emission


Recommended Posts

I am banging my head against the wall since yesterday to solve a simple POP problem ... :)

Basically i am trying to understand how we can control precisly POP emission.

- i have 4 point in SOP

- i have set a frame point att manually (with a dirty expression that i am not proud of ... :) )

- i have set a emit point att manually

I want to use this SOP to control my POP emission so basically :

- i want each point to emit at the frame define in my frameAtt ,

- and i want to emit a number of particle define in the emitAtt

Unfortunatly after many hours of test with some very exotic expression , i'm still stuck !

so any help would be wonderful .

Cheers

E

test_emit_with_SOP_attr.hipnc

Link to comment
Share on other sites

You need to control the geometry going in to your popnetwork node, rather than trying to do it in the source pop. So first off delete (SOP blast) any ponts not due to emit that frame (use an expression of the kind $FF < $EMITFRAME && $FF + 1 > $EMTFRAME - assuming emitframe is the frame attribute). You can them simply emit a particle for each incoming geometry point (use impulse emission with $NPT as the particle count).

Controlling the number of particles emitted per source particle is slighty harder. You could probably duplicate up the incoming points using a foreach sop, or use groups and a split sop in pops.

Link to comment
Share on other sites

Many Thanks for your help Peter ! :)

I have now a working solution with 99% SOP nodes.

I do find this solution quite geeky and not very straightforward , i post it just in case it could help someone in front of the same pb.

But i would like to know if someone would have a more elegant-simple way to achieve this , by simply transfering att from SOP to POP.

Thanks again for your support !

Cheers

E

test_emit_with_SOP_attr_OK.hipnc

Edited by sebkaine
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...