Contents

open(rootLayer:sessionLayer:options:)

Opens a stage rooted at a given layer.

Declaration

static func open(rootLayer: USDLayer, sessionLayer: USDLayer? = nil, options: USDStage.OpenOptions = []) throws -> USDStage

Discussion

Recursively follows the composition rules described by rootLayer, opening any files referenced by the layer and assembling a hierarchy of USDPrims from the combined contents of all layers.

This function creates a new, independent stage object even if there is already a stage opened with rootLayer as its root layer.

Parameters:

  • rootLayer: The root layer of the new stage.

  • sessionLayer: A layer to use as a session layer. If nil, an anonymous layer will be created.

  • options: Options that specify behavior related to opening a stage.

See Also

Opening a stage