From 7dca72ebdf55ff4fbfe66507e788653860916891 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 8 Jan 2024 12:43:40 -0800 Subject: [PATCH 1/2] fix set infinity function Overlappy module affected, fixed bug with console warnings --- GETOOLS_SOURCE/modules/GeneralWindow.py | 2 +- GETOOLS_SOURCE/utils/Animation.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/GETOOLS_SOURCE/modules/GeneralWindow.py b/GETOOLS_SOURCE/modules/GeneralWindow.py index 87cbf83..57ad301 100644 --- a/GETOOLS_SOURCE/modules/GeneralWindow.py +++ b/GETOOLS_SOURCE/modules/GeneralWindow.py @@ -20,7 +20,7 @@ from GETOOLS_SOURCE.values import Icons class GeneralWindow: - version = "v1.0.1" + version = "v1.0.2" name = "GETools" title = name + " " + version diff --git a/GETOOLS_SOURCE/utils/Animation.py b/GETOOLS_SOURCE/utils/Animation.py index 26c02fb..dd302cb 100644 --- a/GETOOLS_SOURCE/utils/Animation.py +++ b/GETOOLS_SOURCE/utils/Animation.py @@ -52,9 +52,6 @@ def FilterCurve(*args): cmds.filterCurve() def SetInfinity(mode, items = None, *args): - if (Selector.MultipleObjects(1) == None): - return - result = "" if (mode == 1): result = "constant" @@ -66,7 +63,10 @@ def SetInfinity(mode, items = None, *args): result = "cycleRelative" elif (mode == 5): result = "oscillate" + if (items == None): + if (Selector.MultipleObjects(1) == None): + return cmds.setInfinity(preInfinite = result, postInfinite = result) else: cmds.setInfinity(items, preInfinite = result, postInfinite = result) From 623e212da8421026eaac98ee96ce77dc8651c9aa Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 8 Jan 2024 13:59:10 -0800 Subject: [PATCH 2/2] Update changelog.txt --- changelog.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.txt b/changelog.txt index 1eb63f5..bc26f51 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,9 @@ Backlog: - [RIGGING] added constraint offset object - [RIGGING] added Rebake IK from selected objects +v1.0.2 +- Fixed the "Set Infinity" function causing a warning message to appear in the console. + v1.0.1 - [HOTFIX] Removed cross dependency for Maya 2020.