Addressing each Piece after Vornoi Fracture - ANSWERED

   2065   4   1
User Avatar
Member
18 posts
Joined: Oct. 2014
Offline
Hey Guys,

I have a little question about the vornoi fracture in combination with the expodedView SOP. After the fracturing I want to address each piece (through the name attribute) or make two groups (even odd numbers) for different “explosion amplitudes”.

Hope you understand my question, if not i can post my hip file.
Edited by - Dec. 16, 2014 18:31:40
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Create a prim attribute called “even” by

fit01(opdigits($NAME)%2, 1, 2)

then multiply scale value by this attribute using prim() function.
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Here is file:

Attachments:
rand_explodedview.hip (181.5 KB)

User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
I used name attribute to do that. You can use groups also.
User Avatar
Member
18 posts
Joined: Oct. 2014
Offline
Big Thanks!Exactly what I was looking for
  • Quick Links