Persist DisableStretch in embedded preset/project data#51
Open
globalprojectscorp wants to merge 2 commits intogyroflow:mainfrom
Open
Persist DisableStretch in embedded preset/project data#51globalprojectscorp wants to merge 2 commits intogyroflow:mainfrom
globalprojectscorp wants to merge 2 commits intogyroflow:mainfrom
Conversation
When "Disable Gyroflow's stretch" is checked and project data is saved (via "Embed .gyroflow data in plugin" or preset export), inject a `plugin_disable_stretch` flag into the JSON. On load, check for this flag and automatically enable DisableStretch. This allows the setting to travel with presets and embedded project data, eliminating the need to manually check the box on every clip when the NLE handles anamorphic desqueeze (e.g. via Pixel Aspect Ratio in DaVinci Resolve).
This allows the flag to be added directly to lens profile .json files, so loading a lens profile automatically enables DisableStretch without needing embedded project data.
globalprojectscorp
added a commit
to globalprojectscorp/gyroflow
that referenced
this pull request
Apr 2, 2026
Add a checkbox under the "Lens profile" section in the preset settings selector. When checked, writes `plugin_disable_stretch: true` to the exported .gyroflow preset file. This flag is read by the OFX/Adobe plugins (see gyroflow/gyroflow-plugins#51) to automatically enable "Disable Gyroflow's stretch" when loading the preset. Unchecked by default since it's only needed when the NLE handles anamorphic desqueeze (e.g. via Pixel Aspect Ratio in DaVinci Resolve).
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
plugin_disable_stretch: trueflag is injected into the gyroflow JSONEmbeddedPresetorProjectDataandDisableStretchis automatically enabledMotivation
When using anamorphic lenses in DaVinci Resolve (or any NLE that handles desqueeze via Pixel Aspect Ratio), users must manually check "Disable Gyroflow's stretch" on every clip. This setting cannot currently be saved in presets because it's a plugin-level parameter that doesn't persist in the gyroflow project data.
This change lets the setting travel with embedded project data, so applying a preset to new clips automatically carries the DisableStretch state.
Changes
common/src/lib.rs:maybe_inject_disable_stretch()helper that injects the flag into JSON when DisableStretch is enabledEmbeddedPresetandProjectDatafor the flag before applyingdisable_lens_stretch()disable_stretchmutable so it can be updated from the loaded dataTest plan
🤖 Generated with Claude Code