using created Attributes

   3952   2   1
User Avatar
Member
154 posts
Joined: July 2005
Offline
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 :-)
User Avatar
Member
121 posts
Joined: July 2005
Offline
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
User Avatar
Member
154 posts
Joined: July 2005
Offline
works perfectly

thanks alot :-)

aracid
  • Quick Links