The Python package mtlxutils contains a collection of the utilities
This package is used in Python command line utilities which can be of general use. A number of these are used in the Github actions workflow used to build this site as outlined in the Implementation page.
genMaterialsFromDefs
. The renderer is
the same as used for render unit testing for GLSL code generated shaders.
The content can be found in the resources
folder
Note: Additional package enhancements and command like utilities will be exposed over time once they are factored out into reusable modules. This includes the Python script used to generate all the node reference documentation.
The minimum MaterialX package version is 1.38.8
.
The package and utilities are used (and explained) within the various Python tutorials
mxbase
: Utility for minimum version checking.mxfile
: File utilities including: creating "working" documents, loading in
default libraries, library write filter predicate, and write to file / string wrappers. Used by various
notebooks. Logic described in the Basics
notebookmxodegraph
: Node and nodegraph creation as explained in the Nodegraph
notebookmxtraversal
: Nodegraph connectivity and sample usage to create Mermaid
graphs as explained in the Traversal
noetbookmxshadergen
: Utilities for shader generation as explained in the Shader
Generation Notebookmxrenderer
: Utilities for rendering with a default GLSL renderer as covered in the Rendering
Notebookmxusd
: MaterialX / Usd graphing mapping utilities as explained in the MaterialX
/ Usd notebook. Note thatUsdMtlx
from the the official
Usd release should be used.