question

Carlos Dordelly avatar image
Carlos Dordelly asked ·

C4DtoA | User Data int - Cloner Index

Hi! Is it possible to get the index value of a cloner object with the "user_data_int" shader?

Thanks!

shadersuser_dataindex
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Peter Horvath avatar image
Peter Horvath answered ·

No, it's not possible at the moment, only the display color of the objects is exported as user data.

I can add the index as well, if we agree on what the index is, since this concept is missing from the SDK. And it's not as simple as it seems. The Cloner generates an object tree, so the index can be based on a breadth-first traversal.

What about objects not exported to Arnold (e.g. Null objects), do they have an index or not?

What about Cloner under a Cloner, where does the index come from?

Also I'm not sure if the generation order is well-defined, so it might be that the order in the tree is different when the Cloner changes (e.g. different number of clones, objects are hidden, a different effector is used, etc.).

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.