Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use a Custom Index from User Defined Properties

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
LStirk
233 Views, 2 Replies

Use a Custom Index from User Defined Properties

I'm trying to replicate a workflow I've used with V-Ray and Redshift in which a custom attribute on an object's User Defined Properties is used as an index for a switch node. Here I am using a custom attribute called isEmissive to determine if the material should illuminate red or nothing. I've seen the User Data Int node used for existing attributes on Object Properties but not for custom attributes. Just wondering if this is possible. A similar question was asked by another user a few years ago but I don't see a solution. Any suggestions would be appreciated. Thanks.

MAXtoA 5.0.1.4 (2022)

MaxtoA User Defined Properties.JPG

Tags (1)
Labels (1)
2 REPLIES 2
Message 2 of 3
Stephen.Blair
in reply to: LStirk

In the Arnold Parameters for the object, put this in the User Options:

declare isEmissive constant INT isEmissive 1

Now the object will have user data that you can query with the UserData shaders.




// Stephen Blair
// Arnold Renderer Support
Message 3 of 3
LStirk
in reply to: Stephen.Blair

Thanks. That works.

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

Post to forums  

Autodesk Design & Make Report