make_path_relative_to_current_edit_target#

omni.usd.make_path_relative_to_current_edit_target(
url_path: str,
stage: Stage | None = None,
) str#

Make path relative to the current edit target of the stage.

Parameters:
  • url_path (str) – The asset url.

  • stage (Usd.Stage, optional) – The stage that the url_path is relative to. Defaults to None.

Returns:

Relative path if it can be computed or url_path untouched.

Return type:

str