-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
154 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
python/GafferSceneTest/scripts/promotedArrayPlug-1.5.1.0.gfr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import Gaffer | ||
import GafferImage | ||
import GafferScene | ||
import imath | ||
|
||
Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 5, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 1, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False ) | ||
|
||
__children = {} | ||
|
||
parent["variables"].addChild( Gaffer.NameValuePlug( "image:catalogue:port", Gaffer.IntPlug( "value", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "imageCataloguePort", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
parent["variables"].addChild( Gaffer.NameValuePlug( "project:name", Gaffer.StringPlug( "value", defaultValue = 'default', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectName", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
parent["variables"].addChild( Gaffer.NameValuePlug( "project:rootDirectory", Gaffer.StringPlug( "value", defaultValue = '$HOME/gaffer/projects/${project:name}', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectRootDirectory", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
__children["openColorIO"] = GafferImage.OpenColorIOConfigPlug( "openColorIO", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) | ||
parent.addChild( __children["openColorIO"] ) | ||
__children["defaultFormat"] = GafferImage.FormatPlug( "defaultFormat", defaultValue = GafferImage.Format( 1920, 1080, 1.000 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) | ||
parent.addChild( __children["defaultFormat"] ) | ||
__children["Box"] = Gaffer.Box( "Box" ) | ||
parent.addChild( __children["Box"] ) | ||
__children["Box"].addChild( GafferScene.Parent( "Parent" ) ) | ||
__children["Box"]["Parent"]["children"].resize( 2 ) | ||
__children["Box"]["Parent"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"].addChild( Gaffer.BoxIn( "BoxIn" ) ) | ||
__children["Box"]["BoxIn"].setup( Gaffer.ArrayPlug( "out", elementPrototype = GafferScene.ScenePlug( "child0", ), ) ) | ||
__children["Box"]["BoxIn"]["__in"].resize( 2 ) | ||
__children["Box"]["BoxIn"]["out"].resize( 2 ) | ||
__children["Box"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"].addChild( Gaffer.ArrayPlug( "children", elementPrototype = GafferScene.ScenePlug( "child0", ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"]["children"].resize( 2 ) | ||
__children["Box"].addChild( GafferScene.Sphere( "Sphere" ) ) | ||
__children["Box"]["Sphere"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"].addChild( Gaffer.BoxOut( "BoxOut" ) ) | ||
__children["Box"]["BoxOut"].setup( GafferScene.ScenePlug( "in", ) ) | ||
__children["Box"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Box"].addChild( GafferScene.ScenePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Cube"] = GafferScene.Cube( "Cube" ) | ||
parent.addChild( __children["Cube"] ) | ||
__children["Cube"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
parent["variables"]["imageCataloguePort"]["value"].setValue( 39173 ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["imageCataloguePort"], 'readOnly', True ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["projectName"]["name"], 'readOnly', True ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["projectRootDirectory"]["name"], 'readOnly', True ) | ||
__children["Box"]["Parent"]["in"].setInput( __children["Box"]["Sphere"]["out"] ) | ||
__children["Box"]["Parent"]["parent"].setValue( '/' ) | ||
__children["Box"]["Parent"]["children"].setInput( __children["Box"]["BoxIn"]["out"] ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["Parent"]["children"], 'nodule:type', 'GafferUI::StandardNodule' ) | ||
__children["Box"]["Parent"]["__uiPosition"].setValue( imath.V2f( -9.90000057, 4.5 ) ) | ||
__children["Box"]["__uiPosition"].setValue( imath.V2f( -16.6000023, 1.09999955 ) ) | ||
__children["Box"]["BoxIn"]["name"].setValue( 'children' ) | ||
__children["Box"]["BoxIn"]["__in"].setInput( __children["Box"]["children"] ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxIn"]["__in"], 'nodule:type', 'GafferUI::CompoundNodule' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxIn"]["__in"], 'description', 'The child hierarchies to be parented.' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxIn"]["__in"], 'noduleLayout:spacing', 0.5 ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxIn"]["out"], 'nodule:type', 'GafferUI::StandardNodule' ) | ||
__children["Box"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -8.40068531, 12.8320312 ) ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["children"], 'nodule:type', 'GafferUI::CompoundNodule' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["children"], 'description', 'The child hierarchies to be parented.' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["children"], 'plugValueWidget:type', '' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["children"], 'noduleLayout:spacing', 0.5 ) | ||
__children["Box"]["children"][0].setInput( __children["Cube"]["out"] ) | ||
__children["Box"]["Sphere"]["__uiPosition"].setValue( imath.V2f( -24.5000019, 11.3000002 ) ) | ||
__children["Box"]["BoxOut"]["in"].setInput( __children["Box"]["Parent"]["out"] ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxOut"]["__out"], 'description', 'The processed output scene.' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["BoxOut"]["__out"], 'nodule:type', 'GafferUI::StandardNodule' ) | ||
__children["Box"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -8.40068531, -3.83203101 ) ) | ||
__children["Box"]["out"].setInput( __children["Box"]["BoxOut"]["__out"] ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["out"], 'description', 'The processed output scene.' ) | ||
Gaffer.Metadata.registerValue( __children["Box"]["out"], 'nodule:type', 'GafferUI::StandardNodule' ) | ||
__children["Cube"]["__uiPosition"].setValue( imath.V2f( -18.8500023, 9.43203068 ) ) | ||
|
||
|
||
del __children |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
python/GafferTest/scripts/arrayPlugWithOutputPrototype-1.5.1.0.gfr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Gaffer | ||
import GafferImage | ||
import imath | ||
|
||
Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 5, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 1, persistent=False ) | ||
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False ) | ||
|
||
__children = {} | ||
|
||
parent["variables"].addChild( Gaffer.NameValuePlug( "image:catalogue:port", Gaffer.IntPlug( "value", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "imageCataloguePort", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
parent["variables"].addChild( Gaffer.NameValuePlug( "project:name", Gaffer.StringPlug( "value", defaultValue = 'default', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectName", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
parent["variables"].addChild( Gaffer.NameValuePlug( "project:rootDirectory", Gaffer.StringPlug( "value", defaultValue = '$HOME/gaffer/projects/${project:name}', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectRootDirectory", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) | ||
__children["openColorIO"] = GafferImage.OpenColorIOConfigPlug( "openColorIO", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) | ||
parent.addChild( __children["openColorIO"] ) | ||
__children["defaultFormat"] = GafferImage.FormatPlug( "defaultFormat", defaultValue = GafferImage.Format( 1920, 1080, 1.000 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) | ||
parent.addChild( __children["defaultFormat"] ) | ||
__children["Node"] = Gaffer.Node( "Node" ) | ||
parent.addChild( __children["Node"] ) | ||
__children["Node"]["user"].addChild( Gaffer.ArrayPlug( "array", elementPrototype = Gaffer.IntPlug( "IntPlug", direction = Gaffer.Plug.Direction.Out, defaultValue = 0, ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
__children["Node"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) | ||
parent["frame"].setValue( 100.0 ) | ||
parent["variables"]["imageCataloguePort"]["value"].setValue( 41733 ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["imageCataloguePort"], 'readOnly', True ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["projectName"]["name"], 'readOnly', True ) | ||
Gaffer.Metadata.registerValue( parent["variables"]["projectRootDirectory"]["name"], 'readOnly', True ) | ||
__children["Node"]["__uiPosition"].setValue( imath.V2f( -9.40000057, 0.100000001 ) ) | ||
|
||
|
||
del __children |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters