ayon-core
ayon-core copied to clipboard
AY-6910_Context Variables: Easy access to variables like episode, sequence, shot
Is there an existing issue for this?
- [X] I have searched the existing issues.
Please describe the feature you have in mind and explain what the current shortcomings are?
It has come up a few times that easy access to your current shot context like Episode, Sequence, Shot would be nice. For example having environment variables set to matching values.
How would you imagine the implementation of the feature?
A potential idea could be to "get the folder name for each unique type of parent folder". So:
From my current folder /s01e01/seq01/sh010
, go up any amount of folders - then ONLY for each parent with a unique type set an env var FOLDER_{TYPE}_NAME
so that
- s01e01 (Episode)
- seq01 (Sequence)
- sh010 (Shot)
Would become e.g.
FOLDER_EPISODE_NAME = s01e01
FOLDER_SEQUENCE_NAME = seq01
FOLDER_SHOT_NAME = sh010
But e.g. this
- s01e01 (Shot)
- seq01 (Shot)
- sh010 (Shot)
(Technically valid in the backend) Would be:
FOLDER_SHOT_NAME = sh010
Are there any labels you wish to add?
- [X] I have added the relevant labels to the enhancement request.
Describe alternatives you've considered:
Not supporting this out of the box and consider this "studio specific" behavior. However it's been requested quite a few times by different studios so there may be sense to having some sort of 'generic' implementation that could work for those studios out of the box - even if not only specific to episodic work.
Additional context:
Came up on discord Came up on community forum: https://community.ynput.io/t/episode-name-in-naming-templates/1475