ynput / ayon-core

Apache License 2.0
31 stars 36 forks source link

improved OIIO subimages handling #920

Closed ReeceMulley closed 1 month ago

ReeceMulley commented 1 month ago

Changelog Description

Ayon's OIIOtool handling currently removes all subimages (all AOVs that aren't RGBA). This PR does the following:

The results of the OIIOtool will be unchanged, unless the input files have >1 subimages and the OIIOtool argument "-a" is added (should this be documented somewhere?). Then, extra channels will pass through the transcode, and can have reformats etc applied if desired.

Additional info

To have subimages identified, inputs must be a proper multipart EXR. In Nuke, this can be done by setting "interleave" to "channels" in the write node (very easy to define in the Ayon Nuke addon). Don't forget to set your channels to "all"!

Testing notes:

  1. Configure an Extract OIIO Transcode profile for a multipart exr (see additional info for more)
  2. Add "-a" into the profile's OIIOtool arguments
  3. Check that your extra AOVs have survived the transcode process