![]() |
MaterialX / glTF Texture Procedurals
0.0.1
Utilities for interoperability between MaterialX and glTF Texture Procedurals
|
Functions | |
load_json_file (filename) | |
Load a JSON file. | |
load_standard_libraries () | |
Load standard MaierialX libraries. | |
create_working_document (libraries) | |
Create a working document and import any libraries. | |
import_libraries (doc, libraries) | |
Import libraries into a document. | |
read_materialX_document (materialx_doc, input_file) | |
Read a MaterialX document from a file. | |
materialX_doc_to_string (materialx_doc) | |
Convert a MaterialX document to a string. | |
validate_document (doc) | |
Validate a MaterialX document. | |
get_files (rootPath, extension) | |
Get all files with a given extension in a directory. | |
have_version (major, minor, patch) | |
Check if the current vesion matches a given version @parm major: The major version number @parm minor: The minor version number @parm patch: The patch version number. | |
remove_comments (doc) | |
Remove all comments from a MaterialX document. | |
gltf_materialx_converter.utilities.create_working_document | ( | libraries | ) |
Create a working document and import any libraries.
libraries | The list of definition libraries to import. |
Definition at line 31 of file utilities.py.
gltf_materialx_converter.utilities.get_files | ( | rootPath, | |
extension ) |
Get all files with a given extension in a directory.
rootPath | The root directory to search. |
extension | The file extension to search for. |
Definition at line 72 of file utilities.py.
gltf_materialx_converter.utilities.have_version | ( | major, | |
minor, | |||
patch ) |
Check if the current vesion matches a given version @parm major: The major version number @parm minor: The minor version number @parm patch: The patch version number.
Definition at line 86 of file utilities.py.
gltf_materialx_converter.utilities.import_libraries | ( | doc, | |
libraries ) |
Import libraries into a document.
doc | The document to import into. |
libraries | The list of libraries to import. |
Definition at line 42 of file utilities.py.
gltf_materialx_converter.utilities.load_json_file | ( | filename | ) |
Load a JSON file.
filename | The file to load. |
Definition at line 12 of file utilities.py.
gltf_materialx_converter.utilities.load_standard_libraries | ( | ) |
Load standard MaierialX libraries.
Definition at line 23 of file utilities.py.
gltf_materialx_converter.utilities.materialX_doc_to_string | ( | materialx_doc | ) |
Convert a MaterialX document to a string.
materialx_doc | The document to convert. |
Definition at line 57 of file utilities.py.
gltf_materialx_converter.utilities.read_materialX_document | ( | materialx_doc, | |
input_file ) |
Read a MaterialX document from a file.
materialx_doc | The MaterialX document to read into. |
input_file | The file to read from. |
Definition at line 49 of file utilities.py.
gltf_materialx_converter.utilities.remove_comments | ( | doc | ) |
Remove all comments from a MaterialX document.
doc | The document to remove comments from. |
Definition at line 106 of file utilities.py.
gltf_materialx_converter.utilities.validate_document | ( | doc | ) |
Validate a MaterialX document.
doc | The document to validate. |
Definition at line 64 of file utilities.py.