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

Method testWriteMultiObjects

test/IECoreScene/SceneCacheTest.py:405–418  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

403
404
405 def testWriteMultiObjects( self ) :
406
407 sc = IECoreScene.SceneCache( os.path.join( self.tempDir, "test.scc" ), IECore.IndexedIO.OpenMode.Write )
408
409 t = sc.createChild( "transform" )
410 t.writeTransform( IECore.M44dData( imath.M44d().translate( imath.V3d( 1, 0, 0 ) ) ), 0.0 )
411
412 s = t.createChild( "shape" )
413 s.writeObject( IECoreScene.SpherePrimitive( 10 ), 0.0 )
414
415 c = t.createChild( "camera" )
416
417 # looks like an early version crashes here:
418 c.writeObject( IECoreScene.Camera(), 0.0 )
419
420 def testWriteNullPointers( self ) :
421

Callers

nothing calls this directly

Calls 7

createChildMethod · 0.95
SceneCacheMethod · 0.80
joinMethod · 0.80
writeTransformMethod · 0.45
writeObjectMethod · 0.45
SpherePrimitiveMethod · 0.45
CameraMethod · 0.45

Tested by

no test coverage detected