Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

the Index in the token?

5 ANTWORTEN 5
Antworten
Nachricht 1 von 6
excentriPMNA2
412 Aufrufe, 5 Antworten

the Index in the token?

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

5 ANTWORTEN 5
Nachricht 2 von 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
Senior Software Engineer (Arnold)
Arnold Documentation | Arnold Downloads
Nachricht 3 von 6

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

Nachricht 4 von 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
Senior Software Engineer (Arnold)
Arnold Documentation | Arnold Downloads
Nachricht 5 von 6

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



Ashley Handscomb Retallack
Senior Software Engineer (Arnold)
Arnold Documentation | Arnold Downloads
Nachricht 6 von 6

thank you for your reply

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report