PyMaterialXFormat¶
Cross-platform support for document serialization and file utilities.
Classes¶
A generic file path, supporting both syntactic and file system operations. |
|
A sequence of file paths, which may be queried to find the first instance of a given filename on the file system. |
|
Enumeration of |
|
Enumeration of |
|
A set of options for controlling the behavior of XML read functions. |
|
A set of options for controlling the behavior of XML write functions. |
Exception Types¶
A type of exception that is raised when a requested file cannot be opened. |
|
A type of exception that is raised when a requested document cannot be parsed. |
Module Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PyMaterialXFormat Module Function Documentation¶
- flattenFilenames(doc: Document, searchPath: FileSearchPath = <FileSearchPath object at 0x107d034b0>, customResolver: StringResolver = None) None¶
- getEnvironmentPath(sep: str = ':') FileSearchPath¶
- getSourceSearchPath(arg0: Document) FileSearchPath¶
- getSubdirectories(arg0: list[FilePath], arg1: FileSearchPath, arg2: list[FilePath]) None¶
- loadDocuments(rootPath: FilePath, searchPath: FileSearchPath, skipFiles: set[str], includeFiles: set[str], documents: list[Document], documentsPaths: list[str], readOptions: XmlReadOptions = None, errors: list[str] = None) None¶
- loadLibraries(libraryFolders: list[FilePath], searchPath: FileSearchPath, doc: Document, excludeFiles: set[str] = set(), readOptions: XmlReadOptions = None) set[str]¶
- loadLibrary(file: FilePath, doc: Document, searchPath: FileSearchPath = <FileSearchPath object at 0x107d03230>, readOptions: XmlReadOptions = None) None¶
- readFromXmlFileBase(doc: Document, filename: FilePath, searchPath: FileSearchPath = <FileSearchPath object at 0x107d17a70>, readOptions: XmlReadOptions = None) None¶
- readFromXmlString(doc: Document, str: str, searchPath: FileSearchPath = <FileSearchPath object at 0x107d159b0>, readOptions: XmlReadOptions = None) None¶
- writeToXmlFile(doc: Document, filename: FilePath, writeOptions: XmlWriteOptions = None) None¶
- writeToXmlString(doc: Document, writeOptions: XmlWriteOptions = None) str¶
Module source: MaterialX / source / PyMaterialX / PyMaterialXFormat /