save_layers

omni.kit.window.file.save_layers(new_root_path, dirty_layers, on_save_done, create_checkpoint=True, checkpoint_comment='')

Save current layers.

Parameters
  • new_root_path (str) – path to set the root layer.

  • dirty_layers (List[str]) – layer identifiers to save.

  • on_save_done (Callable) – function to call after saving. Function Signature: on_save_done(result: bool, url: str) -> None

Keyword Arguments
  • create_checkpoint (bool) – true to create checkpoints.

  • checkpoint_comments (str) – comment on the created checkpoint.