entity_uri
construct_ayon_entity_uri(project_name, folder_path, product, version, representation_name)
Construct AYON entity URI from its components
Returns:
Name | Type | Description |
---|---|---|
str | str | AYON Entity URI to query entity path. |
Source code in client/ayon_core/pipeline/entity_uri.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
parse_ayon_entity_uri(uri)
Parse AYON entity URI into individual components.
URI specification
ayon+entity://{project}/{folder}?product={product} &version={version} &representation={representation}
URI example: ayon+entity://test/hero?product=modelMain&version=2&representation=usd
However - if the netloc is ayon://
it will by default also resolve as ayon+entity://
on AYON server, thus we need to support both. The shorter ayon://
is preferred for user readability.
Example:
parse_ayon_entity_uri( "ayon://test/char/villain?product=modelMain&version=2&representation=usd" ) {'project': 'test', 'folderPath': '/char/villain', 'product': 'modelMain', 'version': 1, 'representation': 'usd'} parse_ayon_entity_uri( "ayon+entity://project/folder?product=renderMain&version=3&representation=exr" ) {'project': 'project', 'folderPath': '/folder', 'product': 'renderMain', 'version': 3, 'representation': 'exr'}
Returns:
Type | Description |
---|---|
Optional[dict] | dict[str, Union[str, int]]: The individual key with their values as found in the ayon entity URI. |
Source code in client/ayon_core/pipeline/entity_uri.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 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 |
|