Skip to content

Commit

Permalink
Merge pull request #6226 from murraystevenson/attributeEditorSelectAf…
Browse files Browse the repository at this point in the history
…fected

Attribute metadata : Register `ui:scene:acceptsSetExpression`
  • Loading branch information
johnhaddon authored Jan 22, 2025
2 parents a16474e + f2f5412 commit a6b4a5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 40 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
2 changes: 2 additions & 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 All @@ -165,6 +166,7 @@
contribute to illumination by default.
"""
)
Gaffer.Metadata.registerValue( "attribute:filteredLights", "ui:scene:acceptsSetExpression", True )

Gaffer.Metadata.registerValue( "attribute:gaffer:automaticInstancing", "label", "Automatic Instancing" )
Gaffer.Metadata.registerValue( "attribute:gaffer:automaticInstancing", "defaultValue", IECore.BoolData( True ) )
Expand Down
40 changes: 0 additions & 40 deletions startup/GafferSceneUI/lightFilter.py

This file was deleted.

0 comments on commit a6b4a5f

Please sign in to comment.