PyMaterialXCore.InterfaceElement¶
- class InterfaceElement¶
Bases:
TypedElementThe base class for interface elements.
An
InterfaceElementsupports a set ofInputandOutputelements, with an API for setting their values.Inherited by:
GraphElement,Implementation,Node,NodeDef, andVariant.Methods
Attribute Names¶
- NODE_DEF_ATTRIBUTE = 'nodedef'¶
Methods¶
- __init__(*args, **kwargs)¶
- addInput(self: InterfaceElement, name: str = '', type: str = 'color3') PyMaterialXCore.Input¶
- addOutput(self: InterfaceElement, name: str = '', type: str = 'color3') Output¶
- addToken(self: InterfaceElement, name: str = 'color3') Token¶
- clearContent(self: InterfaceElement) None¶
- getActiveInput(self: InterfaceElement, arg0: str) PyMaterialXCore.Input¶
- getActiveInputs(self: InterfaceElement) list[Input]¶
- getActiveOutput(self: InterfaceElement, arg0: str) Output¶
- getActiveOutputs(self: InterfaceElement) list[Output]¶
- getActiveToken(self: InterfaceElement, arg0: str) Token¶
- getActiveTokens(self: InterfaceElement) list[Token]¶
- getActiveValueElement(self: InterfaceElement, arg0: str) ValueElement¶
- getActiveValueElements(self: InterfaceElement) list[ValueElement]¶
- getConnectedOutput(self: InterfaceElement, arg0: str) Output¶
- getDeclaration(self: InterfaceElement, target: str = '') InterfaceElement¶
- getDefaultVersion(self: InterfaceElement) bool¶
- getInput(self: InterfaceElement, arg0: str) PyMaterialXCore.Input¶
- getInputCount(self: InterfaceElement) int¶
- getInputs(self: InterfaceElement) list[Input]¶
- getNodeDefString(self: InterfaceElement) str¶
- getOutput(self: InterfaceElement, arg0: str) Output¶
- getOutputCount(self: InterfaceElement) int¶
- getOutputs(self: InterfaceElement) list[Output]¶
- getTarget(self: InterfaceElement) str¶
- getToken(self: InterfaceElement, arg0: str) Token¶
- getTokenValue(self: InterfaceElement, arg0: str) str¶
- getTokens(self: InterfaceElement) list[Token]¶
- getVersionIntegers(self: InterfaceElement) tuple[int, int]¶
- getVersionString(self: InterfaceElement) str¶
- hasExactInputMatch(self: InterfaceElement, declaration: InterfaceElement, message: str = None) bool¶
- hasNodeDefString(self: InterfaceElement) bool¶
- hasTarget(self: InterfaceElement) bool¶
- hasVersionString(self: InterfaceElement) bool¶
- removeInput(self: InterfaceElement, arg0: str) None¶
- removeOutput(self: InterfaceElement, arg0: str) None¶
- removeToken(self: InterfaceElement, arg0: str) None¶
- setConnectedOutput(self: InterfaceElement, arg0: str, arg1: Output) None¶
- setDefaultVersion(self: InterfaceElement, arg0: bool) None¶
- setNodeDefString(self: InterfaceElement, arg0: str) None¶
- setTarget(self: InterfaceElement, arg0: str) None¶
- setTokenValue(self: InterfaceElement, arg0: str, arg1: str) Token¶
- setVersionIntegers(self: InterfaceElement, arg0: int, arg1: int) None¶
- setVersionString(self: InterfaceElement, arg0: str) None¶