Cd into a material network?

   6237   9   1
User Avatar
Member
36 posts
Joined: 11月 2019
Offline
I'm sure this is quite easy but can't seem to figure it out , how can I get my primitive object color into the Mantra shading network so that I can use it to control a mix map?
User Avatar
Member
36 posts
Joined: 11月 2019
Offline
I managed to get it!
For those that would benefit from knowing I just added a “shading layer parameter” node inside the material builder node and it takes in the Cd attribute really well, previously I was trying to using import attribute in just the material network and it didn't work.
User Avatar
Member
7 posts
Joined: 11月 2007
Offline
promote Cd to points in geometry. And in material use bind and read Cd attribute, configure bind to vector or 3 floats and connect as you want.
User Avatar
Member
36 posts
Joined: 11月 2019
Offline
Thank you Malkrus! that's good info
User Avatar
Member
109 posts
Joined: 12月 2014
Offline
If you want to keep your primitives colored and kept the colours not bleeding between the primitives then you should promote Cd to vertex attributes.
User Avatar
Member
7 posts
Joined: 7月 2024
Offline
I noticed there's no Bind node in the MaterialX builder -- is there a way to get the vertex Cd there too?
Edited by ray_roamer - 2024年10月23日 02:52:30
User Avatar
Member
460 posts
Joined: 2月 2012
Offline
geometry property value node
User Avatar
Member
35 posts
Joined: 5月 2014
Offline
sepu
geometry property value node
Makes no sense Sidefx do nodes like this. Considering is a VEX context like We see in vops, different names only confuse users.
By the way, I used it and didn`t work. Also make a new ramp and didn`t work.


For me, Karma is being a Karma in user`s life.

They could simplify more instead of creating a second Houdini inside it.
User Avatar
Member
35 posts
Joined: 5月 2014
Offline
ray_roamer
I noticed there's no Bind node in the MaterialX builder -- is there a way to get the vertex Cd there too?
Use the VEX material builder and the bind can be used.
User Avatar
Member
12 posts
Joined: 4月 2014
Offline
ray_roamer
I noticed there's no Bind node in the MaterialX builder -- is there a way to get the vertex Cd there too?

Please try this

USD Prim Var Reader node
Var Name displayColor
  • Quick Links