User guide

132
Shader Inputs
Each connectable input parameter for a shader can declare what tag values it requires for a connection to be valid.
The user interface makes use of these declarations to only allow the user to make valid connections.
Tag values for an input input parameter are declared in .args files with the following syntax:
<args format="1.0">
<param name="diffStr" >
<tags>
<tag value="(color and diffuse and color4) or test"/>
</tags>
</param>
</args>
The following is the equivalent hint dictionary syntax:
{"PrmanShadingNode.parameters.diffStr": {
"widget": "null",
"name": "diffStr",
"transientHints": {"helpCaption": true},
"tags": ["color and diffuse"],
"helpCaption": "shader: MyShaderName - diffStr",
"coshaderPort": "True"
}
}
Logical Inputs
Boolean logic is available to make more advanced rules specifying which connections are valid for any input
parameter. The available operators are and, or, not, ( ', ' )
AND
<param name="diffStr" >
<tags>
<tag value="color and color4 and diffuse"/>
</tags>
</param>
18 TYPED CONNECTION CHECKING | SHADER INPUTS