Jump to content

Birth Probability from custom SOP attribute


Sagroth

Recommended Posts

I'm trying to make a setup where I can paint point values for particle source geometry and control birth via them.

The problem is - if I paint Cd of my geometry it can be used as $CR ($CG or $CB) in birth probability of source pop (the same is with other pre-existing attributes like Alpha -> $CA), but custom attributes (emitRate for example) aren't available in source pop like a $ local variables right away (they do exist as attributes though) - no problems to check "Create Local Variables" and use smth like $EMITRATE1 in the following nodes, but not in source pop itself.

Actually, I can make an expression for Birth Probability:

point("../../emitRate_paint", $P, "emitRate", 0)

and it actually works correctly, but prints a lot of warnings about $P unknown (I've attached a sample hip).

So, is there a better way to use custom attributes from sop right away in source pop?

emitRate.hip

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...