Jump to content
Sign in to follow this  
luthio1

voronoisplit - piece attrb. problem

Recommended Posts

Hey there,

 

I want to use the voronoisplit node to cut my geometry and then i want to group each piece of the resulting geometry.
But i can not acces the "piece" attribute correctly. (it seems to be an integer value)

In the example file i provide you with a setup in which i trie to use the piece atrb for the red color channel to demonstrate the problem.

I hope someone can help me out. This realy makes me headache.

Kind regards

Luk@s

 

voronoisplit_BUG.hip

Share this post


Link to post
Share on other sites

You have to promote your "piece" attribute to points and then call it with the "ramp from attribute" option in the color node.

voronoisplit_fixed.hip

Edited by Novaa

Share this post


Link to post
Share on other sites

You can't use $PIECE because that variable doesn't exist, but we can easily create it with an AttribCreate SOP. And then we can use the Partition SOP with $PIECE to put them in seperate groups. Hope it helps.

 

voronoisplit_BUG_dv.hipnc

Share this post


Link to post
Share on other sites

Thank you both i will have a look at your solutions.
I alsou found another way with a simple forach node and the piece as atrb. value.

 

Share this post


Link to post
Share on other sites

@ Novaa:

I still get a complete black cube in your file. It doesnt matter whicht values i feed into the color node or how i set the range or the color (still beeing in the Ramp From Attribute section).
Do you get a different color for each piece?
(i already solved the group problem but i would like to understand your way with the "ramp from atrb." as well ).

Kind regards

Luk@s

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×