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

Fixing distribution of otioClip attribute to plates #31

Conversation

jakubjezek001
Copy link
Member

@jakubjezek001 jakubjezek001 commented Nov 14, 2024

Changelog Description

Vertical aligned shot resources are distributed correctly now.

Testing notes:

  1. Create timeline in Hiero with vertically aligned shots in multiple tracks. Make sure media resources for each clip is different.
  2. Rename tracks to hold some unique names
  3. select shots which are vertically aligned
  4. go to AYON menu and Create
  5. enamble vertical sync
  6. Select hero track
  7. Hit Create and then Publish.
  8. notice the integrated files and make sure plate version is having correct representation files.

Resolves #30

@jakubjezek001 jakubjezek001 added type: bug Something isn't working sponsored This is directly sponsored by a client or community member labels Nov 14, 2024
@jakubjezek001 jakubjezek001 self-assigned this Nov 14, 2024
@jakubjezek001 jakubjezek001 linked an issue Nov 14, 2024 that may be closed by this pull request
Copy link
Contributor

@BigRoy BigRoy left a comment

Choose a reason for hiding this comment

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

Confirmed by client that it works.

Does this issue maybe also influence other parts of the code, like collect audio?

@robin-ynput
Copy link
Contributor

Sorry for this I realize this was my mistake. I have reported the fix for Resolve here: ynput/ayon-resolve#41 and will ensure it works properly in Flame as well.

@robin-ynput robin-ynput self-requested a review November 14, 2024 13:14
Replaced RuntimeError with PublishError for better error management when retrieving otioClip in both collect_plates and collect_shots. This improves clarity and consistency in the publishing process.
- Imported necessary modules for error handling and utilities.
- Updated instance data retrieval to use shot instance data.
- Added logic to fetch the correct OTIO clip based on the hero shot's index.
- Implemented error raising if the OTIO clip can't be found.
- Added support for "audio" in product type checks.
- Simplified creator ID assignments for better readability.
- Updated logic to disable shot and audio creators based on conditions.
- Added checks for product type in clip creation.
- Introduced new methods to define attributes for audio instances.
- Updated logic to handle review options more cleanly.
- Enhanced shared data management by including `shot_clip_index`.
@jakubjezek001 jakubjezek001 merged commit 83d8887 into develop Nov 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sponsored This is directly sponsored by a client or community member type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AY-7142_broken vertical alignment resource distribution
4 participants