Skip to content
Snippets Groups Projects
  • Nathan Lovato's avatar
    f2df91ea
    Update power sequencer to work with Blender 3.3 · f2df91ea
    Nathan Lovato authored
    fix: update code to work with sequencer API changes in Blender 3.X
    fix: Error when calling grab sequence handles due to type mismatch
    fix: remove FAST and FASTER playback speeds, simplify playback speed code
    fix: rewrite select_all_left_or_right after API change causing error
    fix: fix error with jump_to_cut when encountering animation frames
    fix: fix jump_to_cut skipping some strip ends when moving forward in time
    fix: jump_to_cut sometimes not working when going left
    fix: error when trimming effect strips
    chore: update license text upstream to match Blender's short format
    f2df91ea
    History
    Update power sequencer to work with Blender 3.3
    Nathan Lovato authored
    fix: update code to work with sequencer API changes in Blender 3.X
    fix: Error when calling grab sequence handles due to type mismatch
    fix: remove FAST and FASTER playback speeds, simplify playback speed code
    fix: rewrite select_all_left_or_right after API change causing error
    fix: fix error with jump_to_cut when encountering animation frames
    fix: fix jump_to_cut skipping some strip ends when moving forward in time
    fix: jump_to_cut sometimes not working when going left
    fix: error when trimming effect strips
    chore: update license text upstream to match Blender's short format
addon_properties.py 879 B
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors
import bpy


class PowerSequencerProperties(bpy.types.PropertyGroup):
    playback_speed: bpy.props.EnumProperty(
        items=[
            ("NORMAL", "Normal (1x)", ""),
            ("DOUBLE", "Double (2x)", ""),
            ("TRIPLE", "Triple (3x)", ""),
        ],
        name="Playback",
        default="NORMAL",
    )

    active_tab: bpy.props.StringProperty(
        name="Active Tab", description="The name of the active tab in the UI", default="Sequencer"
    )


def register_properties():
    bpy.utils.register_class(PowerSequencerProperties)
    bpy.types.Scene.power_sequencer = bpy.props.PointerProperty(type=PowerSequencerProperties)


def unregister_properties():
    bpy.utils.unregister_class(PowerSequencerProperties)