In the Connection Editor select outValue on the left side (node outputs) and surfaceShader in the right side (object inputs): To Apply the OSL shader to an object as a surface shader, disconnect the object’s current surface shader if it has one,Īnd then drag and drop the aiOSLShader node from the Hypershade window onto the object. * OSL shaders can be surface shaders, volume shaders, procedural textures, texture processors and more. ![]() Depending on the type of output the OSL shader generates, the aiOSLShader node should to be connected to an input in the object’s shader graph or Shading Group.After the OSL code is compiled successfully, the shader’s input parameters can be accessed in the OSL Attributes section below the code:. ![]() You can read the error message in the Maya output window, or in the Maya Script Editor, Correct the code and press Compile OSL Code again.
0 Comments
Leave a Reply. |