PyMaterialXCore.Document¶
- class Document¶
Bases:
GraphElementA MaterialX document, which represents the top-level element in the MaterialX ownership hierarchy.
Use the factory function
createDocument()to create aDocumentinstance.Methods
Methods¶
- __init__(*args, **kwargs)¶
- addAttributeDef(self: Document, arg0: str) AttributeDef¶
- addCollection(self: Document, name: str = '') Collection¶
- addGeomPropDef(self: Document, arg0: str, arg1: str) GeomPropDef¶
- addImplementation(self: Document, name: str = '') Implementation¶
- addNodeDefFromGraph(*args, **kwargs)¶
Overloaded function.
addNodeDefFromGraph(self: PyMaterialXCore.Document, arg0: PyMaterialXCore.NodeGraph, arg1: str, arg2: str, arg3: str) -> PyMaterialXCore.NodeDef
addNodeDefFromGraph(self: PyMaterialXCore.Document, arg0: PyMaterialXCore.NodeGraph, arg1: str, arg2: str, arg3: str, arg4: bool, arg5: str, arg6: str) -> PyMaterialXCore.NodeDef
- addPropertySet(self: Document, name: str = '') PropertySet¶
- addUnitTypeDef(self: Document, arg0: str) UnitTypeDef¶
- addVariantSet(self: Document, name: str = '') VariantSet¶
- getAttributeDef(self: Document, arg0: str) AttributeDef¶
- getAttributeDefs(self: Document) list[AttributeDef]¶
- getCollection(self: Document, arg0: str) Collection¶
- getCollections(self: Document) list[Collection]¶
- getGeomPropDef(self: Document, arg0: str) GeomPropDef¶
- getGeomPropDefs(self: Document) list[GeomPropDef]¶
- getImplementation(self: Document, arg0: str) Implementation¶
- getImplementations(self: Document) list[Implementation]¶
- getMatchingImplementations(self: Document, arg0: str) list[InterfaceElement]¶
- getMatchingPorts(self: Document, arg0: str) list[PortElement]¶
- getPropertySet(self: Document, arg0: str) PropertySet¶
- getPropertySets(self: Document) list[PropertySet]¶
- getUnitTypeDef(self: Document, arg0: str) UnitTypeDef¶
- getUnitTypeDefs(self: Document) list[UnitTypeDef]¶
- getVariantSet(self: Document, arg0: str) VariantSet¶
- getVariantSets(self: Document) list[VariantSet]¶