Skip to content

Commit

Permalink
Update client/ayon_substancepainter/api/lib.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kayla Man <[email protected]>
  • Loading branch information
BigRoy and moonyuet authored Sep 23, 2024
1 parent 721d9cf commit 5d40872
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/ayon_substancepainter/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,9 @@ def get_export_templates(config, format="png", strip_folder=True):
# python. So we pass it the empty list of stack paths explicitly.
# See `ayon-substancepainter` issue #13
version_info = substance_painter.application.version_info()
if version_info[0:1] >= (10, 1):
cmd = cmd.replace(")", ", [])")
if version_info[0:2] >= (10, 1):
cmd = f'alg.mapexport.getPathsExportDocumentMaps("{preset}", "{folder}", "{format}", [])' # noqa


result = substance_painter.js.evaluate(cmd)

Expand Down

0 comments on commit 5d40872

Please sign in to comment.