Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use product name for render templates #841

Merged
merged 21 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3eb960a
:art: use product name for render templates
antirotor Aug 8, 2024
551d4f2
:fire: remove old python interface file
antirotor Aug 8, 2024
6608a18
:recycle: make function public
antirotor Aug 8, 2024
6acff9e
:recycle: first shot at group name
antirotor Aug 8, 2024
07f697d
:recycle: derive group name from templates too
antirotor Aug 9, 2024
a394556
:bug: fix task name reference
antirotor Aug 9, 2024
c63d200
:recycle: move the setting one level up
antirotor Aug 9, 2024
3350b91
:bug: fix letter-case typo
antirotor Aug 9, 2024
eddba58
:recycle: explicitly remove `aov` key for group name
antirotor Aug 9, 2024
f0cfc96
Update client/ayon_core/pipeline/create/product_name.py
antirotor Aug 19, 2024
2e79075
Update server/settings/tools.py
antirotor Aug 19, 2024
1f45f8e
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
51c51ee
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
009ab46
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
cb4af77
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
e784c00
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
caf674c
Update client/ayon_core/pipeline/farm/pyblish_functions.py
antirotor Aug 19, 2024
2611e2b
Merge branch 'develop' into feature/AY-5185_render-product-templates
antirotor Aug 19, 2024
f752940
:memo: added help for product templates
antirotor Aug 19, 2024
95af0bd
Merge branch 'develop' into feature/AY-5185_render-product-templates
antirotor Aug 20, 2024
9929b8a
Merge branch 'develop' into feature/AY-5185_render-product-templates
antirotor Aug 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions client/ayon_core/pipeline/create/product_name.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import ayon_api

from ayon_core.lib import StringTemplate, filter_profiles, prepare_template_data
from ayon_core.settings import get_project_settings
from ayon_core.lib import filter_profiles, prepare_template_data

from .constants import DEFAULT_PRODUCT_TEMPLATE

Expand Down Expand Up @@ -183,7 +182,10 @@ def get_product_name(
fill_pairs[key] = value

try:
return template.format(**prepare_template_data(fill_pairs))
return StringTemplate.format_strict_template(
template=template,
data=prepare_template_data(fill_pairs)
)
except KeyError as exp:
raise TemplateFillError(
"Value for {} key is missing in template '{}'."
Expand Down
Loading