_pinning_file_generation_funcs
 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
 | 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 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 |  | 
 get_asset_dependencies(layer_path, resolver, processed_layers=None) 
 Return mapping from all used asset identifiers to the resolved filepaths.
Recursively traverse Sdf.Layer and get all their asset dependencies. For each asset identifier map it to its resolved filepath.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| layer_path | str | Usd layer path to be taken as the root layer | required | 
Returns: Mapping from asset identifier to their resolved paths
Source code in client/ayon_usd/standalone/usd/pinning/_pinning_file_generation_funcs.py
 | 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |  | 
 remove_root_from_dependency_info(dependency_info, root_info) 
 Removes the Ayon Machine Root from a given Dependency info Dict
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| dependency_info | Dict[str, str] | Dict generated by  | required | 
| root_info | Dict[str, str] | A flat dict containing root identifier mapping to the | required | 
Returns:
| Type | Description | 
|---|---|
| Dict[str, str] | a dependency_info dict that holds key: Usd assetIdentifiers val: | 
| Dict[str, str] | rootless paths as they would be returned from Ayon server  | 
| Dict[str, str] | endpoint ('Resolve Uris' in the server Docs). | 
Source code in client/ayon_usd/standalone/usd/pinning/_pinning_file_generation_funcs.py
 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |  |