Jump to content

Custom Particle Attribute Access In Sop


Recommended Posts

Hi,

I have been trying to transfer a custom attribute from pops so I can use it inside sops but I have not been succesful so far.

1) How can I transfer this attribute?

Specific example:

I have a particle system, the particles are randomly moving upwards, then back down to 0.

I've added a custom attribute called "hypos" (highest y position) to calculate the highest $TY value that is reached by each particle. I want to use this highest value in Sops. This value should not be static, because if the particles go up higher, the highest point will change and I want the Sops to update accordingly.

I have read that I should be able to have access to this variable downstream from the point of creation.

2) Is this custom attribute that I added in pops local to the pop context?

3) How can I have access to this variable

I have tried accessing it in Sops using $HYPOS1 but that did not work, I have also tried $HYPOSX, did not work. I then tried getting just one value of one point out of the particle system using point("../popnet1", 12, "hypos", 0), did not work.

Does anybody know how to transfer these values?

Link to comment
Share on other sites

Thanks for the quick replies guys!

It is working now.

This was a crucial part of my network, it enables my textures to be switched at the right time.

This is why I needed it for:

http://www.peterclaes.be/temp/houdini_stuf..._o_full_res.avi

This was another initial test:

http://www.peterclaes.be/video/pca_0029.avi

For the rotation I was able to stay at pop level, but for the switching of the textures I needed to get that point expression working.

Thanks again for the examples!

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