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

[MtoA] aiOSLShader not working

Message 1 of 3
376 Views, 2 Replies

[MtoA] aiOSLShader not working

Hi there,


Maya 2020.2

I'm trying out OSL on MtoA, but so far I haven't been able to make the aiOSLShader node work.

Here's the really simple test code:

shader test(
    color A = color(1, 0, 0),
    color B = color(0, 1, 0),
    output color OUT = 0
    OUT = A + B;

I plug this in the baseColor attribute of a aiStandardSurface.

This work as expected on Vray for Maya and Mantra for Houdini, but on MtoA I just get either a grey color or a bluish mess with some buckets over the object staying grey.

It seems the problem comes up whenever I re compile the code: the very first time I create the aiOSLShader it works as expected, but changing anything will break the node which needs to be recreated from scratch.

It makes it impossible to write OSL shaders using MtoA, only an already finished shader will work.

Do you have a solution for this?

Tags (2)
Labels (2)
Message 2 of 3

Did you try with the most recent MtoA?

With MtoA 4.2.3, it works fine.


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

Thanks, I'll try it out as soon as I can.

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

Post to forums  

Technology Administrators

Autodesk Design & Make Report