Search - User list
Full Version: using created Attributes
Root » Houdini Lounge » using created Attributes
aracid
Hi

I have a very simple question that's bothering me

when i create an attribute using attribcreate,
how can i access the created variable in a polyextrude sop?
i would want a variable created for each prim, so i can control the amount on a per prim basis.


any ideas would be great

thanks

aracid :-)
puma.snyder
I think you dont have access to $PR in the polyextrude sop, so maybe this works

Put down a box sop
append a polyextrude, set local scale values to 0.999 and toggle create Output groups on
append attribcreate sop and set it to work on extrudeFront group, for the value use something like rand($PR)
and for the primitive attribute name use “extrude”
append a primitive sop, set it to work on extrudeFront group and in the translate params put

$NX*prim(“../attribcreate1”, $PR, “extrude”, 0)
$NY*prim(“../attribcreate1”, $PR, “extrude”, 0)
$NZ*prim(“../attribcreate1”, $PR, “extrude”, 0)

Hope this works
Achim
aracid
works perfectly

thanks alot :-)

aracid
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB