Hi there,
MtoA 4.2.1.1
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?
Did you try with the most recent MtoA?
With MtoA 4.2.3, it works fine.