From 1c2b0e041bb8a55cd1d01d532e4b678242d48929 Mon Sep 17 00:00:00 2001 From: "MobileMachine\\jeremy" Date: Fri, 9 Jun 2017 12:04:06 -0400 Subject: Quick fix to arm picker --- Core/Scripts/Interfaces/ART_AnimationUI.py | 2 +- Core/Scripts/RigModules/ART_Arm_Standard.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/Scripts/Interfaces/ART_AnimationUI.py b/Core/Scripts/Interfaces/ART_AnimationUI.py index da4184b..fcc8d86 100644 --- a/Core/Scripts/Interfaces/ART_AnimationUI.py +++ b/Core/Scripts/Interfaces/ART_AnimationUI.py @@ -410,7 +410,7 @@ class ART_AnimationUI(QtWidgets.QMainWindow): # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - def setButtonIcon(self, movie): + def setButtonIcon(self, movie, *args): """ Sets the icon of the matchRangeBtn to the next frame in the passed in movie. Note: This was a test function to see if animated gifs could be used as buttons. diff --git a/Core/Scripts/RigModules/ART_Arm_Standard.py b/Core/Scripts/RigModules/ART_Arm_Standard.py index a0e82ec..abcd96d 100644 --- a/Core/Scripts/RigModules/ART_Arm_Standard.py +++ b/Core/Scripts/RigModules/ART_Arm_Standard.py @@ -571,7 +571,10 @@ class ART_Arm_Standard(ART_RigModule): # if there are fingers, create a finger picker fingerControls = json.loads(cmds.getAttr(networkNode + ".fkFingerControls")) - ikFingerControls = json.loads(cmds.getAttr(networkNode + ".ikFingerControls")) + ikFingerControls = [] + if cmds.objExists(networkNode + ".ikFingerControls"): + ikFingerControls = json.loads(cmds.getAttr(networkNode + ".ikFingerControls")) + if len(fingerControls) > 0: -- cgit v1.2.3