The new polyextrude in H15 does not seem to support $PR any more.
In H14, I can extrude each prim by a different amounts, using rand($PR). But that no longer works. Is that correct? Any reason why this has been disabled?
Creating a prim attribute like ‘dist’ and then using ‘@dist’ or ‘$DIST’ also does not work any more.
H15 Polyextrude
5171 2 1- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
- pezetko
- Member
- 387 posts
- Joined: Nov. 2008
- Offline
The new workflow is a bit different and more focused towards attributes instead of per operator variables as $PR was in old extrude afaik.
If you want to get random extrusion per primitive:
1. Before polyextrude sop create float per primitive attribute named “localzscale”. This is extrusion distance multiplier.
For example with Primitive Wrangle:
f@localzscale = rand(@primnum);
2. In Polyextrude SOP set extrusion Distance to 1.
3. And then in Local Frames Attributes enable the Z Scale (default attribute is “localzscale”) so now it reads your custom extrusion scale defined in previous PrimWrangle.
If you want to get random extrusion per primitive:
1. Before polyextrude sop create float per primitive attribute named “localzscale”. This is extrusion distance multiplier.
For example with Primitive Wrangle:
f@localzscale = rand(@primnum);
2. In Polyextrude SOP set extrusion Distance to 1.
3. And then in Local Frames Attributes enable the Z Scale (default attribute is “localzscale”) so now it reads your custom extrusion scale defined in previous PrimWrangle.
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
-
- Quick Links