Storypencil addon "Edit" and "Back to VSE" buttons problem with time #104901
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104901
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 536.99
Blender Version
Broken: version: 3.6.1, branch: blender-v3.6-release, commit date: 2023-07-17 12:50, hash:
8bda729ef4dc
Worked: (newest version of Blender that worked as expected)
Short description of error
Storypencil addon "Edit" and "Back to VSE" buttons and red/green markers don't work correctly when a strip has a Time Speed Factor different than 1
Exact steps for others to reproduce the error
Thanks for the report. I can confirm.
cc @antoniov
If it can be useful, for now I've created a workaround with a custom made addon that adds a new "Edit" button that finds IN and OUT markers with this code:
shot_in = strip.frame_offset_start * strip.speed_factor
shot_out = shot_in + round(strip.frame_final_duration*strip.speed_factor) - 1
instead of the original code found in "dopesheet_overlay.py" line 53:
shot_in = strip.scene.frame_start + strip.frame_offset_start
shot_out = shot_in + strip.frame_final_duration - 1
and I find the timeline cursor frame in the edited scene with this code:
vse_frame = scene.frame_current
vse_frame_position = vse_frame - selected_strip.frame_final_start
vse_frame_ratio = vse_frame_position / (selected_strip.frame_final_duration)
edit_frame = shot_in + round(vse_frame_ratio*(shot_out-shot_in)) + 1
if edit_frame < selected_strip.scene.frame_start:
edit_frame = selected_strip.scene.frame_start
selected_strip.scene.frame_current = int(edit_frame)
instead of the original code in "synchro.py" line 788:
active_frame = cfra_prv - strip.frame_start + 1
if active_frame < strip.scene.frame_start:
active_frame = strip.scene.frame_start
context.window.scene.frame_current = int(active_frame)
I hope it can be useful to correct the addon code.
Thanks for looking at this issue. Could you create a PR so artists can test your changes?
Sorry @antoniov, I don't know what you mean by "create a PR", could you explain me?
A PR is "Pull Request". Basically, it's a way to include the changes in a file tat can be tested and later merged to the main code.
You need to configure GIt to do that. You can find more info here:
https://wiki.blender.org/wiki/Process/Contributing_Code
https://wiki.blender.org/wiki/Tools/Pull_Requests
For add-ons is more simple, but the rules are the same.
If you don't know how to do it, then paste a zip with the add-on with your modifications and I can create the PR.