aracid
April 5, 2004 07:28:57
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
April 5, 2004 08:41:15
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
April 5, 2004 12:57:08
works perfectly
thanks alot :-)
aracid