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: 

Material Override

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
3590 Views, 10 Replies

Material Override

Is there a material override function in Arnold. like the one seen for example with Mental ray's processing tab (3ds max render setting)?

If not is there a way to achieve the same function?

Thanks

Tags (1)
Labels (1)
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

Currently not - I will add it to the list !

Message 3 of 11
RGhost77
in reply to: Anonymous

You can use Operator to achieve this. Check this article : http://veda3d.com/override-material-for-arnold/


Royal Ghost | veda3d.com
Message 4 of 11
Anonymous
in reply to: Anonymous

This works, but for some reason doesn't work with a "toon shader"

I'm trying to use this: http://veda3d.com/override-material-for-arnold/

with this: https://support.solidangle.com/display/A5AF3DSUG/Toon+Shading+a+Mech+Tutorial

I want to render a "mechanical drawing" without losing all my actual materials. Trying to do a material override using operators as described above, but when I do it with a toon shader it crashes 3ds max every time

Message 5 of 11
RGhost77
in reply to: Anonymous

Message 6 of 11
Stephen.Blair
in reply to: Anonymous

The problem with the Toon shader and AOV shaders is fixed in Arnold 5.1.1.0

You'll have to wait for the next Maxtoa update (or download the latest Arnold and copy over all the files from the bin folder)



// Stephen Blair
// Arnold Renderer Support
Message 7 of 11
mpowers
in reply to: Anonymous

I also found the article https://veda3d.com/override-material-for-arnold/ that Mike Samoylov posted above, it has been updated to work with the current Max versions. @stephen Blair also has this on Youtube: https://www.youtube.com/watch?v=kiP5mgP7jTM&t=7s


My question is: is there a method for excluding some objects from the override (and still keep the polymesh class)

Mike Powers
Director of Animation \ Cramer

mpowers@cramer.com
https://vimeo.com/mpowers
3DBOXX W8920Processor 32.0 GB RAM
Dual Xeon CPU E5-2670 0 @ 2.60GHz, 2601 Mhz, 8 Core(s), 16 Logical Processor(s)
Windows 10 Enterprise - 1809
NVIADIA Dual RTX2080TI 11GB V 419.35
Message 8 of 11
Stephen.Blair
in reply to: mpowers

If you use operators, the selection expression can use not to exclude some objects

This is the example from the docs:

/group0/sphere* and not (/group0/sphere1 or /group0/sphere0)




// Stephen Blair
// Arnold Renderer Support
Message 9 of 11
mpowers
in reply to: Stephen.Blair

8313-1601660325028.png

I can't tell why this doesn't work. Is there an editor with Arnold syntax hi-lighting? I need more examples in the manual to be able to learn this. Is there a tutorial on selection expressions? I am pretty handy with RegEx...

Mike Powers
Director of Animation \ Cramer

mpowers@cramer.com
https://vimeo.com/mpowers
3DBOXX W8920Processor 32.0 GB RAM
Dual Xeon CPU E5-2670 0 @ 2.60GHz, 2601 Mhz, 8 Core(s), 16 Logical Processor(s)
Windows 10 Enterprise - 1809
NVIADIA Dual RTX2080TI 11GB V 419.35
Message 10 of 11
Stephen.Blair
in reply to: mpowers

Ground_Plane-Shadow_Matte is not an Arnold node.

@node is for getting all Arnold nodes, eg all polymesh nodes or all ginstance nodes.

Ground_Plane-Shadow_Matte sounds like the name of a polymesh node (or maybe of shader node). So you could test for that with

*.(name == '/Ground_Plane-Shadow_Matte')


Here's a list of all built-in Arnold nodes:

8324-maxtoa-kick-nodes.jpg



// Stephen Blair
// Arnold Renderer Support
Message 11 of 11

Like this:

*.(@node == 'polymesh' or @node == 'ginstance') and not *.(name == '/Ground_Plane-Shadow_Matte')




// Stephen Blair
// Arnold Renderer Support

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

Post to forums  

Autodesk Design & Make Report