Grid random extrude ...

   3152   4   0
User Avatar
Member
398 posts
Joined: 8月 2015
Offline
Hi;

Please take a look at my attached files. I would like to extrude primitives on a grid randomly, but the expression doesn't work..!
I use “rand(@ptnum)” in Distance parameter of Poly_Extrude node.

Thanks.

Attachments:
Grid Random Extrude.hip (58.9 KB)
Capture.JPG (240.0 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Member
74 posts
Joined:
Offline
Hi,
assign a primitive Distance Scale (zscale) attribute to your grid with some random value.
Then you can use the “Distance Scale” attribute under “Local Control” tab in your PolyExtrude node. It is a multiplier to your extrude parameter.

Greets.

Attachments:
randExt.jpg (477.1 KB)

User Avatar
Member
398 posts
Joined: 8月 2015
Offline
Hi nicoM;

It works, thank you…
Edited by Masoud - 2017年3月6日 06:16:43
Masoud Saadatmand (MSDVFX)
User Avatar
Member
3 posts
Joined: 10月 2021
Offline
on the same topic, I am trying to add random rotation for each element on the polyextrude level.

Using a foreach loop I can get to the result I want, but a bit cumbersome.

On the left side, I was trying to find a way to iterate on each primitive within the expression set to Pre-Rotate parameter.
It is now currently hardcoded to "0", where I would like to iterate. Currently I get all faces with same orientation.

Thanks

Attachments:
randrot_polyextrude.png (233.3 KB)

User Avatar
Member
4394 posts
Joined: 2月 2012
Offline
Hi,

I don't think you can break down the execution of that parameter to vary for each primitive, but you can do it using a Primitive Wrangle.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
  • Quick Links