Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
Brent_Le_Blanc
2283 Views, 7 Replies

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.

1387-leaves-random.png

I was reading this:

1388-shaderglobals.png

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!!

Tags (2)
Labels (2)
7 REPLIES 7
Message 2 of 8

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

Message 3 of 8

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.

1389-objectid-leaf.png

Which is just a aiUtility node like shown below:

1390-objectidutility.png

Message 4 of 8

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.

1405-objectmode.jpg

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.

1400-hypershade2.jpg

1406-leafss.jpg

Hope this helps.

Message 5 of 8

Awesome! This is what I am looking for.

Thank you!

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

Message 6 of 8

@BrianFoley

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

Cheers!

https://vimeo.com/267041956

Message 7 of 8

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?

Message 8 of 8
brian_Foley
in reply to: NandoStille

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums