pclaes Posted May 9, 2007 Share Posted May 9, 2007 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? Quote Link to comment Share on other sites More sharing options...
aracid Posted May 9, 2007 Share Posted May 9, 2007 that should work in theory, take a look at the file, that uses the point expression to extract a custom particle attrib. customVar.hip Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted May 10, 2007 Share Posted May 10, 2007 hope this helpd EDIT: aah. looks like aracid beats me to it. plim_heighestAttrib_example.hip Quote Link to comment Share on other sites More sharing options...
pclaes Posted May 10, 2007 Author Share Posted May 10, 2007 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! Quote Link to comment Share on other sites More sharing options...
rdg Posted May 10, 2007 Share Posted May 10, 2007 This is why I needed it for: Looks funny! Georg Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.