render_utils
export_clip(export_path, clip, preset_path, **kwargs)
Flame exported wrapper
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
export_path | str | exporting directory path | required |
clip | PyClip | flame api object | required |
preset_path | str | full export path to xml file | required |
Kwargs
thumb_frame_number (int)[optional]: source frame number in_mark (int)[optional]: cut in mark out_mark (int)[optional]: cut out mark
Raises:
| Type | Description |
|---|---|
KeyError | Missing input kwarg |
FileExistsError | Missing export preset in shared folder |
Source code in client/ayon_flame/api/render_utils.py
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 | |
modify_preset_file(xml_path, staging_dir, data)
Modify xml preset with input data
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
xml_path | str | path for input xml preset | required |
staging_dir | str | staging dir path | required |
data | dict | data where key is xmlTag and value as string | required |
Returns:
| Name | Type | Description |
|---|---|---|
str | path to modified preset file |
Source code in client/ayon_flame/api/render_utils.py
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 167 168 169 | |