From 751ddb92c59fb3e28cc69dc8eb42985284efe2e8 Mon Sep 17 00:00:00 2001 From: S0nic014 Date: Tue, 14 Jul 2020 18:43:10 +0100 Subject: [PATCH] Fix keyError on first time tool use --- dsRenamingTool/renameFn.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dsRenamingTool/renameFn.py b/dsRenamingTool/renameFn.py index 12b79b6..4348496 100644 --- a/dsRenamingTool/renameFn.py +++ b/dsRenamingTool/renameFn.py @@ -57,7 +57,6 @@ def genName(cls, obj, name, suffix=None, indexing=True, padding=2, start=0): @classmethod def getSuffix(cls, obj, aliasesDict): objType = pm.objectType(obj) - aliasesDict = json.loads(pm.optionVar["dsRenamingToolSuffixAliases"]) if objType == "transform": dependNodes = pm.listRelatives(obj, c=1) if dependNodes: