Gaffer - Cam Rig Constraint

 avatar
polygonMerge
plain_text
2 days ago
14 kB
1
Indexable
Never
import Gaffer
import GafferScene
import imath

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

__children = {}

__children["Cam_LightRig_RIM_Constaints1"] = Gaffer.Backdrop( "Cam_LightRig_RIM_Constaints1" )
parent.addChild( __children["Cam_LightRig_RIM_Constaints1"] )
__children["Cam_LightRig_RIM_Constaints1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints1"].addChild( Gaffer.Box2fPlug( "__uiBound", defaultValue = imath.Box2f( imath.V2f( -10, -10 ), imath.V2f( 10, 10 ) ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints_Dot"] = Gaffer.Dot( "Cam_LightRig_RIM_Constaints_Dot" )
parent.addChild( __children["Cam_LightRig_RIM_Constaints_Dot"] )
__children["Cam_LightRig_RIM_Constaints_Dot"].setup( GafferScene.ScenePlug( "in", ) )
__children["Cam_LightRig_RIM_Constaints_Dot"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"] = Gaffer.Box( "Cam_LightRig_RIM_Constaints" )
parent.addChild( __children["Cam_LightRig_RIM_Constaints"] )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.BoxIn( "BoxIn" ) )
__children["Cam_LightRig_RIM_Constaints"]["BoxIn"].setup( GafferScene.ScenePlug( "out", ) )
__children["Cam_LightRig_RIM_Constaints"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( GafferScene.ScenePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.BoxOut( "BoxOut" ) )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"].setup( GafferScene.ScenePlug( "in", ) )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( GafferScene.ScenePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.Dot( "Dot" ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot"].setup( GafferScene.ScenePlug( "in", ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot"].addChild( Gaffer.BoolPlug( "__uiInputConnectionsMinimised", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.Dot( "Dot1" ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot1"].setup( GafferScene.ScenePlug( "in", ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( GafferScene.ParentConstraint( "RIM_RIG_ParentConstraint" ) )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( GafferScene.SetFilter( "SetFilter_RIM_RIG" ) )
__children["Cam_LightRig_RIM_Constaints"]["SetFilter_RIM_RIG"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.Backdrop( "Backdrop" ) )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"].addChild( Gaffer.Box2fPlug( "__uiBound", defaultValue = imath.Box2f( imath.V2f( -10, -10 ), imath.V2f( 10, 10 ) ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.StringPlug( "Camera", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cam_LightRig_RIM_Constaints"].addChild( Gaffer.BoolPlug( "ignoreMissingTarget", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints1"], 'nodeGadget:color', imath.Color3f( 0.275000006, 0.215663537, 0.181500003 ) )
__children["Cam_LightRig_RIM_Constaints1"]["title"].setValue( 'Cam_LightRig_RIM_Constaints' )
__children["Cam_LightRig_RIM_Constaints1"]["description"].setValue( 'Light Rig RIM RIG camera\nconstraint' )
__children["Cam_LightRig_RIM_Constaints1"]["__uiPosition"].setValue( imath.V2f( -199.910187, 146.393265 ) )
__children["Cam_LightRig_RIM_Constaints1"]["__uiBound"].setValue( imath.Box2f( imath.V2f( -10, -9.57252502 ), imath.V2f( 37.7304382, 10 ) ) )
__children["Cam_LightRig_RIM_Constaints_Dot"]["labelType"].setValue( 1 )
__children["Cam_LightRig_RIM_Constaints_Dot"]["__uiPosition"].setValue( imath.V2f( -187.24762, 148.741196 ) )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"], 'noduleLayout:customGadget:addButtonLeft:visible', False )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"], 'noduleLayout:customGadget:addButtonRight:visible', False )
__children["Cam_LightRig_RIM_Constaints"]["__uiPosition"].setValue( imath.V2f( -185.74762, 143.741196 ) )
__children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["__in"].setInput( __children["Cam_LightRig_RIM_Constaints"]["in"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["__in"], 'description', 'The processed output scene.' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' )
__children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -2.65191603, 50.627655 ) )
__children["Cam_LightRig_RIM_Constaints"]["in"].setInput( __children["Cam_LightRig_RIM_Constaints_Dot"]["out"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["in"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["in"], 'description', 'The processed output scene.' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["in"], 'noduleLayout:section', 'top' )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["in"].setInput( __children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["out"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__out"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__out"], 'description', 'The input scene' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__out"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__out"], 'noduleLayout:spacing', 2.0 )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["passThrough"].setInput( __children["Cam_LightRig_RIM_Constaints"]["Dot"]["out"] )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["enabled"].setInput( __children["Cam_LightRig_RIM_Constaints"]["enabled"] )
__children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 0.348084092, -27.5489864 ) )
__children["Cam_LightRig_RIM_Constaints"]["out"].setInput( __children["Cam_LightRig_RIM_Constaints"]["BoxOut"]["__out"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["out"], 'nodule:type', 'GafferUI::StandardNodule' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["out"], 'description', 'The input scene' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["out"], 'plugValueWidget:type', '' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["out"], 'noduleLayout:spacing', 2.0 )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["out"], 'noduleLayout:section', 'bottom' )
__children["Cam_LightRig_RIM_Constaints"]["Dot"]["in"].setInput( __children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["out"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Dot"]["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Dot"]["out"], 'noduleLayout:section', 'bottom' )
__children["Cam_LightRig_RIM_Constaints"]["Dot"]["__uiPosition"].setValue( imath.V2f( 1.84808409, -22.5489864 ) )
__children["Cam_LightRig_RIM_Constaints"]["Dot"]["__uiInputConnectionsMinimised"].setValue( True )
__children["Cam_LightRig_RIM_Constaints"]["Dot1"]["in"].setInput( __children["Cam_LightRig_RIM_Constaints"]["BoxIn"]["out"] )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Dot1"]["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Dot1"]["out"], 'noduleLayout:section', 'bottom' )
__children["Cam_LightRig_RIM_Constaints"]["Dot1"]["__uiPosition"].setValue( imath.V2f( -2.65191603, 36.4443283 ) )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["in"].setInput( __children["Cam_LightRig_RIM_Constaints"]["Dot1"]["out"] )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["filter"].setInput( __children["Cam_LightRig_RIM_Constaints"]["SetFilter_RIM_RIG"]["out"] )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["target"].setInput( __children["Cam_LightRig_RIM_Constaints"]["Camera"] )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["ignoreMissingTarget"].setInput( __children["Cam_LightRig_RIM_Constaints"]["ignoreMissingTarget"] )
__children["Cam_LightRig_RIM_Constaints"]["RIM_RIG_ParentConstraint"]["__uiPosition"].setValue( imath.V2f( -1.15191591, 10.6082792 ) )
__children["Cam_LightRig_RIM_Constaints"]["SetFilter_RIM_RIG"]["setExpression"].setValue( 'RIM_RIG' )
__children["Cam_LightRig_RIM_Constaints"]["SetFilter_RIM_RIG"]["__uiPosition"].setValue( imath.V2f( 24.2610817, 14.6552353 ) )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Backdrop"], 'nodeGadget:color', imath.Color3f( 0.430000007, 0.200000003, 0.200000003 ) )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"]["title"].setValue( 'RIM_RIG_ParentConstraint' )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"]["description"].setValue( 'It attaches all the all the RIM_RIG lighting grp tagged by a Set Filter "RIM_RIG" attached it to the current RENDER camera' )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"]["__uiPosition"].setValue( imath.V2f( 10.485919, 13.4198914 ) )
__children["Cam_LightRig_RIM_Constaints"]["Backdrop"]["__uiBound"].setValue( imath.Box2f( imath.V2f( -23.4549751, -7.13838959 ), imath.V2f( 29.4549751, 13.1383896 ) ) )
__children["Cam_LightRig_RIM_Constaints"]["Camera"].setValue( '/CameraRig/CamTransform1_Cns_Grp/CamTransform1_Ctrl/CamTransform1_Gimbal_Ctrl/CamTransform2_Ctrl/CamTransform2_Gimbal_Ctrl/CamTransform3_Ctrl/CamTransform3_Gimbal_Ctrl/RENDER' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Camera"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Camera"], 'description', 'The scene location to which the objects are constrained.\nThe world space transform of this location forms the basis\nof the constraint target, but is modified by the targetMode\nand targetOffset values before the constraint is applied.' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["Camera"], 'plugValueWidget:type', 'GafferSceneUI.ScenePathPlugValueWidget' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["ignoreMissingTarget"], 'nodule:type', '' )
Gaffer.Metadata.registerValue( __children["Cam_LightRig_RIM_Constaints"]["ignoreMissingTarget"], 'description', "Causes the constraint to do nothing if the target location\ndoesn't exist in the scene, instead of erroring." )


del __children

Leave a Comment