MCPcopy Create free account
hub / github.com/Slicer/Slicer / loadScene

Method loadScene

Modules/Scripted/SampleData/SampleData.py:1185–1189  ·  view source on GitHub ↗

Returns True is scene loading was successful, False if failed.

(self, uri, fileProperties={})

Source from the content-addressed store, hash-verified

1183 return filePath
1184
1185 def loadScene(self, uri, fileProperties={}):
1186 """Returns True is scene loading was successful, False if failed."""
1187 loadedNode = self.loadNode(uri, None, "SceneFile", fileProperties)
1188 success = loadedNode is not None
1189 return success
1190
1191 def loadNode(self, uri, name, fileType=None, fileProperties={}):
1192 """Returns the first loaded node (or the scene if the reader did not provide a specific node) on success.

Calls 1

loadNodeMethod · 0.95

Tested by 2

_saveAndLoadSceneMethod · 0.36
section_LoadSceneMethod · 0.36