Skip to content

Resolve: version swap retain offset and IDT#43

Merged
jakubjezek001 merged 4 commits intodevelopfrom
bugfix/OP-7981_resolve_swapping_versions_fix_offset
Mar 19, 2024
Merged

Resolve: version swap retain offset and IDT#43
jakubjezek001 merged 4 commits intodevelopfrom
bugfix/OP-7981_resolve_swapping_versions_fix_offset

Conversation

@jakubjezek001
Copy link
Copy Markdown
Member

@jakubjezek001 jakubjezek001 commented Feb 13, 2024

Changelog Description

Swapped version should retain the offset and IDT.

Additional info

Ayon-core port of ynput/OpenPype#6128 and
closes ynput/OpenPype#6125 issue

Testing notes:

  1. Load latest version of the clip that has Handles start > 0
  2. Set any colorspace to media clip (this will need to have enabled colormanagement on Resolve project)
  3. Use manage to swap for earlier version
  4. Notice that colormanagement configuration is the same as the previous clip

Note that earlier version doesn't match the timeline trim of the latest version, and IDT of the version resets to default

This commit adds functionality to copy the ACES input transform from a timeline clip to a new media item. It retrieves the IDT (Input Device Transform) property from the timeline clip and sets it on the new media item.

Also, it updates the ClipLoader class in plugin.py to read trimming information from the timeline item instead of using "Start" and "End" properties. The start time is calculated as the left offset of the timeline item, and the end time is calculated by adding the duration of the timeline item to its start time.

These changes improve compatibility and ensure accurate copying of clips in Ayon Core Resolve API.
@jakubjezek001
Copy link
Copy Markdown
Member Author

@jakubjezek001 jakubjezek001 marked this pull request as ready for review February 13, 2024 10:25
Copy link
Copy Markdown
Contributor

@Minkiu Minkiu left a comment

Choose a reason for hiding this comment

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

Untested, but code looks good.

Copy link
Copy Markdown
Contributor

@tokejepsen tokejepsen left a comment

Choose a reason for hiding this comment

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

Tested in Resolve 18.6. Failed when updating the clip, but I cant find any error messages anywhere. Where would the logs go?

@tokejepsen tokejepsen marked this pull request as draft March 7, 2024 07:57
@jakubjezek001
Copy link
Copy Markdown
Member Author

Look into Resolve's console.

@tokejepsen
Copy link
Copy Markdown
Contributor

This will need resolving before we can test this; #160

@jakubjezek001
Copy link
Copy Markdown
Member Author

This will need resolving before we can test this; #160

this issue had been resolved from today, please try it again.

@jakubjezek001 jakubjezek001 marked this pull request as ready for review March 18, 2024 20:30
Copy link
Copy Markdown
Contributor

@tokejepsen tokejepsen left a comment

Choose a reason for hiding this comment

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

Tested successfully in Resolve 18.6.

@jakubjezek001 jakubjezek001 merged commit a27e3f8 into develop Mar 19, 2024
@jakubjezek001 jakubjezek001 deleted the bugfix/OP-7981_resolve_swapping_versions_fix_offset branch March 19, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Resolve Inventory offsets clips when swapping versions.

6 participants