From e4591034a460224ac42c359926078453c098bffd Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 7 Aug 2024 16:27:22 -0700 Subject: [PATCH] Add to Settings.py default for checkboxEulerFilter --- GETOOLS_SOURCE/Settings.py | 9 ++++----- GETOOLS_SOURCE/modules/GeneralWindow.py | 4 ++-- changelog.txt | 3 +++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/GETOOLS_SOURCE/Settings.py b/GETOOLS_SOURCE/Settings.py index 65132df..192a546 100644 --- a/GETOOLS_SOURCE/Settings.py +++ b/GETOOLS_SOURCE/Settings.py @@ -24,26 +24,25 @@ from .utils import Colors +# Interface buttonLabel = "GETools" - windowName = "windowGETools" dockName = "dockGETools" dockAllowedAreas = ("left", "right") dockStartArea = dockAllowedAreas[0] # start docking state, 0 - left, 1 - right - windowHeight = 500 # vertical window size when undocked windowWidth = 280 windowWidthScrollSpace = 20 lineHeight = 24 margin = 2 - sliderWidth = (60, 54, 10) sliderWidthMarker = 14 - windowWidthScroll = windowWidth - windowWidthScrollSpace windowWidthMargin = windowWidthScroll - margin * 2 - frames1Color = Colors.blackWhite13 frames2Color = Colors.blackWhite20 frames2Prefix = "// " +# Default values +checkboxEulerFilter = False # automatic euler filter checkbox + diff --git a/GETOOLS_SOURCE/modules/GeneralWindow.py b/GETOOLS_SOURCE/modules/GeneralWindow.py index d4f2589..be467fd 100644 --- a/GETOOLS_SOURCE/modules/GeneralWindow.py +++ b/GETOOLS_SOURCE/modules/GeneralWindow.py @@ -46,7 +46,7 @@ class GeneralWindow: - version = "v1.2.5" + version = "v1.2.6" name = "GETools" title = name + " " + version @@ -218,7 +218,7 @@ def LayerMove(*args): def LayoutMenuOptions(self): cmds.menu(label = "Options", tearOff = True) - self.menuCheckboxEulerFilter = UI.MenuCheckbox(label = "Euler Filter After Baking", value = False, valueDefault = False) + self.menuCheckboxEulerFilter = UI.MenuCheckbox(label = "Euler Filter After Baking", value = Settings.checkboxEulerFilter, valueDefault = Settings.checkboxEulerFilter) cmds.menuItem(dividerLabel = "Install", divider = True) diff --git a/changelog.txt b/changelog.txt index c70a7e0..6cccee4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ GETools changelog +v1.2.6 +- Added to Settings.py file default value for "checkboxEulerFilter" + v1.2.5 - [OVERLAPPY] Added confirm dialog for zero particle offset. - [UTILS] Added draft annotation creation logic.