--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
script['ReaderWithSceneLoop']['SceneLoop1'].addChild( Gaffer.StringVectorDataPlug( "test", defaultValue = IECore.StringVectorData( [ ] ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
Gaffer.Metadata.registerValue( script["ReaderWithSceneLoop"]['SceneLoop1']["test"], 'plugValueWidget:type', 'GafferUI.FileSystemPathVectorDataPlugValueWidget' )
But, is this the only way to do it or is there another one I didn't know?
Thank you,
Miguel
Btw, I've searching for documentation about how to create AtomicCompoundDataPlug, but I can't find anything about it...
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
script['Box'].addChild( Gaffer.AtomicCompoundDataPlug( "testAtomicCompound", Gaffer.Plug.Direction.In, IECore.CompoundData(), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
And then set it like this:
script['Box']['testAtomicCompound'].setValue( IECore.CompoundData( { "a" : IECore.IntData( 3 ), "b" : IECore.StringData( "foo" ) } ) )
And you can read it in an expression.
But I don't think there is any UI yet to allow a user to directly view or edit the value of an AtomicCompoundDataPlug - we currently only use it for internal processing on the C++ side.
-Daniel Dresser
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+unsubscribe@googlegroups.com.