Cutter
|
IntroductionThis tutorials outlines the features of Cutter that support the writing of OSL shaders Syntax ColorationCutter applies a syntax coloration scheme to OSL source code - listing 1. |
|
Listing 1 - OSL Syntax Coloration
|
|
|
|
User Source Code & Compiled Shaders PathsExample paths might be as follows.
maya/projects/
|_ Arnold_osl/ <<-- compiled .oso files go here
| src/ <<-- source code .osl files go here
maya/rfm_scripts/
|_ nodes/ <<-- compiled .oso files go here
| osl_src/ <<-- source code .osl files go here
|
shader
stToColor(
float s = 0 [[
string widget = "null",
int lockgeom = 0
]],
float t = 0 [[
string widget = "null",
int lockgeom = 0
]],
color patcolor = color(1,1,0)
[[
string label = "Pattern Color",
]],
output color resultRGB = 0
)
|
<args format="1.0">
<shaderType>
<tag value="pattern"/>
</shaderType>
<help>
No Description Available.
</help>
<param name="patcolor"
label="Pattern Color"
type="color" default="1 1 0"
input="True">
<tags>
<tag value="color"/>
</tags>
</param>
<output name="resultRGB"
label="resultRGB">
<tags>
<tag value="color"/>
</tags>
</output>
<rfmdata nodeid="1" classification="rendernode/RenderMan/pattern"/>
</args>
|
Typing CompletionCutter also implement simple typing completion. Completion is activated by the tab key. |
© 2002- Malcolm Kesson. All rights reserved.