Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the Index in the token?

5 REPLIES 5
Reply
Message 1 of 6
excentriPMNA2
244 Views, 5 Replies

the Index in the token?

In the <attr:> token, could you teach a example that the index is used?

5 REPLIES 5
Message 2 of 6

The <attr:bla index:faceset default:none> token is used when referencing a string array attribute, to query the index of a string array element.

It relies on a second user attribute of UINT type. I've attached an example ass file and textures to demonstrate it.



Ashley Handscomb Retallack
Arnold Support Specialist
Arnold Documentation | Arnold Downloads
Message 3 of 6

thank you, but, I'm maya user. I want to check your file. Could you send me a maya file format?

Message 4 of 6

Currently, MtoA does not export User Data as UINT from custom attributes so you need to use the "User Options" attribute on the shape. Here's a Maya 2018 scene demonstrating it.

maya-attr-index.zip



Ashley Handscomb Retallack
Arnold Support Specialist
Arnold Documentation | Arnold Downloads
Message 5 of 6

Also note there is currently a bug so you need to make sure a default: value is set.



Ashley Handscomb Retallack
Arnold Support Specialist
Arnold Documentation | Arnold Downloads
Message 6 of 6

thank you for your reply

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

Post to forums  

Autodesk Design & Make Report