question

Aten Skinner avatar image
Aten Skinner asked ·

Rendering vertex color in Maya (Maya 2019, Arnold 3.2.2)

Hi I'm trying to render a scene with a ton of objects that have vertex colors applied. What is the easiest way to set up a shader to render that? I read the help files and it suggests to add an attribute to each object (shapeNode) I want to render with vertex colour then use aiuserdatacolor, however I have thousands of objects and manually doing that is not an option (and I don't want to get into any scripting). I saw a tutorial where they used colorSets and used the colorSet name in the aiuserdatacolor node to render that but it doesn't work for me. Has anyone got a good workflow for doing something like this?

cheers - Aten

shaders
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.

Stephen Blair avatar image
Stephen Blair answered ·

vertex color will be exported as user data. you might have to enable a check box, but you don't have to add an attribute

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.

Aten Skinner avatar image
Aten Skinner answered ·

capture3.jpg

Ah I seem to have got it working! Changing the viewport from arnold to viewport2 and back and it seems to have updated :)


capture3.jpg (61.7 KiB)
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.

Aten Skinner avatar image
Aten Skinner answered ·

capture.jpgcapture2.jpg

Wow, thanks for quick reply! The manual must be out of date then as it talks about setting up attributes..

But see this scene I have a object with 1,0,0 vertex color. I set it up to use colorSet1 in the shader but it still renders with the default color from the shader instead of the vertex colors from the color set. I also have export vertex colors checked on the object (if that matters)


capture2.jpg (103.8 KiB)
capture.jpg (144.0 KiB)
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.