newton.utils.import_usd.resolve_usd_from_url#

class newton.utils.import_usd.resolve_usd_from_url(url, target_folder_name=None, export_usda=False)#

Download a USD file from a URL and resolves all references to other USD files to be downloaded to the given target folder.

Parameters:
  • url (str) – URL to the USD file.

  • target_folder_name (str | None) – Target folder name. If None, a time-stamped folder will be created in the current directory.

  • export_usda (bool) – If True, converts each downloaded USD file to USDA and saves the additional USDA file in the target folder with the same base name as the original USD file.

Returns:

File path to the downloaded USD file.

Return type:

str

__init__(**kwargs)#