We now have the ability (since ayon-core1.1.0) to get folder names at various levels in our templates.
Coming from a typical VFX background, we are used to things being broken up in 3 levels typically, for episodic for instance, that would be episode, sequence, shot. As an example:
<proj>_<ep>_<seq>_<shot> = blob_101_100_010
This hasn’t been possible till now due to the limitations of the anatomy templates. If however, if you would like to have this structure you can make 1 small change to the default to allow this.
In your anatomy settings: ayon+anatomy+preset://vfx-anatomy/templates/publish/0/file
for the default naming template you can simply update it to this: {project[code]}<_{folder[parents][1]}>_{parent}_{folder[name]}_{product[name]}_{@version}<_{output}><.{@frame}><_{udim}>.{ext}
My on-disk structure is like so: dev_project\shots\101\100\010
The key change here being:
<_{folder[parents][1]}>
is now getting the 101 (episode) value
{parent}
is getting the sequence
I hope that helps anyone looking for this as I see it being asked a lot on Discord and here in the forum.