Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TweaksUIs : Move tweaks to collapsible section #6195

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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