Viewport assign random colors to geometry to easy read
1079 3 1- maxmax003
- Member
- 8 posts
- Joined: 12月 2016
- Offline
- Hamilton Meathouse
- Member
- 200 posts
- Joined: 11月 2013
- Offline
Definitely overkill but it works. Hip file attached.
float r=rand(@elemnum); vector color = vector(chramp('color', r)); vector colorpath[]; int colorpathindex[]; append(colorpath, color); append(colorpathindex, 0); usd_addprimvar(0, @primpath, "displayColor", "color3f[]"); usd_setprimvar(0, @primpath, "displayColor", colorpath); usd_setprimvarindices(0, @primpath, "displayColor", colorpathindex);
- maxmax003
- Member
- 8 posts
- Joined: 12月 2016
- Offline
- eikonoklastes
- Member
- 396 posts
- Joined: 4月 2018
- Offline
maxmax003You can ignore the code and save the wrangle to a shelf. You can then just click the shelf button next time to drop it in, or even assign a hotkey to it.
I was hoping for a toggle button somewhere in the UI, but thanks man, I can barely use wrangles in sops, learnings wrangles in lops seems a bit different looking at it
-
- Quick Links