lib
get_background_layers(file_url)
Pulls file name from background json file, enrich with folder url for AE to be able import files.
Order is important, follows order in json.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_url | str | abs url of background json | required |
Returns:
Type | Description |
---|---|
list | of abs paths to images |
Source code in client/ayon_aftereffects/api/lib.py
60 61 62 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 |
|
get_entity_attributes(entity)
Get attributes of folder or task entity.
Returns:
Name | Type | Description |
---|---|---|
dict | dict[str, Union[float, int]] | Scene data. |
Source code in client/ayon_aftereffects/api/lib.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
get_unique_layer_name(layers, name)
Gets all layer names and if 'name' is present in them, increases
suffix by 1 (eg. creates unique layer name - for Loader)
Args: layers (list): of strings, names only name (string): checked value
Returns:
Type | Description |
---|---|
string | name_00X (without version) |
Source code in client/ayon_aftereffects/api/lib.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
maintained_selection()
Maintain selection during context.
Source code in client/ayon_aftereffects/api/lib.py
18 19 20 21 22 23 24 25 |
|
publish_in_test(log, close_plugin_name=None)
Loops through all plugins, logs to console. Used for tests.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
close_plugin_name | Optional[str] | Name of plugin with responsibility to close application. | None |
Source code in client/ayon_aftereffects/api/lib.py
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 |
|
set_settings(frames, resolution, comp_ids=None, print_msg=True, entity=None)
Sets number of frames and resolution to selected comps.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frames | bool | True if set frame info | required |
resolution | bool | True if set resolution | required |
comp_ids | list[int] | specific composition ids, if empty it tries to look for currently selected | None |
print_msg | bool | True throw JS alert with msg | True |
entity | Optional[dict] | Entity to use attributes from to define the frame range, fps and resolution from. If not provided, current task entity is used. | None |
Source code in client/ayon_aftereffects/api/lib.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 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 |
|