WIP: VSE: Use seconds for strip length and position #105620

Draft
Richard Antalik wants to merge 13 commits from iss/blender:time-in-seconds into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

When seconds are used to define strips, this allows for changing scene framerate without affecting timeline composition.

Seconds are only used internally where necessary. All accessor functions return length or position in frames.
There is no change for user.

Drawback is, that in a lot of cases, conversion from seconds to frames and back to seconds is necessary.

TODO:

  • Retimed strips don't work very well. Perhaps a function could exist to get overall factor, so it can be applied to seq->len

Plan for this patch is to merge after Sequence::anim_*ofs is replaced by retiming freeze frames

When seconds are used to define strips, this allows for changing scene framerate without affecting timeline composition. Seconds are only used internally where necessary. All accessor functions return length or position in frames. There is no change for user. Drawback is, that in a lot of cases, conversion from seconds to frames and back to seconds is necessary. TODO: - Retimed strips don't work very well. Perhaps a function could exist to get overall factor, so it can be applied to `seq->len` Plan for this patch is to merge after `Sequence::anim_*ofs` is replaced by retiming freeze frames
Richard Antalik added 8 commits 2023-03-09 23:16:06 +01:00
Hans Goudey changed title from [WIP] VSE: Use seconds for strip length and position to WIP: VSE: Use seconds for strip length and position 2023-03-09 23:44:24 +01:00
Richard Antalik added 1 commit 2023-04-12 03:07:22 +02:00
2eef653538 Update operators and RNA
Rna is still buggy - needs to calculate frames to seconds?
Richard Antalik added 1 commit 2023-06-22 15:48:52 +02:00
Richard Antalik added 2 commits 2023-06-23 17:10:33 +02:00
Richard Antalik added 1 commit 2023-06-27 09:14:06 +02:00
This pull request has changes conflicting with the target branch.
  • source/blender/blenkernel/BKE_blender_version.h
  • source/blender/blenkernel/intern/sound.c
  • source/blender/blenloader/intern/versioning_400.cc
  • source/blender/editors/space_sequencer/sequencer_draw.cc
  • source/blender/editors/space_sequencer/sequencer_edit.cc
  • source/blender/editors/space_sequencer/sequencer_gizmo_retime_type.cc
  • source/blender/editors/space_sequencer/sequencer_retiming.cc
  • source/blender/editors/transform/transform_convert_sequencer.c
  • source/blender/editors/transform/transform_snap_sequencer.c
  • source/blender/makesdna/DNA_sequence_types.h

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u time-in-seconds:iss-time-in-seconds
git checkout iss-time-in-seconds
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#105620
No description provided.