Skip to content

Commit

Permalink
Removed commit history due to resources size
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequielmastrasso committed Mar 2, 2020
0 parents commit 8ec3710
Show file tree
Hide file tree
Showing 168 changed files with 12,646 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
build

\.vscode/
.vs
*.pyc
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Ezequiel Mastrasso

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
492 changes: 492 additions & 0 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-merlot
Binary file added docs/images/EZPrmanRenderLayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/EZPrmanRenderLayerAggregate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/EZPrmanRenderLayerScenegraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/EZPrmanRenderLayerVariableSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/EZPrmanRenderLayerWildcard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferDiagnosticPatterns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferLDTAttributeRead.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferLDTGetBoundingBox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferLDTShowMetadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferLDTShowMetadataKeys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferShaderView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/gafferSurfacingSets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaEZCollections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaEZCollections2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaEZCollectionsShelves.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaPrmanInteractiveFilters.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaPrmanInteractiveFilters.mov
Binary file not shown.
Binary file added docs/images/katanaPrmanTextureSet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaTemplatesTurntable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/katanaTextureLocatization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/materialMapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/materialMappingCabin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mayaEZPrmanMaterialLookdev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mayaEZSurfacing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mayaEZSurfacing2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/mayaEZSurfacingExport.png
Binary file added docs/images/mayaEZSurfacingInstances.jpg
Binary file added docs/images/mayaEZSurfacing_create.gif
Binary file added docs/images/mayaEZSurfacing_create.mov
Binary file not shown.
Binary file added docs/images/mayaEZSurfacing_export.gif
Binary file added docs/images/mayaEZSurfacing_export.mov
Binary file not shown.
Binary file added docs/images/nukeAovCorrect.png
Binary file added docs/images/nukeLigthgroupsContactSheet.jpg
Binary file added docs/images/nukeLigthgroupsContactSheet2.jpg
Binary file added docs/images/nukeLigthgroupsCorrect.png
Binary file added docs/images/sources/workflow_diagram.psd
Diff not rendered.
Binary file added docs/images/studioLights.png
Binary file added docs/images/textureImport.png
Binary file added docs/images/wireframeColor.png
Binary file added docs/images/workflow_diagram.jpg
24 changes: 24 additions & 0 deletions ldtenvset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/bash
#
# Environment Settings
#
# Look Dev Tools

# LOOKDEVTOOLS
# Replace this path with your own
export LOOKDEVTOOLS="/nas/emc_1/wrk/dev/EZLookdevTools"

## PYTHON
export PYTHONPATH="${PYTHONPATH}:$LOOKDEVTOOLS/python"

# NUKE
export NUKE_PATH=$NUKE_PATH:$LOOKDEVTOOLS/plugins/nuke/plugins

# KATANA
export LOOKDEVTOOLS_KATANA_ROOT=$LOOKDEVTOOLS/plugins/katana
export LOOKDEVTOOLS_KATANA_TOOLS=$LOOKDEVTOOLS/plugins/katana/katana_tools
export LOOKDEVTOOLS_KATANA_SHELVES=$LOOKDEVTOOLS/plugins/katana/katana_shelves
export KATANA_RESOURCES=$KATANA_RESOURCES:$LOOKDEVTOOLS_KATANA_TOOLS:$LOOKDEVTOOLS_KATANA_SHELVES:$KAT_SHELVE

# RENDERMAN
# MAKE SURE YOU HAVE RMANTREE and $RMANTREE/bin IN YOUR $PATH
82 changes: 82 additions & 0 deletions plugins/gaffer/boxes/LDTShowMetadata.grf
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import Gaffer
import GafferImage
import IECore
import imath

Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 0, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 56, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 0, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )

__children = {}

__children["text"] = GafferImage.Text( "text" )
parent.addChild( __children["text"] )
__children["text"]["user"].addChild( Gaffer.StringVectorDataPlug( "metadataKeys", defaultValue = IECore.StringVectorData( [ ] ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["text"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["out"] = GafferImage.ImagePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["out"] )
__children["in"] = GafferImage.ImagePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["in"] )
__children["Expression7"] = Gaffer.Expression( "Expression7" )
parent.addChild( __children["Expression7"] )
__children["Expression7"]["__in"].addChild( Gaffer.StringVectorDataPlug( "p0", defaultValue = IECore.StringVectorData( [ ] ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Expression7"]["__in"].addChild( Gaffer.AtomicCompoundDataPlug( "p1", defaultValue = IECore.CompoundData(), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Expression7"]["__out"].addChild( Gaffer.StringPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 'Hello World', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Expression7"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["BoxOut"] = Gaffer.BoxOut( "BoxOut" )
parent.addChild( __children["BoxOut"] )
__children["BoxOut"].setup( GafferImage.ImagePlug( "in", ) )
__children["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["BoxIn"] = Gaffer.BoxIn( "BoxIn" )
parent.addChild( __children["BoxIn"] )
__children["BoxIn"].setup( GafferImage.ImagePlug( "out", ) )
__children["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["user_metadataKeys"] = Gaffer.StringVectorDataPlug( "user_metadataKeys", defaultValue = IECore.StringVectorData( [ 'artist', '/stats/time/render', '/stats/geo/', '/stats/memory/peak', 'rays/camera/pixel', 'samples', 'depth', 'color_space' ] ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["user_metadataKeys"] )
__children["enabled"] = Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["enabled"] )
__children["text"]["user"]["metadataKeys"].setInput( __children["user_metadataKeys"] )
Gaffer.Metadata.registerValue( __children["text"]["user"]["metadataKeys"], 'nodule:type', '' )
__children["text"]["out"].setInput( __children["text"]["__merge"]["out"] )
__children["text"]["in"].setInput( __children["BoxIn"]["out"] )
__children["text"]["text"].setInput( __children["Expression7"]["__out"]["p0"] )
__children["text"]["font"].setValue( '/usr/share/fonts/gnu-free/FreeMono.ttf' )
__children["text"]["size"].setValue( imath.V2i( 14, 14 ) )
__children["text"]["area"].setValue( imath.Box2i( imath.V2i( 0, 0 ), imath.V2i( 1920, 1080 ) ) )
__children["text"]["__uiPosition"].setValue( imath.V2f( 265.11377, -121.977249 ) )
__children["out"].setInput( __children["BoxOut"]["__out"] )
Gaffer.Metadata.registerValue( __children["out"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["out"], 'description', 'The output image generated by this node.' )
Gaffer.Metadata.registerValue( __children["in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["in"], 'description', 'The input image' )
Gaffer.Metadata.registerValue( __children["in"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["in"], 'noduleLayout:spacing', 2.0 )
__children["Expression7"]["__in"]["p0"].setInput( __children["text"]["user"]["metadataKeys"] )
__children["Expression7"]["__in"]["p1"].setInput( __children["text"]["in"]["metadata"] )
__children["Expression7"]["__uiPosition"].setValue( imath.V2f( 278.146027, -119.213951 ) )
__children["BoxOut"]["in"].setInput( __children["text"]["out"] )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'deletable', True )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'labelPlugValueWidget:renameable', True )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'description', 'The output image generated by this node.' )
__children["BoxOut"]["passThrough"].setInput( __children["BoxIn"]["out"] )
__children["BoxOut"]["enabled"].setInput( __children["enabled"] )
__children["BoxOut"]["__uiPosition"].setValue( imath.V2f( 266.612976, -130.30928 ) )
__children["BoxIn"]["__in"].setInput( __children["in"] )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'deletable', True )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'labelPlugValueWidget:renameable', True )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'description', 'The input image' )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'noduleLayout:spacing', 2.0 )
__children["BoxIn"]["__uiPosition"].setValue( imath.V2f( 265.114563, -113.645218 ) )
Gaffer.Metadata.registerValue( __children["user_metadataKeys"], 'deletable', True )
Gaffer.Metadata.registerValue( __children["user_metadataKeys"], 'labelPlugValueWidget:renameable', True )
Gaffer.Metadata.registerValue( __children["user_metadataKeys"], 'nodule:type', '' )
__children["Expression7"]["__engine"].setValue( 'python' )
__children["Expression7"]["__expression"].setValue( 'metadata_in = parent["__in"]["p1"]\n\nmetadata_user = parent["__in"]["p0"]\n\nshow_meta = ""\n\nfor each in metadata_user:\n\tfor key in sorted(metadata_in.keys()):\n\t\tif each.lower() in key.lower():\n\t\t\ttemplate = "{:.<32}{:.>11}\\n"\n\t\t\tshow_meta = show_meta + template.format(key,metadata_in[key])\n\tshow_meta = show_meta + "\\n"\n\n\nparent["__out"]["p0"] = show_meta' )


del __children

88 changes: 88 additions & 0 deletions plugins/gaffer/boxes/LDTSurfacingSets.grf
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import Gaffer
import GafferScene
import IECore
import imath

Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 0, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 55, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 0, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )

__children = {}

__children["BoxIn"] = Gaffer.BoxIn( "BoxIn" )
parent.addChild( __children["BoxIn"] )
__children["BoxIn"].setup( GafferScene.ScenePlug( "out", ) )
__children["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["BoxOut"] = Gaffer.BoxOut( "BoxOut" )
parent.addChild( __children["BoxOut"] )
__children["BoxOut"].setup( GafferScene.ScenePlug( "in", ) )
__children["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["create_sets"] = Gaffer.StringPlug( "create_sets", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["create_sets"] )
__children["in"] = GafferScene.ScenePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["in"] )
__children["out"] = GafferScene.ScenePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["out"] )
__children["prefix"] = Gaffer.StringPlug( "prefix", defaultValue = 'surf:', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["prefix"] )
__children["attribute"] = Gaffer.StringPlug( "attribute", defaultValue = 'surfacing_object', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["attribute"] )
__children["clear_box"] = Gaffer.StringPlug( "clear_box", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["clear_box"] )
__children["enabled"] = Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["enabled"] )
__children["BoxIn"]["__in"].setInput( __children["in"] )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'description', 'The processed output scene.' )
Gaffer.Metadata.registerValue( __children["BoxIn"]["out"], 'noduleLayout:section', 'bottom' )
__children["BoxIn"]["__uiPosition"].setValue( imath.V2f( 10.2742472, 479.144226 ) )
__children["BoxOut"]["in"].setInput( __children["BoxIn"]["out"] )
Gaffer.Metadata.registerValue( __children["BoxOut"]["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'deletable', True )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'labelPlugValueWidget:renameable', True )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["BoxOut"]["__out"], 'noduleLayout:section', 'top' )
__children["BoxOut"]["passThrough"].setInput( __children["BoxIn"]["out"] )
__children["BoxOut"]["enabled"].setInput( __children["enabled"] )
__children["BoxOut"]["__uiPosition"].setValue( imath.V2f( 8.29483604, -3.46790957 ) )
Gaffer.Metadata.registerValue( __children["create_sets"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["create_sets"], 'layout:section', 'Node' )
Gaffer.Metadata.registerValue( __children["create_sets"], 'plugValueWidget:type', 'GafferUI.ButtonPlugValueWidget' )
Gaffer.Metadata.registerValue( __children["create_sets"], 'buttonPlugValueWidget:clicked', 'import Gaffer\nimport GafferScene\nimport GafferUI\nimport IECore\n\nimport ldtgaffer\nreload(ldtgaffer)\nscriptWindow = button.ancestor(GafferUI.ScriptWindow)\nroot = scriptWindow.scriptNode()\nnodeUI = button.ancestor(GafferUI.NodeUI)\n\nscene_node = nodeUI.node()\nscene_node_in = scene_node[\'in\']\n\npath = \'/\'\nobject_attribute = scene_node["attribute"]\nsets_prefix = scene_node["prefix"]\nhio = ldtgaffer.AttributesSearch(\n scene_node_in, path, object_attribute.getValue())\n\nsetNodes = {}\n\nfor n, attribute in enumerate(hio.attributes.keys()):\n setNodes[n] = GafferScene.Set(attribute)\n setNodes[n]["name"].setValue(sets_prefix.getValue() + attribute)\n scene_node.addChild(setNodes[n])\n FilterNode = GafferScene.PathFilter(attribute)\n setNodes[n]["filter"].setInput(FilterNode["out"])\n FilterNode["paths"].setValue(\n IECore.StringVectorData(hio.attributes[attribute]))\n scene_node.addChild(FilterNode)\n if n == 0:\n print "first", attribute\n setNodes[n]["in"].setInput(scene_node["BoxIn"]["out"])\n elif n == len(hio.attributes.keys())-1:\n print "last", attribute\n setNodes[n]["in"].setInput(setNodes[n-1]["out"])\n scene_node["BoxOut"]["in"].setInput(setNodes[n]["out"])\n else:\n setNodes[n]["in"].setInput(setNodes[n-1]["out"])\n' )
Gaffer.Metadata.registerValue( __children["create_sets"], 'description', '' )
Gaffer.Metadata.registerValue( __children["create_sets"], 'layout:index', 4 )
Gaffer.Metadata.registerValue( __children["in"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) )
Gaffer.Metadata.registerValue( __children["in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["in"], 'description', 'The processed output scene.' )
Gaffer.Metadata.registerValue( __children["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["in"], 'layout:section', 'Settings' )
Gaffer.Metadata.registerValue( __children["in"], 'layout:index', 0 )
__children["out"].setInput( __children["BoxOut"]["__out"] )
Gaffer.Metadata.registerValue( __children["out"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) )
Gaffer.Metadata.registerValue( __children["out"], 'deletable', True )
Gaffer.Metadata.registerValue( __children["out"], 'labelPlugValueWidget:renameable', True )
Gaffer.Metadata.registerValue( __children["out"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["out"], 'noduleLayout:section', 'bottom' )
Gaffer.Metadata.registerValue( __children["out"], 'layout:section', 'Settings' )
Gaffer.Metadata.registerValue( __children["out"], 'layout:index', 1 )
Gaffer.Metadata.registerValue( __children["prefix"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["prefix"], 'layout:section', 'Node' )
Gaffer.Metadata.registerValue( __children["prefix"], 'layout:index', 2 )
Gaffer.Metadata.registerValue( __children["attribute"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["attribute"], 'layout:section', 'Node' )
Gaffer.Metadata.registerValue( __children["attribute"], 'layout:index', 3 )
Gaffer.Metadata.registerValue( __children["clear_box"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["clear_box"], 'layout:section', 'Node' )
Gaffer.Metadata.registerValue( __children["clear_box"], 'plugValueWidget:type', 'GafferUI.ButtonPlugValueWidget' )
Gaffer.Metadata.registerValue( __children["clear_box"], 'buttonPlugValueWidget:clicked', 'import Gaffer\nimport GafferScene\nimport GafferUI\nimport IECore\n\nimport ldtgaffer\nscriptWindow = button.ancestor(GafferUI.ScriptWindow)\nroot = scriptWindow.scriptNode()\nnodeUI = button.ancestor(GafferUI.NodeUI)\n\nscene_node = nodeUI.node()\nscene_node_in = scene_node[\'in\']\n\nfor each in scene_node.keys():\n node_type = str(type(scene_node[each]))\n if not \'Plug\' in node_type and not \'Box\' in node_type:\n scene_node.removeChild(scene_node[each])\n\nscene_node["BoxOut"]["in"].setInput(scene_node["BoxIn"]["out"])\nscene_node["BoxOut"]["passThrough"].setInput(scene_node["BoxIn"]["out"])' )
Gaffer.Metadata.registerValue( parent, 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) )
Gaffer.Metadata.registerValue( parent, 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) )
Gaffer.Metadata.registerValue( parent, 'description', 'A container for "subgraphs" - node networks which exist inside the\nBox and can be exposed by promoting selected internal plugs onto the\noutside of the Box.\n\nBoxes can be used as an organisational tool for simplifying large\ngraphs by collapsing them into sections which perform distinct tasks.\nThey are also used for authoring files to be used with the Reference\nnode.children' )
Gaffer.Metadata.registerValue( parent, 'layout:section:Node:summary', '' )


del __children

Loading

0 comments on commit 8ec3710

Please sign in to comment.