Hello dear Ayoneers!
When working with shots, sometimes we need to publish just one frame, instead of a frame range, but Ayon treats differently these two types of publishes which ends up in a non unified pipeline between both: different plugins will produce different results for each publish type, but it shouldn’t really matter if I publish one frame or more, right?
Single frames are treated as single images, the files key from the representation becomes a string instead of a list, which makes sense in some cases, but not all.
I tried to publish a representation where the files key is a list with just one frame and I found several issues:
ExtractReviewplugin wouldn’t work with a single frame sequences becauseclique.assemblyis called several times with the defaultminumum_items=2, thus leaving out single frame sequences.IntegrateAssetplugin won’t allow the integration for similar reasons.
I can see an easy way out, which is already there: if files is a list, let’s treat it as a sequence, regardless of the number of frames, else it is not a sequence, so a different pipeline is needed.
I made this proof of concept and I managed to successfully publish a single frame sequence, but I would like to ask you guys what do you think, as I can imagine this topic must have come up before, and may have other higher implications in the Ayon framework.
Thank you!