api
Public API
Anything that isn't defined here is INTERNAL and unreliable for external use.
 WrapHost 
  Bases: HostBase, ILoadHost
Source code in client/ayon_wrap/api/pipeline.py
 | 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 61 62 63 64 |  | 
 get_containers() 
 Get list of loaded containers.
Containers are created by filling prepared placeholders with publish path of chosen representation and storing this metadata into the workfile.
Returns:
| Type | Description | 
|---|---|
| (list of dict with schema similar to "openpype:container-2.0" - "nodeId" added to point to node in Wrap) | 
Source code in client/ayon_wrap/api/pipeline.py
 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |  | 
 containerise(name, namespace, context, loader=None, data=None) 
 Containerisation enables a tracking of version, author and origin for loaded assets.
Creates dictionary payloads that gets saved into file metadata. Each container contains of who loaded (loader) and members (single or multiple in case of background).
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| name | str | Name of resulting assembly | required | 
| namespace | str | Namespace under which to host container | required | 
| context | dict | Asset information | required | 
| loader | str | Name of loader used to produce this container. | None | 
| data | dict | additional data to store placeholder, nodeId and node_name | None | 
Returns:
| Name | Type | Description | 
|---|---|---|
| container | str | Name of container assembly | 
Source code in client/ayon_wrap/api/pipeline.py
 | 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 92 93 94 95 96 97 98 99 100 101 102 |  | 
 fill_placeholder(placeholder, workfile_path, context) 
 Replaces placeholder with actual path to representation
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| placeholder | str | in format PLACEHOLDER_VALUE_PATTERN | required | 
| workfile_path | str | absolute path to opened workfile | required | 
| context | dict | contains context data from launch context | required | 
Returns: (dict, str) path to resolved representation file which should be used instead of placeholder Raises (PlaceholderFillException) if path cannot be resolved (cannot find product, version etc.)
Source code in client/ayon_wrap/api/lib.py
 | 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 61 62 63 64 65 66 67 |  |