Using a POP attribute inside a Copy Sop

   3568   2   0
User Avatar
Member
113 posts
Joined: July 2005
Offline
Hi Everybody,

I created a POPnetwork , it's plugged in the input 2 of a CopySop (Template to copy to) .
For the Input 1 of the Copy SOP I just plugged a Sphere.

Inside my POPnetwork I used a Proximity Operator to add a Nearest Distance Attribute.

Now back in my CopySOP, I use stamp inputs .
So basically I would like to use my “nearest distance attribute” to drive the size of the spheres (so they don't intersect), using a “param” in the size parameter of the SphereSOP. I'm not sure if I have to use “poppoint”, and also how can I itterate within the points of the popnet for each sphere copy.

I hope I'm clear enough :?
Thanks in Advance

Julien
User Avatar
Member
1631 posts
Joined: July 2005
Offline
Hey Julien,

That's the beauty of copy-stamping. The iteration is done for you automatically. Use the point() function to read the “nearestdist” attribute from the POP Network or POP Merge SOP.

Here's an example hip file [home.adelphia.net].

Cheers!
steven
User Avatar
Member
113 posts
Joined: July 2005
Offline
Hey Steven,

Thanks for helping, that's working perfectly, as always !


Cheers !
Julien
  • Quick Links