diff --git a/Changes.md b/Changes.md index db9e52b41d..c8e850cf9f 100644 --- a/Changes.md +++ b/Changes.md @@ -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 ----- diff --git a/startup/GafferScene/arnoldAttributes.py b/startup/GafferScene/arnoldAttributes.py index b4dc457a6a..9d32a282c3 100644 --- a/startup/GafferScene/arnoldAttributes.py +++ b/startup/GafferScene/arnoldAttributes.py @@ -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 ) ) diff --git a/startup/GafferScene/standardAttributes.py b/startup/GafferScene/standardAttributes.py index 13d8371ec5..54da294374 100644 --- a/startup/GafferScene/standardAttributes.py +++ b/startup/GafferScene/standardAttributes.py @@ -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( "" ) ) @@ -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 ) ) diff --git a/startup/GafferSceneUI/lightFilter.py b/startup/GafferSceneUI/lightFilter.py deleted file mode 100644 index b83b32687b..0000000000 --- a/startup/GafferSceneUI/lightFilter.py +++ /dev/null @@ -1,40 +0,0 @@ -########################################################################## -# -# Copyright (c) 2024, Cinesite VFX Ltd. All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above -# copyright notice, this list of conditions and the following -# disclaimer. -# -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided with -# the distribution. -# -# * Neither the name of John Haddon nor the names of -# any other contributors to this software may be used to endorse or -# promote products derived from this software without specific prior -# written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, -# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -########################################################################## - -import Gaffer -import GafferSceneUI - -Gaffer.Metadata.registerValue( "attribute:filteredLights", "ui:scene:acceptsSetExpression", True )