garf Posted June 10, 2020 Share Posted June 10, 2020 I've got a class prim attribute created by connectivity SOP - how can I randomize sort this value? i.e. like you would with a sort SOP Quote Link to comment Share on other sites More sharing options...
garf Posted June 10, 2020 Author Share Posted June 10, 2020 promote class as max to detail and then a wrangle on prims does the trick for me - it's not random but it's shifted which is good enough for what i need int max = detail(0, "maxclass", 0); i@class+=chi("shift"); if (i@class>max){ i@class-=max; } Quote Link to comment Share on other sites More sharing options...
neokovago Posted July 16, 2021 Share Posted July 16, 2021 Another solution: connectivity node just uses prim numbers. So if you put down a Sort before Connectivity, you can randomize it. 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.