PyMaterialXCore.NodeDef

class NodeDef

Bases: InterfaceElement

A node definition element within a Document.

A NodeDef provides the declaration of a node interface, which may then be instantiated as a Node.

See:

https://materialx.org/docs/api/class_node_def.html

Methods

__init__(*args, **kwargs)

getImplementation(*args, **kwargs)

Overloaded function.

getNodeGroup(self)

getNodeString(self)

hasNodeGroup(self)

hasNodeString(self)

isVersionCompatible(self, arg0)

setNodeGroup(self, arg0)

setNodeString(self, arg0)

Attribute Names

NODE_ATTRIBUTE = 'node'

Properties

ADJUSTMENT_NODE_GROUP = 'adjustment'
CATEGORY = 'nodedef'
CHANNEL_NODE_GROUP = 'channel'
CONDITIONAL_NODE_GROUP = 'conditional'
GEOMETRIC_NODE_GROUP = 'geometric'
ORGANIZATION_NODE_GROUP = 'organization'
PROCEDURAL_NODE_GROUP = 'procedural'
TEXTURE_NODE_GROUP = 'texture'
TRANSLATION_NODE_GROUP = 'translation'

Methods

__init__(*args, **kwargs)
getImplementation(*args, **kwargs)

Overloaded function.

  1. getImplementation(self: PyMaterialXCore.NodeDef, arg0: str) -> PyMaterialXCore.InterfaceElement

  2. getImplementation(self: PyMaterialXCore.NodeDef, target: str = ‘’) -> PyMaterialXCore.InterfaceElement

getNodeGroup(self: NodeDef) str
getNodeString(self: NodeDef) str
hasNodeGroup(self: NodeDef) bool
hasNodeString(self: NodeDef) bool
isVersionCompatible(self: NodeDef, arg0: str) bool
setNodeGroup(self: NodeDef, arg0: str) None
setNodeString(self: NodeDef, arg0: str) None