question

James Earnest avatar image
James Earnest asked ·

Transfer Attributes from Packed Primitives

When rendering packed primitives generated with a Copy to Points SOP, is there a way to transfer per-copy Cd attributes on to the shader? The User Data RGB node doesn't seem to support this. I think it only transfers the Cd attribute from the original uncopied geometry, not on a per-instance basis. I want to render each copy with its own color.

Thanks!

standard surfaceuser_data
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.

Brian Foley avatar image
Brian Foley answered ·

yes, make sure your second color is being copied in the copy to points node and then use attribute promote using point to prim.

Then use the name of that color in the User Data node.


packedprim.jpg (236.7 KiB)
1 comment 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.

Hi @Brian

I am trying to do the exact same thing in maya Arnold and I can not seem to make it work. I am not sure what I am doing wrong :/ could you give me a hand by chance? :)

https://drive.google.com/file/d/1P8A_KU256MQfXaeEc_WNuNAu5j1RaygI/view?usp=sharing

Here is my scene


0 Likes 0 · ·
James Earnest avatar image
James Earnest answered ·

Thank you Brian, that got it working. I didn't know I could use primitive attributes as well in the User Data node.

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.