Jump to content

assign color per group


MENOZ

Recommended Posts

hi!

i have an imported object sequence, with many pieces of geometry.

with the connectivity SOP and partitionSop i create the various groups for each piece of geometry.

now i want to assign a different color to each group of polygons, randomly.

how can i use the groups i created to drive the color?

if i have point i can use the $PT, but here i have sheet_0 sheet_1 sheet_2 etc..

that's the hip file for example.

sheet.hipnc

Link to comment
Share on other sites

hi!

i have an imported object sequence, with many pieces of geometry.

with the connectivity SOP and partitionSop i create the various groups for each piece of geometry.

now i want to assign a different color to each group of polygons, randomly.

how can i use the groups i created to drive the color?

if i have point i can use the $PT, but here i have sheet_0 sheet_1 sheet_2 etc..

that's the hip file for example.

can't you use $CLASS from ConnectivitySOP as a seed for rand() for color?

  • Like 1
Link to comment
Share on other sites

I have attached connectivity and partition for making groups with $CLASS variable, but cant figure out how do i use the same for random color..?

Junaid

Append PointSOP -> Add Color, RMB -> Delete Channels, type in R: rand($CLASS) then in G: rand($CLASS+4) etc...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...