pinning
generate_pinning_file(entry_usd, root_info, pinning_file_path)
Generate a AYON USD Resolver pinning file.
The pinning file can be used to pin paths in USD to specific filepaths, avoiding the need for dynamic resolving and runtime and allowing to pin dynamic URIs (like "get me latest version") to be pinned to the version at the time of the generation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entry_usd | str | The USD filepath to generate the pinning file for. | required |
root_info | Dict[str, str] | The project roots for the site the pinning should resolve to. These can be obtained via e.g. the AYON REST API get `/api/projects/{project_name}/siteRoots". | required |
pinning_file_path | str | The destination path to write the pinning file to. | required |
Source code in client/ayon_usd/standalone/usd/pinning/_pinning_file_generation_funcs.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | |