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
Solved! Go to Solution.
Solved by Stephen.Blair. Go to Solution.
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.