Community
Maya Dynamics
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya dynamics topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

XGEN: Custom Shader Parameters issue & render in mental ray

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
867 Views, 2 Replies

XGEN: Custom Shader Parameters issue & render in mental ray

How do I make xgen read the Custom Shader Parameters to my Archived object and render in mental ray.
 
I have an expression apply to Custom Shader Parameters: Color color
$a=[rand( 0, 1 ,$id),rand( 0, 1 ,$id+1),rand( 0, 1 ,$id+2)];#-1.0,1.0

$a

I follow tutorial from  Pedro Fernando Gómez's Tutorial in Arnold.
https://support.solidangle.com/display/mayatut/Assigning+Random+Colors+to+Primitives

He uses aiUserDataColor > color Attr Name : color
And link aiUserDataColor to model & aiStandard
 
How can achieve this method in mental ray? 
i hv tried 
mentalrayUserData
mib_data_color
mib_data_get_color
 
but does not seems to simulate the random color i applied in Custom Shader Parameters.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Hi there. Maybe you can take an help from my post on cgtalk.

http://forums.cgsociety.org/showthread.php?f=87&t=1213084

Message 3 of 3
dunetune
in reply to: Anonymous

I got exactly the same problem.

did you solve it meanwhile?

 

if yes, please let me know how.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report