MCPcopy Create free account
hub / github.com/ImageEngine/cortex / writeSCC

Method writeSCC

test/IECoreScene/SceneAlgo.py:48–62  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

46class SceneAlgoTest( unittest.TestCase ) :
47
48 def writeSCC( self ) :
49 m = IECoreScene.SceneCache( self.__testFile, IECore.IndexedIO.OpenMode.Write )
50 m.writeAttribute( "w", IECore.BoolData( True ), 1.0 )
51
52 t = m.createChild( "t" )
53 t.writeTransform( IECore.M44dData( imath.M44d().translate( imath.V3d( 1, 0, 0 ) ) ), 1.0 )
54 t.writeAttribute( "wuh", IECore.BoolData( True ), 1.0 )
55
56 s = t.createChild( "s" )
57 s.writeObject( IECoreScene.SpherePrimitive( 1 ), 1.0 )
58 s.writeAttribute( "glah", IECore.IntData( 15 ), 1.0 )
59
60 s.writeTags( ["tagA", "tagB"] )
61
62 del s, t, m
63
64
65 def writeBigSCC( self ):

Callers 2

Calls 7

writeAttributeMethod · 0.95
createChildMethod · 0.95
SceneCacheMethod · 0.80
writeTransformMethod · 0.45
writeObjectMethod · 0.45
SpherePrimitiveMethod · 0.45
writeTagsMethod · 0.45

Tested by

no test coverage detected