ynput / ayon-core

Apache License 2.0
22 stars 30 forks source link

Use product name templates for render products on local Houdini render #543

Closed MustafaJafar closed 1 month ago

MustafaJafar commented 1 month ago

Changelog Description

This PR extends #447 and make it work with local Houdini render

Testing notes:

  1. Update these settings on ayon server: you can take reference from my screenshots below.
    • ayon+settings://core/tools/creator/product_name_profiles
    • ayon+anatomy://{my-project}/templates/publish/1 render template.
  2. Launch Houdini
  3. Publish Render locally. Here's what to expect:
    • you should find the names of the created runtime instances follow your the template profile
    • you should find the location of the published render follow your render template (we add support for two more keys renderlayer and aov)

Additional Info

Here are some snippets of my settings. Render template: image product_name_profiles: image

MustafaJafar commented 1 month ago

Additional Info 2

I'd like to point our to this todo because I don't know the favored way to implement it. In essence: This logic https://github.com/ynput/ayon-core/blob/62870f239b6d137923adc1fd13d89077063cc830/client/ayon_core/hosts/houdini/plugins/publish/collect_local_render_instances.py#L67-L76

should match this logic

https://github.com/ynput/ayon-core/blob/62870f239b6d137923adc1fd13d89077063cc830/client/ayon_core/pipeline/farm/pyblish_functions.py#L591-L600


In this PR in its current stat, I think that my product_group is ignored for some reason. In this screenshot. my published product is not grouped. image