generated from ynput/ayon-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
YN-0079 Publishing arbitrary data from Reels #88
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
Draft
jakubjezek001
wants to merge
43
commits into
develop
Choose a base branch
from
feature/YN-0076_publishing_selected_reel_project_clips_as_products
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
YN-0079 Publishing arbitrary data from Reels #88
jakubjezek001
wants to merge
43
commits into
develop
from
feature/YN-0076_publishing_selected_reel_project_clips_as_products
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds creator plugin for creating plates from selected items. - Allows users to create plates from within the reel browser context. - Plugin supports 'render' and 'image' types. - Aims to support multiple selected items. - Includes future error handling.
(api): Adds functions to get and set data markers on clips, mirroring functionality for segments. This allows storing and retrieving data associated with individual clips within a sequence, enhancing data management and enabling features like publishing selected clips as products.
work in progress
…project_clips_as_products
Adds a test function to check segment render paths. The function iterates through shots and segments, logging each segment's render path for review. This enhancement aids in debugging render outputs.
Remove deprecated function and references to it.
Adds Create and Publish tools to the AYON menu, and renumbers the existing menu items to account for the additions.
Convert the plate creator to inherit from FlameCreator and follow the new creator pattern.
The flame module is not used in this file.
The 'Create' and 'Publish' items were added back to the universal menu, and the remaining menu items were reordered.
Update creator identifiers to reflect the new naming scheme.
The generic 'FlameCreator' class has been renamed to 'FlameEditorialCreator' to better reflect its specific use case. A new 'FlameReelCreator' class has been introduced to handle reel-level creation tasks. The plate creator now inherits from this new ReelCreator. Additionally, `get_clips_in_reels` now accepts `selected` kwarg.
These methods are intended to be class methods so they should be decorated to reflect this. Also move the disabling logic for the create shot plugin into `apply_settings` from `validate`.
The create plugins `Create Plate` and `Create Shot Clip` were not disabling when a selection was made that contained invalid objects. This commit ensures that the `enabled` attribute is correctly set to `False` on the class, not the instance of the plugin.
The plugin was incorrectly checking for `flame.PySequence` instead of `flame.PySegment` when determining if the creator was enabled in a sequence timeline context.
The context is used to determine whether the create plugins should be enabled or not. It is stored in the CTX class and passed to the callback function when the action is called.
This change ensures that older creator identifiers for shots, plates, and audio are mapped to the new editorial identifiers. This allows older instances to continue working with the updated system.
The creator would fail to find instances when the old identifier was used as the new identifiers were not checked.
The original code was using a hardcoded value instead of the calculated `product_name` for the created instance. This commit corrects this issue.
Updates clip data marker logic to update existing marker if one exists.
The `imprint` function now supports imprinting data on `flame.PyClip` objects in addition to `flame.PySegment` objects. This allows for storing AYON data directly on clips within the Flame timeline.
Accessing `clip.duration` or `clip.start_frame` directly would result in TypeErrors in Flame versions that now require using the `.frame` attribute. This commit ensures compatibility across different Flame versions.
Fixes an issue where data markers were not being created in the correct position due to the use of relative frame values. The code now uses absolute frame values, ensuring that the markers are created at the intended location.
PyClip is not serializable, so it must be removed before pushing clip_data to the publish.
Markers without curly braces are not JSON markers, so skip them.
If a marker's comment is empty, the script now defaults to "{}" to
prevent errors during formatting.
The 'PySegment' attribute cannot be serialized and is unnecessary.
Segment object was not being passed to data marker functions, leading to incorrect behavior when trying to set or get clip data markers.
This commit fixes an issue where `get_clip_data_marker` was incorrectly using `get_segment_data_marker`. It now retrieves the correct segment from the clip's versions and tracks.
Create instance per selected clip to avoid clashing product names.
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: feature
Adding something new and exciting to the product
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog Description
In progress
TODO:
Testing notes:
in progress