lib_renderproducts
AOV
Dataclass for AOVs
This should hold all the data to be able to define the resolved path.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
LayerMetadata
Bases: object
Data class for Render Layer metadata.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
341 342 343 344 345 346 | |
RenderProduct
Bases: object
Getting Colorspace as Specific Render Product Parameter for submitting publish job.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
349 350 351 352 353 354 355 356 | |
apply_name_format(path, name_format, file_format, frame=0)
Apply the C4D render data name format to the given filepath.
Reference
RDATA_NAMEFORMAT_0 = Name0000.TIF RDATA_NAMEFORMAT_1 = Name0000 RDATA_NAMEFORMAT_2 = Name.0000 RDATA_NAMEFORMAT_3 = Name000.TIF RDATA_NAMEFORMAT_4 = Name000 RDATA_NAMEFORMAT_5 = Name.000 RDATA_NAMEFORMAT_6 = Name.0000.TIF
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path | str | | required |
name_format | int | | required |
file_format | int | | required |
frame | int | | 0 |
Returns:
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
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 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
find_video_post(render_data, plugin_id)
Find first video post with plugin_id in render data.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
21 22 23 24 25 26 27 28 29 30 | |
get_default_ocio_resource()
Return default OCIO config path for Cinema4D.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
374 375 376 377 | |
get_multipasses(render_data)
Return all multipasses in render data.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
45 46 47 48 49 50 51 52 53 54 | |
get_renderdata_file_format_extension(file_format)
Get the file extension for a given render data file format.
The file format is e.g. render data like: - c4d.RDATA_FORMAT - c4d.RDATA_MULTIPASS_SAVEFORMAT
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_format | int | The C4D render data file format constant. | required |
Returns:
| Name | Type | Description |
|---|---|---|
str | str | A file extension. |
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | |
iter_redshift_aovs(video_post)
Using a Video Post from Redshift render yield all Redshift AOVs.
This may separate light-groups into separate AOVs.
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 | |
resolve_filepath(token_path, doc=None, render_data=None, render_settings=None, frame=None, take=None, layer_name=None, layer_type_name=None, layer_type=None)
Resolve a path with tokens to a resolved path.
See: https://developers.maxon.net/docs/py/2024_4_0a/modules/c4d.modules/tokensystem/index.html # noqa
Constructs the rpData (RenderPathData) dictionary: _doc: BaseDocument -> $prj _rData: RenderData -> $res, $height, $rs, $renderer _rBc: BaseContainer _take: BaseTake -> $take _frame: int -> $frame _layerName: str -> $userpass _layerTypeName: str -> $pass _layerType: int _isLight: bool _lightNumber: int _isMaterial: bool _nodeName: str _checkUnresolved: bool
Source code in client/ayon_cinema4d/api/lib_renderproducts.py
57 58 59 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 89 90 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 118 119 120 121 122 123 124 125 126 127 | |