Materials¶
Monolithic Materials¶
Type |
Attribute |
Description |
---|---|---|
|
|
The name of the renderer-specific shader to use for the shader category with the given name, for example:
|
|
|
A group that contains attributes that represent the parameters of the
shader that is referenced by the
For example, a |
|
|
Network Materials¶
Type |
Attribute |
Description |
---|---|---|
|
|
Contains a child attribute for every Material Interface parameter of the Network Material which has been altered from its default value, for example using a Material node in edit mode. |
|
|
The current value of the exposed parameter with the given name expressed as an attribute, for example:
|
|
|
Contains child attributes for each shading node contributing to the
Network Material represented by the |
|
|
Contains child attributes that describe the shading node with the given
name, for example |
|
|
The name of the shading node, as determined by the value of the name parameter of the corresponding Katana shading node, for example:
|
|
|
The type of the shading node, as determined by the value of the nodeType parameter of the corresponding Katana shading node, referencing a particular shader that the node represents by its name, for example:
|
|
|
The name of the renderer that the shading node targets, for example:
|
|
|
The name of the Katana node that created this attribute, for example:
|
|
|
Contains a child attribute for every shader parameter of the node which has been altered from its default value. |
|
|
The altered value of the parameter with the given name expressed as an attribute, for example:
If the parameter is exposed in the Material Interface of the Network
Material (see |
|
|
Contains a child attribute for every connection going into the node. Note that non-contributing nodes are skipped for connections expressed
by this attribute (e.g. Dot nodes and disabled nodes),
whereas |
|
|
A reference to the output port on another node, given in the format
|
|
|
Contains two child attributes for every terminal of the Network
Material that is represented by the |
|
|
The name of the shading node connected to the terminal with the given name (which consists of the name of the renderer and the name of the shader category), for example:
|
|
|
The name of the output port on the shading node with the name that is
specified in the
|
|
|
Contains child group attributes for each shader parameter that has been exposed for the Material Interface of the Network Material. |
|
|
Contains child attributes that describe the exposed parameter with the
given name, for example |
|
|
The path of the source parameter that the exposed parameter represents,
given in the format
|
|
|
Contains child attributes for hints that have been set for the exposed parameter, which depend on the type of the parameter and the type of widget used for it. A couple of common parameter hints are documented below. For more information, see Widgets and Hints. |
|
|
Help text that has been set for the exposed parameter, which is made available to the user in the form of a help button in the parameter’s UI. |
|
|
The title of a page under which the exposed parameter is to appear, for
example |
|
|
Indicates the type of material that the For Network Materials, For Monolithic Materials, the |
|
|
The name of the NetworkMaterial node that created the Network Material. |
|
|
The version number of the |
|
|
The source network’s version number of the |
|
|
Added for Network Materials created by NetworkMaterialCreate nodes. See Network Material Layout Attributes section below. |
Network Material Layout Attributes¶
Note: Some attributes are equivalent to material.nodes
attributes
to ensure their availability for non-contributing nodes, e.g. Dot
nodes and disabled nodes. Those nodes do not contribute to the Network
Material’s result when it comes to rendering.
Type |
Attribute |
Description |
---|---|---|
|
|
Similar to The layout information stored in |
|
|
Contains child attributes that describe the Katana node with the given
name, for example |
|
|
The name of the type of the Katana node described by the
(A shading node type name is created as
|
|
|
The RGB component values of a color that has been applied to the node, for example:
|
|
|
A comment that has been set for the node, which may contain multiple lines of text. |
|
|
Boolean flag that states whether the node is disabled (
By default, nodes are enabled, and this attribute is not set. |
|
|
The name of the NetworkMaterialCreate or ShadingGroup node that contains the Katana node with the given name, for example:
|
|
|
The position of the Katana node as X and Y coordinates within its parent group node’s node graph, for example:
|
|
|
A list of descriptions of connections going into the node, each
following the format
Note that non-contributing nodes are taken into account for connections
expressed by this attribute (e.g. Dot nodes and disabled
nodes), whereas |
|
|
|
|
|
A group containing all of the node’s shape attributes. Supported types
for child attributes are |
|
|
A group containing a representation of all of the node’s
locally set parameters as they would appear under
|
|
|
A group containing a representation of all the node’s parameters, detailing their enabled state, value and type (see section below). |
|
|
A group containing a representation of all of the node’s “user” parameters. |
|
|
A group containing any node type-specific attributes (see section below). |
Parameter Variables Layout Attributes¶
All attributes in this section are inside the following attribute group:
material.layout.<node>.parameterVars.<parameter>
.
These attributes represent the raw parameter state before they are baked. In particular, these variables reflect what is shown in the Parameters tab.
Type |
Attribute |
Description |
---|---|---|
|
|
Trinary flag to indicate whether, when baked, this parameter should
forcibly use the default value ( |
|
|
The locally set value of this parameter. |
|
|
A string representation of this parameter’s type. |
Node Type-Specific Network Material Layout Attributes¶
Note: Some attributes are equivalent to material.nodes
attributes
to ensure their availability for non-contributing nodes.
All attributes in this section are inside the following attribute group:
material.layout.<node>.nodeSpecificAttributes
Shading Node
Type |
Attribute |
Description |
---|---|---|
|
|
The value of the name parameter of the Katana shading
node, equivalent to |
|
|
The value of the nodeType parameter of the Katana shading
node, equivalent to |
|
|
The name of the renderer that the shading node targets, equivalent to
|
|
|
A list of names of pages that are expanded to reveal their contents, with subpages denoted by > characters. |
|
|
A list of names of pages that are collapsed to hide their contents, with subpages denoted by > characters. |
Dot
Type |
Attribute |
Description |
---|---|---|
|
|
Boolean flag that states whether to display a Dot node with
a round node shape ( By default, Dot nodes are displayed with a round node shape, and this attribute is not set. |
Backdrop
Type |
Attribute |
Description |
---|---|---|
|
|
The size of the Backdrop node as width and height. |
|
|
The text of the Backdrop node. |
|
|
The font scale used for the Backdrop node, as a multiplier
(default: |
|
|
The Z order index of the Backdrop node. |
Switch
Type |
Attribute |
Description |
---|---|---|
|
|
The value of the Switch node’s ‘in’ parameter. |
|
|
The names and “display names” of the node’s input ports. |
ShadingNodeArrayConnector
Type |
Attribute |
Description |
---|---|---|
|
|
The names and “display names” of the node’s input ports. |
VariableSwitch
Type |
Attribute |
Description |
---|---|---|
|
|
The value of the VariableSwitch node’s ‘in’ parameter. |
|
|
The names and values of the node’s “patterns” child parameters. |
|
|
The names and display name labels of the node’s input ports. |
ShadingGroup
Type |
Attribute |
Description |
---|---|---|
|
|
A list of names of pages that are expanded to reveal their contents in the external interface of the ShadingGroup node, with subpages denoted by > characters. |
|
|
A list of names of pages that are collapsed to hide their contents in the external interface of the ShadingGroup node, with subpages denoted by > characters. |
|
|
Group containing the page expansion state for the internal output
interface, in the form of |
|
|
Group containing the page expansion state for the internal input
interface, in the form of |
|
|
Group containing an entry for every output port of the ShadingGroup node. |
|
|
The unique identifier name of the port. |
|
|
The display name label of the port. |
|
|
A list of string tag expressions for valid port connections. |
|
|
Group containing an entry for every output port of the ShadingGroup node. |
|
|
The unique identifier name of the port. |
|
|
The display name label of the port. |
|
|
A list of string tag expressions for valid port connections. |
|
|
A list of valid return connections, with each entry matching the format
|
Assigning Materials¶
To assign a material to an object, set a materialAssign
string
attribute on the scene graph location that represents the object to the path of
the scene graph location of the material to assign.
Type |
Attribute |
Description |
---|---|---|
|
|
The path of the scene graph location of the assigned material, for
example |
Material Underlays¶
Type |
Attribute |
Description |
---|---|---|
|
|
An attribute that, at material resolve time, is copied to the root level of the target location’s attributes, and merged underneath any existing attribute values at that location. This allows, for example, custom “default” renderer object settings to be specified for locations, which can be overridden by any locally-set values. |
|
|
This is primarily for debug purposes. After the implicit resolve these attributes are moved so that you can still see which material underlays have been processed, but are no longer at risk of being resolved again. |