Skip to content

Commit

Permalink
Replaced fstrings so it can still work in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
theRussetPotato committed Apr 14, 2024
1 parent 7a40bcf commit 1d4f4f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/weights_editor_tool/classes/skinned_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def export_all_skins(cls, delete_skin_cluster, export_folder=None):
continue

transform = cmds.listRelatives(meshes[0], parent=True)[0]
export_path = f"{export_folder}/{transform}.skin"
export_path = "{}/{}.skin".format(export_path, transform)
skinned_obj = cls.create(transform)
skinned_obj.export_skin(export_path)
if delete_skin_cluster:
Expand All @@ -883,7 +883,7 @@ def import_all_skins(cls, world_space, create_missing_infs, import_folder=None):
if not import_folder:
return

skin_files = glob.glob(f"{import_folder}/*.skin")
skin_files = glob.glob("{}/*.skin".format(import_folder))
if not skin_files:
OpenMaya.MGlobal.displayWarning("The folder contains no skin files to import with.")
return
Expand Down

0 comments on commit 1d4f4f0

Please sign in to comment.