Skip to content

Commit

Permalink
Cryptomatte : Rename __manifestScene plug
Browse files Browse the repository at this point in the history
This becomes necessary now that we make the Hierarchy View ignore private plugs. `__manifestScene` will now be ignored, resulting in the Hierarchy View no longer displaying the Cryptomatte manifest, so we rename the plug to `manifestScene` and hide both its nodeGadget and plugValueWidget.
  • Loading branch information
murraystevenson committed Jun 27, 2024
1 parent 52a98f6 commit 40a19f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions python/GafferSceneUI/CryptomatteUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,18 @@ def __layerPresetValues( plug ) :

],

"manifestScene" : [

"description",
"""
A scene containing locations representing the contents of the Cryptomatte manifest.
""",

"plugValueWidget:type", None,
"nodeGadget:type", None,

],

}

)
Expand Down
2 changes: 1 addition & 1 deletion src/GafferScene/Cryptomatte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Cryptomatte::Cryptomatte( const std::string &name )
addChild( new FloatVectorDataPlug( "__matteValues", Gaffer::Plug::Out, new FloatVectorData() ) );
addChild( new AtomicCompoundDataPlug( "__manifest", Gaffer::Plug::Out, new CompoundData() ) );
addChild( new PathMatcherDataPlug( "__manifestPaths", Gaffer::Plug::Out, new PathMatcherData ) );
addChild( new ScenePlug( "__manifestScene", Gaffer::Plug::Out ) );
addChild( new ScenePlug( "manifestScene", Gaffer::Plug::Out ) );
addChild( new FloatVectorDataPlug( "__matteChannelData", Gaffer::Plug::Out, GafferImage::ImagePlug::blackTile() ) );

outPlug()->formatPlug()->setInput( inPlug()->formatPlug() );
Expand Down

0 comments on commit 40a19f5

Please sign in to comment.