Random Extrude Values...

   7623   6   1
User Avatar
Member
258 posts
Joined:
Offline
I have an animated mesh that I am breaking using the primitiveSop, applying a small scale and then extruding. I need help in figuring out the correct way to put a random expression in the extrude distance so that I get a variety of extruded depth per primitive. Any help is greatly appreciated.
User Avatar
Member
30 posts
Joined: July 2010
Offline
I don't understand your question clearly but using rand($PR) as extrude value may solve your problem
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Hi,
See the attached scene file showing the sort of expression you can use

rob

Attachments:
rse_randprim.hip (46.9 KB)

Gone fishing
User Avatar
Member
258 posts
Joined:
Offline
hey…thanks for pointing me in the right direction at least, everybody gets stuck sometime.
User Avatar
Member
258 posts
Joined:
Offline
Circusmonkey thanks for the more correct and frankly nicer post.
User Avatar
Member
1 posts
Joined: Dec. 2013
Offline
Circusmonkey this is great.
I'm using Houdini15 and the polyextrudes look different.
How would you go about doing the same process in the new Polyextrude?
User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
- Generate random attribute for scale: use attribute randomize sop, class: primitive, name: zscale (set to dimensions: 1 (float))
- extrude sop: Distance: 1 under Local Control enable Distance Scale: zscale
(enable Divide into Individual Elements on the polyextrude sop)
  • Quick Links