Skip to content

Chore: Use published template name based on settings#1746

Open
Liametc wants to merge 12 commits intoynput:developfrom
Liametc:bugfix/get_template_name_from_instance
Open

Chore: Use published template name based on settings#1746
Liametc wants to merge 12 commits intoynput:developfrom
Liametc:bugfix/get_template_name_from_instance

Conversation

@Liametc
Copy link
Copy Markdown

@Liametc Liametc commented Mar 10, 2026

Changelog Description

Use published template based on instance data instead of "default".

Additional info

This fixes an issue where "default" was hardcoded as the template name in ayon_core.pipeline.farm.tools.from_published_scene.
Added the function get_template_name_from_instance to consolidate a few instances in the code base that had duplicated functionality and use in the function mentioned above.

Testing notes:

To test the from_published_scene fix

  1. Create a template that is not called "default"
  2. Set it as a template on some usd publish
  3. Publish something belonging to that type

@ynbot ynbot added type: bug Something isn't working size/S labels Mar 10, 2026
@Liametc Liametc changed the title Bugfix/get template name from instance Bugfix/usd publishes using custom templates Mar 10, 2026
@BigRoy BigRoy requested a review from iLLiCiTiT March 10, 2026 21:21
@BigRoy BigRoy added the community Issues and PRs coming from the community members label Mar 10, 2026
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
Comment thread client/ayon_core/pipeline/publish/lib.py Outdated
@iLLiCiTiT iLLiCiTiT changed the title Bugfix/usd publishes using custom templates Chore: Use published template name based on settings Mar 11, 2026
return template or default_template


def get_template_name_for_instance(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def get_template_name_for_instance(
def get_publish_template_name_for_instance(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members size/S type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants