sweep sop and custom point attrs

   3734   3   3
User Avatar
Member
21 posts
Joined: Nov. 2010
Offline
Is it possible to pass a custom point attribute into the “Scale” property of the sweep sop? In other words, each point on my backbone curve has a ‘myScale’ attribute and I want each cross section geometry to be uniquely scaled according to myScale. Sample hip is attached.

Thanks for any help.

-Greg

Attachments:
sweep_sop.hip (66.2 KB)

User Avatar
Member
1807 posts
Joined: Oct. 2010
Offline
that is because $MYSCALE is not available as a local variable since circle1 is the mesh you are feeding as the main input of the sweep SOP. $MYSCALE is only available as a local variable for operators that use create_scale_attr as their main input (like the ray SOP I added to your example)

You can however use point() to actually get the value, like this:

point(“../create_scale_attr”, $PT, “myScale”, 0)

Attachments:
sweep_sop_133_fix.hipnc (72.2 KB)

-G
User Avatar
Member
700 posts
Joined: March 2009
Online
You can by using the “point” expression.

cheers

Attachments:
sweep_sop_133.hipnc (67.5 KB)

Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
21 posts
Joined: Nov. 2010
Offline
Thank you both for your help.
  • Quick Links