Publish directory template Resolution Folder variable

(Reposting to Discord per @mustafa_jafar Request)

My original Question :
*When publishing from Fusion, is it possible to add a resolution folder to the directory template that will create a folder named {width}x{height} based on the resolution of the saver in Fusion ? *

*We always use resolution folders because we may have a half-resolution proxy and a full-resolution sequence. Both are a v01, but a different resolution. so we would keep them in the same folder :

/element/v01/1920x1080 and /element/v01/3840x2160 for example.*

But I now realize we can create the halfres and other proxys with OIIO Transcode Output Definitions. But we would still prefer to have the resolution in the file path as a directory.

Additionally, our outputs are OFTEN the same as the project settings, but there are times when the resolution may be unusual, and we would like the resolution folder to be automatically accurate in those cases.

If we create an undistorted plate, for example, I expect the resolution of that to be somewhat manipulated by whoever is undistorting the plate. We may not know the final output resolution until we are ready to write it to disk, but I would like to have that resolution in the template directory path.

Thanks

Let me add my 2 cents.
From your question, I can think of 2 different ideas:

  1. Differnet resolutions can exist as differnet representations withing a single product version where you can set names like 3840_2160 or 3840x2160 as discussed in Publish from Substance Painter : output several resolutions and then use {representation} key in publish template. I guess this may work out the box.
  2. Implement dynamic keys in publish templates, e.g. having sequenceWidth and sequenceHeight template keys that get resolved on publish time, this can allow adding intermediate directories in your product version.

I think I would prefer option 1, as it seems more manageable and automated. I will take a deeper look at the Substance example, but will definitely have questions, being new to Ayon, I can tell I do not have a full grasp on the representations yet.
Thanks

A post was merged into an existing topic: What is a representation in AYON?