2 # Copyright (C) 2016-2020 by Nathan Lovato, Daniel Oakey, Razvan Radulescu, and contributors
4 # This file is part of Power Sequencer.
6 # Power Sequencer is free software: you can redistribute it and/or modify it under the terms of the
7 # GNU General Public License as published by the Free Software Foundation, either version 3 of the
8 # License, or (at your option) any later version.
10 # Power Sequencer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 # without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License along with Power Sequencer. If
15 # not, see <https://www.gnu.org/licenses/>.
20 class PowerSequencerProperties(bpy
.types
.PropertyGroup
):
21 playback_speed
: bpy
.props
.EnumProperty(
23 ("NORMAL", "Normal (1x)", ""),
24 ("FAST", "Fast (1.33x)", ""),
25 ("FASTER", "Faster (1.66x)", ""),
26 ("DOUBLE", "Double (2x)", ""),
27 ("TRIPLE", "Triple (3x)", ""),
33 frame_pre
: bpy
.props
.IntProperty(name
="Frame before frame_change", default
=0, min=0)
35 active_tab
: bpy
.props
.StringProperty(
36 name
="Active Tab", description
="The name of the active tab in the UI", default
="Sequencer"
40 def register_properties():
41 bpy
.utils
.register_class(PowerSequencerProperties
)
42 bpy
.types
.Scene
.power_sequencer
= bpy
.props
.PointerProperty(type=PowerSequencerProperties
)
45 def unregister_properties():
46 bpy
.utils
.unregister_class(PowerSequencerProperties
)