question

Brent Le Blanc avatar image
Brent Le Blanc asked ·

Access Point ID from a MASH network to control variation similar to Object ID

So, I'm trying to randomize some leaves within a MASH network. However, none of my Object ID variation functions while the MASH network is active, because its counted as a single mesh.

I have to destructively freeze MASH network and Separate meshes into single leaves.

Ideally, I want to keep the MASH network live while the variation is working.

I want to take Point ID and drive my variation similar to how I can drive it with Object ID.

I was reading this:

Kind of unaware on how to apply this. I'm very new to python scripting, but it seems I may need to use a script because my utility nodes do not provide Point ID.

Any help would be awesome!

Thank you!!

shadersshading
leaves-random.png (1.6 MiB)
shaderglobals.png (76.9 KiB)
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 ·

Object ID is not going to work well with Mash unless you use the breakout node.

I got this working 2 ways.

You can change your mash type to instancer and change your aiUtility from Object ID to Object. It is a little sluggish in IPR and render updates.

If you need to keep it as Mesh then you can get color variations using your shader by adding a color node in your mash network and then use that information to drive the AiRange. This is a lighter setup but you may need to add a remap value node to even out the distribution.

Hope this helps.


objectmode.jpg (135.3 KiB)
leafss.jpg (292.2 KiB)
hypershade2.jpg (338.3 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.

Awesome! This is what I am looking for.

Thank you!

I'll be sure to give credit once my implementation is complete.

1 Like 1 · ·
Brent Le Blanc avatar image
Brent Le Blanc answered ·

@BrianFoley

Thanks Brian! Here is your suggestions in action in my latest tutorial.

Cheers!

https://vimeo.com/267041956

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.

Nando Stille avatar image
Nando Stille answered ·

But the "object" mode of aiUtility does not equal point Id, does it?

What if I am instancing one or more groups of objects instead of just single objects?

Why don't we have Arnold Export options (as on particleShapes) on the MASH network?

Or did I miss it?

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.

If your Mash network is instanced then the object mode of aiUtliity will give you point Id even with multiple objects. It should work exactly the same as it does outside of the network.

0 Likes 0 · ·
Brent Le Blanc avatar image
Brent Le Blanc answered ·

Is there a way to pipe in the Mash_ID node values into the hypershade? I'd like to pipe it in where I have leaf_ID currently.

Which is just a aiUtility node like shown below:


objectid-leaf.png (156.3 KiB)
objectidutility.png (18.1 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.

Brian Foley avatar image
Brian Foley answered ·

Are you not able to do this with a Mash_ID node or a Mash_Color node set to ID?

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.