Skip to content

Commit

Permalink
Updated nodes, and new OIDN LDTBatchRender
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequielmastrasso committed Feb 10, 2022
1 parent 1562080 commit 885c60c
Show file tree
Hide file tree
Showing 9 changed files with 876 additions and 1,636 deletions.
Empty file modified LDTGaffer.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions extensions/startup/gui/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __LDTShaderBall():
GafferSceneUI.ShaderView.registerScene(
"ai", "LDTShaderBall", LDTShaderBall.LDTShaderBall
)
print "LDTShaderBall: GafferSceneUI.ShaderView.registerScene"
print ("LDTShaderBall: GafferSceneUI.ShaderView.registerScene")

with IECore.IgnoredExceptions(ImportError):
GafferSceneUI.ShaderView.registerRenderer(
Expand All @@ -68,5 +68,5 @@ def __LDTShaderTeapot():
GafferSceneUI.ShaderView.registerScene(
"ai", "LDTShaderTeapot", LDTShaderBall.LDTShaderTeapot
)
print "LDTShaderTeapot: GafferSceneUI.ShaderView.registerScene"
print ("LDTShaderTeapot: GafferSceneUI.ShaderView.registerScene")

475 changes: 475 additions & 0 deletions resources/boxes/LDTBatchRender.grf

Large diffs are not rendered by default.

103 changes: 49 additions & 54 deletions resources/boxes/LDTContextEnabledBox.grf

Large diffs are not rendered by default.

99 changes: 56 additions & 43 deletions resources/boxes/LDTContextEnabledEditScope.grf

Large diffs are not rendered by default.

30 changes: 26 additions & 4 deletions resources/boxes/LDTInspectionCamera.grf
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import IECore
import imath

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

__children = {}
Expand Down Expand Up @@ -62,6 +62,8 @@ __children["Dot"].addChild( Gaffer.BoolPlug( "__uiInputConnectionsMinimised", de
__children["StandardOptions"] = GafferScene.StandardOptions( "StandardOptions" )
parent.addChild( __children["StandardOptions"] )
__children["StandardOptions"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["transform"] = Gaffer.TransformPlug( "transform", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, )
parent.addChild( __children["transform"] )
__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"], 'description', 'Outputs the input specified by the index.' )
Expand Down Expand Up @@ -92,8 +94,7 @@ Gaffer.Metadata.registerValue( __children["BoxIn"]["__in"], 'noduleLayout:sectio
Gaffer.Metadata.registerValue( __children["BoxIn"]["out"], 'noduleLayout:section', 'bottom' )
__children["BoxIn"]["__uiPosition"].setValue( imath.V2f( -203.917587, -114.894974 ) )
__children["inspectionCamera"]["name"].setValue( 'inspectionCamera' )
__children["inspectionCamera"]["transform"]["translate"].setValue( imath.V3f( 268.567902, 116.983589, -506.753235 ) )
__children["inspectionCamera"]["transform"]["rotate"].setValue( imath.V3f( 10.0425444, 3231.15259, 0.00159965164 ) )
__children["inspectionCamera"]["transform"].setInput( __children["transform"] )
__children["inspectionCamera"]["fieldOfView"].setInput( __children["InspectionCameraFOV"] )
__children["inspectionCamera"]["clippingPlanes"]["x"].setInput( __children["inspectionNearClipping"] )
__children["inspectionCamera"]["__uiPosition"].setValue( imath.V2f( -179.244659, -111.40873 ) )
Expand Down Expand Up @@ -176,6 +177,27 @@ __children["StandardOptions"]["in"].setInput( __children["Parent"]["out"] )
__children["StandardOptions"]["options"]["renderCamera"]["value"].setValue( '/inspectionCamera' )
__children["StandardOptions"]["options"]["renderCamera"]["enabled"].setValue( True )
__children["StandardOptions"]["__uiPosition"].setValue( imath.V2f( -201.667587, -133.400909 ) )
Gaffer.Metadata.registerValue( __children["transform"], 'spreadsheet:plugMenu:includeAsAncestor', True )
Gaffer.Metadata.registerValue( __children["transform"], 'spreadsheet:plugMenu:ancestorLabel', 'Transform' )
Gaffer.Metadata.registerValue( __children["transform"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["transform"], 'description', 'The transform applied to the object.' )
Gaffer.Metadata.registerValue( __children["transform"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["transform"]["translate"], 'nodule:color', imath.Color3f( 0.469999999, 0.180999994, 0.180999994 ) )
Gaffer.Metadata.registerValue( __children["transform"]["translate"]["x"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["translate"]["y"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["translate"]["z"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["rotate"], 'nodule:color', imath.Color3f( 0.469999999, 0.180999994, 0.180999994 ) )
Gaffer.Metadata.registerValue( __children["transform"]["rotate"]["x"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["rotate"]["y"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["rotate"]["z"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["scale"], 'nodule:color', imath.Color3f( 0.469999999, 0.180999994, 0.180999994 ) )
Gaffer.Metadata.registerValue( __children["transform"]["scale"]["x"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["scale"]["y"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["scale"]["z"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["pivot"], 'nodule:color', imath.Color3f( 0.469999999, 0.180999994, 0.180999994 ) )
Gaffer.Metadata.registerValue( __children["transform"]["pivot"]["x"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["pivot"]["y"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( __children["transform"]["pivot"]["z"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) )
Gaffer.Metadata.registerValue( parent, 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) )
Gaffer.Metadata.registerValue( parent, 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) )
Gaffer.Metadata.registerValue( parent, 'noduleLayout:customGadget:addButtonTop:visible', False )
Expand Down
Loading

0 comments on commit 885c60c

Please sign in to comment.