-
Notifications
You must be signed in to change notification settings - Fork 67
(YN-0075) Publish shot attributes on demand with setting #1550
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
Open
jakubjezek001
wants to merge
9
commits into
develop
Choose a base branch
from
enhancement/YN-0075_publish_shot_attributes_on_demand_with_setting
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.
Open
(YN-0075) Publish shot attributes on demand with setting #1550
jakubjezek001
wants to merge
9
commits into
develop
from
enhancement/YN-0075_publish_shot_attributes_on_demand_with_setting
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
defined. This is only used inside of any editorial or csv ingest
Adds an option to the Collect Hierarchy plugin to ignore shot attributes when updating.
Collect existing folder entities for shots to check if shot attributes should be synced during update.
iLLiCiTiT
reviewed
Nov 18, 2025
iLLiCiTiT
reviewed
Nov 18, 2025
iLLiCiTiT
reviewed
Nov 18, 2025
Simplify folder path collection and existing entity lookup for CollectHierarchy plugin. Use sets and dicts for improved efficiency and readability.
The collect hierarchy plugin was retrieving all fields when getting existing folders from the database, but only the 'path' field is needed. This change reduces the amount of data transferred.
iLLiCiTiT
reviewed
Nov 19, 2025
Comment on lines
+2
to
+4
| from ayon_core.lib import BoolDef | ||
| import ayon_api | ||
| from ayon_core.pipeline import publish |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
| from ayon_core.lib import BoolDef | |
| import ayon_api | |
| from ayon_core.pipeline import publish | |
| import ayon_api | |
| from ayon_core.lib import BoolDef | |
| from ayon_core.pipeline import publish |
iLLiCiTiT
reviewed
Nov 19, 2025
Comment on lines
+148
to
+159
| SHOT_ATTRS = ( | ||
| "handleStart", | ||
| "handleEnd", | ||
| "frameStart", | ||
| "frameEnd", | ||
| "clipIn", | ||
| "clipOut", | ||
| "fps", | ||
| "resolutionWidth", | ||
| "resolutionHeight", | ||
| "pixelAspect", | ||
| ) |
Member
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this can be at the top of the files as constant.
iLLiCiTiT
approved these changes
Nov 19, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
size/XS
sponsored
This is directly sponsored by a client or community member
type: enhancement
Improvement of existing functionality or minor addition
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.
Summary
This enhancement introduces conditional shot attribute publishing functionality to the
CollectHierarchyplugin, allowing users to control when shot attributes (Frame Start/End, Clip In/Out, etc.) are updated during publishing.User is able to toggle the updating by going into Publisher's Context item and toggle

Ignore shot attributes on updateChangelog Description
Shot attributes can now be updated on demand with Shot product instance attribute toggle. When enabled, shot attributes like Frame Start/End and Clip In/Out will be updated during publishing. When disabled, existing shot attributes remain unchanged.
Changes Made
Core Functionality
CollectHierarchyplugin with conditional shot attribute updatingignore_shot_attributes_on_updatesetting with per-instance controlAYONPyblishPluginMixinfor settings integrationKey Features Added
ignore_shot_attributes_on_updatetoggle is disabledSettings
Project Settings > Core > Collect Hierarchyfalse)true, prevents updating shot attributes on existing shotsShot Attributes Controlled
The following shot attributes are conditionally updated:
handleStart/handleEnd- Shot handle framesframeStart/frameEnd- Shot frame rangeclipIn/clipOut- Editorial clip timingfps- Frame rateresolutionWidth/resolutionHeight- Shot resolutionpixelAspect- Pixel aspect ratioTesting Notes
Compatibility
Related