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.
