how to get primitive number instead of local variable $PR?

   3539   1   1
User Avatar
Member
1 posts
Joined: Oct. 2018
Offline
I'm trying to polyExtrude each piece of voronoi fractured grid with diffrent random distance using for-each loop.
But I can't figure out how to get primitive number to use with rand() function.
$PR local variable is just what I need here but it's obsolete now.
So how can I get that?

Attachments:
voronoi sample.hiplc (145.5 KB)

User Avatar
Member
720 posts
Joined: Sept. 2013
Online
You dont need a foreach for this. Just use a attribrandomize on primitives and set an extrude attribute for the polyextrude.

Attachments:
voronoi_sample_2.hiplc (166.9 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links