lib
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 | |
find_variant_key(application_manager, host)
Searches for latest installed variant for 'host'
Returns (string) (optional) Raises: (ValueError) if no variant found
Source code in client/ayon_wrap/api/lib.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
get_multiple_templates_profile(project_settings, task_name, task_type, log=None)
Returns configured profile for current context
Source code in client/ayon_wrap/api/lib.py
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |