luthio1 Posted March 17, 2014 Share Posted March 17, 2014 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 regardsLuk@s voronoisplit_BUG.hip Quote Link to comment Share on other sites More sharing options...
Novaa Posted March 17, 2014 Share Posted March 17, 2014 (edited) 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 March 17, 2014 by Novaa Quote Link to comment Share on other sites More sharing options...
Skybar Posted March 17, 2014 Share Posted March 17, 2014 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 Quote Link to comment Share on other sites More sharing options...
luthio1 Posted March 17, 2014 Author Share Posted March 17, 2014 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. Quote Link to comment Share on other sites More sharing options...
luthio1 Posted March 17, 2014 Author Share Posted March 17, 2014 @ 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 regardsLuk@s Quote Link to comment Share on other sites More sharing options...
Novaa Posted March 18, 2014 Share Posted March 18, 2014 Weird , it seems to work for me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.