Episodic and Anatomy

Hi,
Does someone have any idea on how to use {episode} in our anatomy naming to get the episode name.
I’m basically trying to do this for file naming: {project[code]}{episode}{parent}{folder[name]}{task[name]}{@version}<{comment}>.{ext}

or get several level of parent since {hierarchy} is giving a path and not a name.

I’ve seen a ayon-core from Fabia but I don’t know how to use it, since it is not an add-on package.
Thanks for your help

In this cases, please share the links of “what you have seen” so it also makes it easier for others in the future. You may be referring to; Episode name in naming templates - #2 by fabiaserra

Anyway, this seems heavily tied to issue: AY-6910_Context Variables: Easy access to variables like episode, sequence, shot · Issue #533 · ynput/ayon-core · GitHub

It’s currently not possible out of the box and would still require customizations to ayon-core to support that. Fabia’s code could be used as reference, from which you’d need to update the code and create an addon package yourself.

However admittedly, I am a bit confused why in this case you couldn’t get by with just the parent hierarchy? I assume you are still adding sequences and shots under the episode for better organization? Or?

Could you provide the use case?

Hi,
Thanks for your feedback. Indeed, it is the topic you mentionned that I was refering to.
I’m using Kitsu, and therefore I have a folder: Episode/Sequence/Shot.
So {parent} is pointing at the sequence number.

I would like to get a second parent folder, or just the episode number.

I will dig in how to create the addon package from Fabia code I guess.

Best Regards,

Hi Damien,

I understand that {parent} refers to the sequence in this case - however, my question was - why do you need to explicitly target episode instead of just containing the full parent hierarchy - because that’s what it looks like what you want to include.

However, thinking about that now - that would include slashes like episode/sequence/shot. Could be nice if somehow you could format that {hierarchy} in the anatomy template but replace e.g. the / with another character.

The hierarchy key here would be episode/sequence.

Hi,
This is because {hierarchy} is setting new folders instead of giving a name for the path. Indeed, everything is included in hierarchy but i need to transform ‘/’ into ‘_’