Extend Available Template Keys
I’m trying to configure a template for outputting products via Deliver Versions, and I’ve run into a limitation with the current template system.
When configuring the output directory, I would like to avoid using the full product name (product[name]), for example:
renderCompositingMatte Instead, I would like to use only a specific part of the product name — its variant, e.g.:
Matte At the moment, there is no way to extract or reference only a portion of product[name], which makes directory naming less flexible and harder to standardize.
Proposed Improvement
It would be very helpful to extend Available Template Keys with functionality that allows using only a part of a string value, similar to how string slicing works in Python.
Something like that: {project[name]} # renderCompositingMatte
{project[name]}[-5:] # Matte
{project[name]}[name.replace("renderCompositing", "")] # Matte
{project[name]}[name.split("renderCompositing")[-1]] # Matte
A comparable mechanism in templates (e.g. substring, slicing, or simple string operations) would make templates much more powerful and reduce the need for rigid naming conventions.
Log in to comment and vote
Comments2
Mustafa Zaky Jafar
Hello,
There’s an issue for supporting
product[variant]see AY-7929_product variant part of template data #1325
There was also a previous discussion about on forums
see Remove product[name] from the FileName templates
Alexey Volynets
Or just add a template called product[variant]