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

Method collectHashes

test/IECoreScene/SceneCacheTest.py:1052–1058  ·  view source on GitHub ↗
( scene, hashType, time, hashResults )

Source from the content-addressed store, hash-verified

1050 m = IECoreScene.SceneCache( os.path.join( "test", "IECore", "data", "sccFiles", "animatedSpheres.scc" ), IECore.IndexedIO.OpenMode.Read )
1051
1052 def collectHashes( scene, hashType, time, hashResults ) :
1053 counter = 1
1054 h = scene.hash( hashType, time ).toString()
1055 hashResults.add( h )
1056 for n in scene.childNames() :
1057 counter += collectHashes( scene.child(n), hashType, time, hashResults )
1058 return counter
1059
1060 hashTypes = IECoreScene.SceneInterface.HashType.values.values()
1061

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.80
hashMethod · 0.45
addMethod · 0.45
childNamesMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected