ynput / ayon-nuke

Nuke addon for AYON
Apache License 2.0
4 stars 11 forks source link

Publishing review intermediates - no anatomy output keyword #32

Closed jrsndl closed 1 month ago

jrsndl commented 1 month ago

Is there an existing issue for this?

Current Behavior:

I have anatomy render directory template set as: {root[work]}/{project[name]}/{hierarchy}/{folder[name]}/publish/{product[type]}/{product[name]}/{@version}/<_{output}>

When publishing the baking stream from Extract Review Intermediate, the mov is not tagged with Output name. When using the keyword in Anatomy, the intermediate mov is not there, but the thumbnail generated from it is.

Having the published output as a one and only imagery in the folder helps apps Like Hiero to not get confused while searching for versions.

image

image

Expected Behavior:

The published intermediate(s) should respect the output anatomy keyword.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. set anatomy render directory template with output keyword {root[work]}/{project[name]}/{hierarchy}/{folder[name]}/publish/{product[type]}/{product[name]}/{@version}/<_{output}>
  2. enable Extract Review Intermediate, set it to publish the intermediate, and publish from Nuke
  3. check publish folder

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response

jrsndl commented 1 month ago

Looks like adding the outputName solves the issue for publishing Intermediate, but changes behavior when only one Intermediate is extracted.

If the fix should be backwards compatible, there has to be a way to change the outputName behavior in ExtractReview, based on if more than one Intermediate exists? https://github.com/ynput/ayon-core/blob/47b5d90495563be2660d8b10b1b0479c3d1330ad/client/ayon_core/plugins/publish/extract_review.py#L409

image

image