Skip to content

YN-0073 Publishing Clip without media source link #73

@jakubjezek001

Description

@jakubjezek001

Is there an existing issue for this?

  • I have searched the existing issues and added correct labels.

Description

Current Behavior

from their document https://docs.google.com/document/d/1xxx08wZk-YdQ-7AAzoYEU8yhXJ2YwpS-kg48fzybyIk/edit?tab=t.0

They need to find a way to deal with clips on the timeline that have been turned into BFX clips. Those are clips with batchgoup attached directly to the timeline clip. The problem with them is that they are losing the source media link in clip attributes and they are crashing during the publishing process. Solution would be to ignore them by creator or publisher. And only accept them once any clip is 'committed', since those clips may be linked to rendered images, but this needs to be proved.

If a segment has committed fx or rendered via batch internally, it immediately losing the link to its source media, which breaks publishing as it is using the source media to extract data from.

Expected Behavior

Client need to fix publishing segments that do not have links to source media.

Steps To Reproduce:

Convert any clip on timeline into BXF and try to publish it as plate.

Logs

Traceback (most recent call last):
  File "/home/ynput/.local/share/AYON/dependency_packages/ayon_2502101346_linux-rocky9.zip/dependencies/pyblish/plugin.py", line 528, in __explicit_process
    runner(*args)
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/plugins/publish/collect_timeline_otio.py", line 22, in process
    otio_timeline = flame_export.create_otio_timeline(sequence)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/otio/flame_export.py", line 652, in create_otio_timeline
    _distribute_segments_on_track(segments, otio_track)
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/otio/flame_export.py", line 609, in _distribute_segments_on_track
    otio_clip = create_otio_clip(segment_data)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/otio/flame_export.py", line 357, in create_otio_clip
    media_info = MediaInfoFile(clip_data["fpath"], logger=log)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/api/lib.py", line 804, in __init__
    self.file_pattern = self._get_collection(
                        ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ynput/CODE/__YNPUT/ayon-flame/client/ayon_flame/api/lib.py", line 875, in _get_collection
    raise AttributeError(
AttributeError: Wrong input attributes. Basename - , Ext - 

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions