Skip to content

Commit

Permalink
Attribute metadata : Register ui:scene:acceptsSetExpression
Browse files Browse the repository at this point in the history
This enables the "Select Affected Objects" menu item in the Attribute Editor via the InspectorColumn context menu.
  • Loading branch information
murraystevenson committed Jan 21, 2025
1 parent a16474e commit eb24076
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
1.5.x.x (relative to 1.5.3.0)
=======

Improvements
------------

- AttributeEditor : Added "Select Affected Objects" menu item to the "Linked Lights" and Arnold "Shadow Group" columns.

Fixes
-----

Expand Down
1 change: 1 addition & 0 deletions startup/GafferScene/arnoldAttributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
contribute to illumination by default.
""",
)
Gaffer.Metadata.registerValue( "attribute:ai:visibility:shadow_group", "ui:scene:acceptsSetExpression", True )

Gaffer.Metadata.registerValue( "attribute:ai:visibility:diffuse_reflect", "label", "Diffuse Reflection" )
Gaffer.Metadata.registerValue( "attribute:ai:visibility:diffuse_reflect", "defaultValue", IECore.BoolData( True ) )
Expand Down
1 change: 1 addition & 0 deletions startup/GafferScene/standardAttributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
all lights that contribute to illumination by default.
"""
)
Gaffer.Metadata.registerValue( "attribute:linkedLights", "ui:scene:acceptsSetExpression", True )

Gaffer.Metadata.registerValue( "attribute:filteredLights", "label", "Filtered Lights" )
Gaffer.Metadata.registerValue( "attribute:filteredLights", "defaultValue", IECore.StringData( "" ) )
Expand Down

0 comments on commit eb24076

Please sign in to comment.