Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create and connect OSL shaders in a Maya scene?

1 REPLY 1
Reply
Message 1 of 2
zachcoley123
1237 Views, 1 Reply

How to create and connect OSL shaders in a Maya scene?

I am working with Arnold 5.2.0.0 and Maya 2018. (I cannot remember what MtoA version I’m using) I am using Maya 2018 because I need to use the Shave and a Haircut plugin which is currently only released for Maya 2018 as it hasn’t been officially built for 2019 or 2020 and I’m unable to build it myself.

I believe Arnold 5.2.0.0 supports OSL but can you create a OSL shader in Maya itself and simply apply that shader like you would a AiStandardSurface shader in the Maya Hypershade by just selecting an object and applying the shader? I know that newer versions of Arnold have a AiOSL shader built in (or whatever it’s called?) where you can create a new OSL shader and write or paste in the OSL code. Does the older Arnold 5.2 support something like this? I’m trying to use PyMEL and Python to automatically create OSL shaders in a Maya scene and apply them to objects so does anyone know how can I do this using PyMEL?

Finally I’d like to also ask what Maya attribute on the mesh do I use to connect the shader using PyMEL and is it the shader/node name that I connect or something else?


Thank you.

Labels (4)
1 REPLY 1
Message 2 of 2

The Arnold > About menu will show the version of MtoA

For Arnold 5.2, you will have MtoA 3.1


OSL shaders should work as described here: https://docs.arnoldrenderer.com/x/zoJ2Ag



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