Skip to content

Commit

Permalink
MaterialX - Converter: add log messages for translator
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft authored Aug 23, 2024
1 parent a745841 commit a21a1cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,11 @@ def _translate_materialx(self):
library_folders.append("render_libraries")
mx.loadLibraries(library_folders, search_path, mxlib)
mxdoc.importLibrary(mxlib)
log("MaterialX libraries imported")

# Translate surface shader
translator = mx_gen_shader.ShaderTranslator.create()
log("Translator created")
try:
translator.translateAllMaterials(mxdoc, "render_pbr")
except mx.Exception as err:
Expand Down

0 comments on commit a21a1cc

Please sign in to comment.