copy material to each primitive
3763 4 0- caesar
- Member
- 143 posts
- Joined: March 2014
- Offline
Hi all,
What is the best way to assign a different material to each primitive on a mesh and then randomize a few different parameters? Basically I want to “copy stamp” a material and have a few different parameters be randomized for each primitive - like change the color for each primitive, or change the specularity for each primitive. Is possible without doing some arcane vex or python programming?
~Caesar
What is the best way to assign a different material to each primitive on a mesh and then randomize a few different parameters? Basically I want to “copy stamp” a material and have a few different parameters be randomized for each primitive - like change the color for each primitive, or change the specularity for each primitive. Is possible without doing some arcane vex or python programming?
~Caesar
- Andy_23
- Member
- 918 posts
- Joined: March 2014
- Offline
Hi Caesar,
this isn't copying materials to different primitives, but you could add various attributes to your mesh to drive the shader. For instance, add a random color to your mesh using the color SOP set to primitives and random. Then in the shader use the bind VOP to access the attribute (enter the attribute name) and plug that into the color slot of the shader.
edit: There's of course the material style sheets and some CVEX, which is shown in one of the latest master classes, if I'm not mistaken.
I hope this helps.
Andy
this isn't copying materials to different primitives, but you could add various attributes to your mesh to drive the shader. For instance, add a random color to your mesh using the color SOP set to primitives and random. Then in the shader use the bind VOP to access the attribute (enter the attribute name) and plug that into the color slot of the shader.
edit: There's of course the material style sheets and some CVEX, which is shown in one of the latest master classes, if I'm not mistaken.
I hope this helps.
Andy
Edited by - March 4, 2016 16:51:42
- caesar
- Member
- 143 posts
- Joined: March 2014
- Offline
- caesar
- Member
- 143 posts
- Joined: March 2014
- Offline
- Sam Howell
- Member
- 86 posts
- Joined: Oct. 2013
- Offline
-
- Quick Links