Gaffer - Arnold standins meter scale

 avatar
polygonMerge
plain_text
a month ago
1.7 kB
2
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", 0, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )

__children = {}

__children["CustomOptions_ai_ass_meters"] = GafferScene.CustomOptions( "CustomOptions_ai_ass_meters" )
parent.addChild( __children["CustomOptions_ai_ass_meters"] )
__children["CustomOptions_ai_ass_meters"]["options"].addChild( Gaffer.NameValuePlug( "", Gaffer.FloatPlug( "value", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), True, "member1", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) )
__children["CustomOptions_ai_ass_meters"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
Gaffer.Metadata.registerValue( __children["CustomOptions_ai_ass_meters"], 'annotation:user:text', 'This node sets arnold \nstandins to meters scale' )
Gaffer.Metadata.registerValue( __children["CustomOptions_ai_ass_meters"], 'annotation:user:color', imath.Color3f( 0.150000006, 0.25999999, 0.25999999 ) )
__children["CustomOptions_ai_ass_meters"]["options"]["member1"]["name"].setValue( 'ai:meters_per_unit' )
__children["CustomOptions_ai_ass_meters"]["options"]["member1"]["value"].setValue( 0.009999999776482582 )
__children["CustomOptions_ai_ass_meters"]["__uiPosition"].setValue( imath.V2f( -85.6041107, 139.523987 ) )


del __children

Leave a Comment