Skip to content

Commit

Permalink
TweaksUIs : Move tweaks to collapsible section
Browse files Browse the repository at this point in the history
This matches what we did for the new PrimitiveVariableTweaks.
  • Loading branch information
johnhaddon committed Jan 8, 2025
1 parent c81b87b commit 1761e45
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Improvements
------------

- VisualiserTool : Changed `dataName` input widget for choosing the primitive variable to visualise to a list of available variable names for the current selection.
- Tweaks nodes : Moved list of tweaks to a collapsible "Tweaks" section in the NodeEditor.

Fixes
-----
Expand Down
3 changes: 3 additions & 0 deletions python/GafferSceneUI/AttributeTweaksUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def __attributeMetadataPresetValues( plug ) :
Makes modifications to attributes.
""",

"layout:section:Settings.Tweaks:collapsed", False,

plugs = {

"localise" : [
Expand Down Expand Up @@ -122,6 +124,7 @@ def __attributeMetadataPresetValues( plug ) :
using the AttributeTweaks API via python.
""",

"layout:section", "Settings.Tweaks",
"plugValueWidget:type", "GafferUI.LayoutPlugValueWidget",
"layout:customWidget:footer:widgetType", "GafferSceneUI.AttributeTweaksUI._TweaksFooter",
"layout:customWidget:footer:index", -1,
Expand Down
3 changes: 3 additions & 0 deletions python/GafferSceneUI/CameraTweaksUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
first, then the second, etc.
""",

"layout:section:Settings.Tweaks:collapsed", False,

plugs = {

"ignoreMissing" : [
Expand All @@ -89,6 +91,7 @@
interface, or via the CameraTweaks API in Python.
""",

"layout:section", "Settings.Tweaks",
"plugValueWidget:type", "GafferUI.LayoutPlugValueWidget",
"layout:customWidget:footer:widgetType", "GafferSceneUI.CameraTweaksUI._TweaksFooter",
"layout:customWidget:footer:index", -1,
Expand Down
3 changes: 3 additions & 0 deletions python/GafferSceneUI/OptionTweaksUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def __optionMetadataPresetValues( plug ) :
Makes modifications to options.
""",

"layout:section:Settings.Tweaks:collapsed", False,

plugs = {

"ignoreMissing" : [
Expand All @@ -109,6 +111,7 @@ def __optionMetadataPresetValues( plug ) :
using the OptionTweaks API via python.
""",

"layout:section", "Settings.Tweaks",
"plugValueWidget:type", "GafferUI.LayoutPlugValueWidget",
"layout:customWidget:footer:widgetType", "GafferSceneUI.OptionTweaksUI._TweaksFooter",
"layout:customWidget:footer:index", -1,
Expand Down
3 changes: 3 additions & 0 deletions python/GafferSceneUI/ShaderTweaksUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
Makes modifications to shader parameter values.
""",

"layout:section:Settings.Tweaks:collapsed", False,

plugs = {

"shader" : [
Expand Down Expand Up @@ -110,6 +112,7 @@
interface, or using the ShaderTweaks API via python.
""",

"layout:section", "Settings.Tweaks",
"plugValueWidget:type", "GafferUI.LayoutPlugValueWidget",
"layout:customWidget:footer:widgetType", "GafferSceneUI.ShaderTweaksUI._TweaksFooter",
"layout:customWidget:footer:index", -1,
Expand Down
3 changes: 3 additions & 0 deletions python/GafferUI/ContextVariableTweaksUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
from downstream nodes, resulting in different values given to upstream nodes.
""",

"layout:section:Settings.Tweaks:collapsed", False,

plugs = {

"ignoreMissing" : [
Expand All @@ -74,6 +76,7 @@
using the ContextVariableTweaks API via python.
""",

"layout:section", "Settings.Tweaks",
"plugValueWidget:type", "GafferUI.LayoutPlugValueWidget",
"layout:customWidget::footer:widgetType", "GafferUI.ContextVariableTweaksUI._TweaksFooter",
"layout:customWidget:footer:index", -1,
Expand Down

0 comments on commit 1761e45

Please sign in to comment.