2022-02-10 22:07:11 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2009-08-13 16:59:52 +00:00
|
|
|
import bpy
|
2020-09-17 04:38:45 +00:00
|
|
|
from bpy.types import Menu, Panel
|
2022-08-22 12:30:32 +00:00
|
|
|
from bpy.app.translations import contexts as i18n_contexts
|
2009-08-13 16:59:52 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2018-04-20 15:17:10 +00:00
|
|
|
# Header buttons for timeline header (play, etc.)
|
2020-09-17 04:38:45 +00:00
|
|
|
class TIME_HT_editor_buttons:
|
2018-04-19 12:41:20 +00:00
|
|
|
|
2019-04-19 05:51:14 +00:00
|
|
|
@staticmethod
|
2018-04-19 12:41:20 +00:00
|
|
|
def draw_header(context, layout):
|
|
|
|
scene = context.scene
|
2018-12-17 06:20:24 +00:00
|
|
|
tool_settings = context.tool_settings
|
2018-04-19 12:41:20 +00:00
|
|
|
screen = context.screen
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2018-06-11 12:33:53 +00:00
|
|
|
layout.separator_spacer()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2020-10-06 20:17:36 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(tool_settings, "use_keyframe_insert_auto", text="", toggle=True)
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.active = tool_settings.use_keyframe_insert_auto
|
|
|
|
sub.popover(
|
|
|
|
panel="TIME_PT_auto_keyframing",
|
|
|
|
text="",
|
|
|
|
)
|
2018-05-10 17:04:14 +00:00
|
|
|
|
2018-07-02 12:45:55 +00:00
|
|
|
row = layout.row(align=True)
|
2009-12-10 10:23:53 +00:00
|
|
|
row.operator("screen.frame_jump", text="", icon='REW').end = False
|
|
|
|
row.operator("screen.keyframe_jump", text="", icon='PREV_KEYFRAME').next = False
|
2010-08-18 13:02:59 +00:00
|
|
|
if not screen.is_animation_playing:
|
2010-12-22 11:37:56 +00:00
|
|
|
# if using JACK and A/V sync:
|
|
|
|
# hide the play-reversed button
|
|
|
|
# since JACK transport doesn't support reversed playback
|
2018-12-21 01:47:44 +00:00
|
|
|
if scene.sync_mode == 'AUDIO_SYNC' and context.preferences.system.audio_device == 'JACK':
|
2019-08-27 10:52:36 +00:00
|
|
|
row.scale_x = 2
|
|
|
|
row.operator("screen.animation_play", text="", icon='PLAY')
|
|
|
|
row.scale_x = 1
|
2010-12-22 11:37:56 +00:00
|
|
|
else:
|
|
|
|
row.operator("screen.animation_play", text="", icon='PLAY_REVERSE').reverse = True
|
|
|
|
row.operator("screen.animation_play", text="", icon='PLAY')
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2019-08-27 10:52:36 +00:00
|
|
|
row.scale_x = 2
|
|
|
|
row.operator("screen.animation_play", text="", icon='PAUSE')
|
|
|
|
row.scale_x = 1
|
2009-12-10 10:23:53 +00:00
|
|
|
row.operator("screen.keyframe_jump", text="", icon='NEXT_KEYFRAME').next = True
|
|
|
|
row.operator("screen.frame_jump", text="", icon='FF').end = True
|
2011-01-01 07:20:34 +00:00
|
|
|
|
2018-06-11 12:33:53 +00:00
|
|
|
layout.separator_spacer()
|
2018-05-10 17:04:14 +00:00
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
if scene.show_subframe:
|
2019-08-27 10:52:36 +00:00
|
|
|
row.scale_x = 1.15
|
2018-05-10 17:04:14 +00:00
|
|
|
row.prop(scene, "frame_float", text="")
|
|
|
|
else:
|
2019-08-27 10:52:36 +00:00
|
|
|
row.scale_x = 0.95
|
2018-05-10 17:04:14 +00:00
|
|
|
row.prop(scene, "frame_current", text="")
|
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
row = layout.row(align=True)
|
2018-05-10 17:04:14 +00:00
|
|
|
row.prop(scene, "use_preview_range", text="", toggle=True)
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.scale_x = 0.8
|
|
|
|
if not scene.use_preview_range:
|
|
|
|
sub.prop(scene, "frame_start", text="Start")
|
|
|
|
sub.prop(scene, "frame_end", text="End")
|
|
|
|
else:
|
|
|
|
sub.prop(scene, "frame_preview_start", text="Start")
|
|
|
|
sub.prop(scene, "frame_preview_end", text="End")
|
2009-08-13 22:10:50 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2014-01-27 07:38:53 +00:00
|
|
|
class TIME_MT_editor_menus(Menu):
|
|
|
|
bl_idname = "TIME_MT_editor_menus"
|
|
|
|
bl_label = ""
|
|
|
|
|
2019-12-12 02:43:37 +00:00
|
|
|
def draw(self, context):
|
2018-12-20 01:02:21 +00:00
|
|
|
layout = self.layout
|
2018-12-20 02:46:56 +00:00
|
|
|
horizontal = (layout.direction == 'VERTICAL')
|
2019-12-12 02:43:37 +00:00
|
|
|
st = context.space_data
|
2018-08-15 13:54:58 +00:00
|
|
|
if horizontal:
|
|
|
|
row = layout.row()
|
|
|
|
sub = row.row(align=True)
|
|
|
|
else:
|
|
|
|
sub = layout
|
|
|
|
|
2018-07-02 18:25:59 +00:00
|
|
|
sub.popover(
|
2018-07-13 17:13:44 +00:00
|
|
|
panel="TIME_PT_playback",
|
2018-06-26 20:56:39 +00:00
|
|
|
text="Playback",
|
|
|
|
)
|
2018-07-02 18:25:59 +00:00
|
|
|
sub.popover(
|
2018-07-13 17:13:44 +00:00
|
|
|
panel="TIME_PT_keyframing_settings",
|
2018-06-26 20:56:39 +00:00
|
|
|
text="Keying",
|
2022-08-22 12:30:32 +00:00
|
|
|
text_ctxt=i18n_contexts.id_windowmanager,
|
2018-06-26 20:56:39 +00:00
|
|
|
)
|
2018-07-02 18:25:59 +00:00
|
|
|
|
2021-01-26 17:55:36 +00:00
|
|
|
# Add a separator to keep the popover button from aligning with the menu button.
|
|
|
|
sub.separator(factor=0.4)
|
|
|
|
|
2018-08-15 13:54:58 +00:00
|
|
|
if horizontal:
|
|
|
|
sub = row.row(align=True)
|
|
|
|
|
2018-07-02 18:25:59 +00:00
|
|
|
sub.menu("TIME_MT_view")
|
2019-11-30 06:03:22 +00:00
|
|
|
if st.show_markers:
|
|
|
|
sub.menu("TIME_MT_marker")
|
2014-01-27 07:38:53 +00:00
|
|
|
|
|
|
|
|
2011-11-11 03:28:46 +00:00
|
|
|
class TIME_MT_marker(Menu):
|
2011-11-03 12:47:39 +00:00
|
|
|
bl_label = "Marker"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2019-03-13 00:52:54 +00:00
|
|
|
marker_menu_generic(layout, context)
|
2011-11-03 12:47:39 +00:00
|
|
|
|
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class TIME_MT_view(Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "View"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2014-04-25 15:36:34 +00:00
|
|
|
scene = context.scene
|
2009-10-31 19:31:45 +00:00
|
|
|
st = context.space_data
|
|
|
|
|
2022-09-20 12:36:20 +00:00
|
|
|
layout.prop(st, "show_region_hud")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2012-01-14 14:17:12 +00:00
|
|
|
layout.prop(st, "show_seconds")
|
2014-05-01 04:49:47 +00:00
|
|
|
layout.prop(st, "show_locked_time")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2019-11-30 06:03:22 +00:00
|
|
|
layout.prop(st, "show_markers")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2014-04-25 15:36:34 +00:00
|
|
|
layout.prop(scene, "show_keys_from_selected_only")
|
2020-05-15 09:54:17 +00:00
|
|
|
layout.prop(st.dopesheet, "show_only_errors")
|
2009-08-13 22:10:50 +00:00
|
|
|
|
Timeline addition: Display cached frames
This started off doing pointcache debugging but it's also very useful for users too.
Previously it was very hard to see the state of the system when you're working caches
such as physics point cache - is it baked? which frames are cached? is it out of date?
Now, for better feedback, cached frames are drawn for the active object at the bottom
of the timeline - a semitransparent area shows the entire cache extents, and more
solid blocks on top show the frames that are cached. Darker versions indicate it's
using a disk cache.
It can be disabled in general in the timeline View -> Caches menu, or by each individual
system that can be shown.
There's still a bit to do on this, behaviour needs to be clarified still eg. deciding what
shows when it's out of date, or when it's been played back but not cached, etc. etc.
Part of this is due to a lack of definition in the point cache system itself, so we should
try and clean up/clarify this behaviour and what it means to users, at the same time.
Also would be interested in extending this to other caches such as fluid cache,
sequencer memory cache etc. in the future, too.
2010-06-22 02:29:52 +00:00
|
|
|
layout.separator()
|
2010-07-05 22:22:22 +00:00
|
|
|
|
Timeline addition: Display cached frames
This started off doing pointcache debugging but it's also very useful for users too.
Previously it was very hard to see the state of the system when you're working caches
such as physics point cache - is it baked? which frames are cached? is it out of date?
Now, for better feedback, cached frames are drawn for the active object at the bottom
of the timeline - a semitransparent area shows the entire cache extents, and more
solid blocks on top show the frames that are cached. Darker versions indicate it's
using a disk cache.
It can be disabled in general in the timeline View -> Caches menu, or by each individual
system that can be shown.
There's still a bit to do on this, behaviour needs to be clarified still eg. deciding what
shows when it's out of date, or when it's been played back but not cached, etc. etc.
Part of this is due to a lack of definition in the point cache system itself, so we should
try and clean up/clarify this behaviour and what it means to users, at the same time.
Also would be interested in extending this to other caches such as fluid cache,
sequencer memory cache etc. in the future, too.
2010-06-22 02:29:52 +00:00
|
|
|
layout.menu("TIME_MT_cache")
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2009-12-16 19:49:33 +00:00
|
|
|
layout.separator()
|
|
|
|
|
2018-04-23 11:53:03 +00:00
|
|
|
# NOTE: "action" now, since timeline is in the dopesheet editor, instead of as own editor
|
|
|
|
layout.operator("action.view_all")
|
|
|
|
layout.operator("action.view_frame")
|
2016-04-16 15:44:10 +00:00
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2018-05-24 16:35:19 +00:00
|
|
|
layout.menu("INFO_MT_area")
|
2012-11-04 18:26:30 +00:00
|
|
|
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class TIME_MT_cache(Menu):
|
Timeline addition: Display cached frames
This started off doing pointcache debugging but it's also very useful for users too.
Previously it was very hard to see the state of the system when you're working caches
such as physics point cache - is it baked? which frames are cached? is it out of date?
Now, for better feedback, cached frames are drawn for the active object at the bottom
of the timeline - a semitransparent area shows the entire cache extents, and more
solid blocks on top show the frames that are cached. Darker versions indicate it's
using a disk cache.
It can be disabled in general in the timeline View -> Caches menu, or by each individual
system that can be shown.
There's still a bit to do on this, behaviour needs to be clarified still eg. deciding what
shows when it's out of date, or when it's been played back but not cached, etc. etc.
Part of this is due to a lack of definition in the point cache system itself, so we should
try and clean up/clarify this behaviour and what it means to users, at the same time.
Also would be interested in extending this to other caches such as fluid cache,
sequencer memory cache etc. in the future, too.
2010-06-22 02:29:52 +00:00
|
|
|
bl_label = "Cache"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
st = context.space_data
|
|
|
|
|
|
|
|
layout.prop(st, "show_cache")
|
|
|
|
|
|
|
|
layout.separator()
|
2009-10-31 23:35:56 +00:00
|
|
|
|
Timeline addition: Display cached frames
This started off doing pointcache debugging but it's also very useful for users too.
Previously it was very hard to see the state of the system when you're working caches
such as physics point cache - is it baked? which frames are cached? is it out of date?
Now, for better feedback, cached frames are drawn for the active object at the bottom
of the timeline - a semitransparent area shows the entire cache extents, and more
solid blocks on top show the frames that are cached. Darker versions indicate it's
using a disk cache.
It can be disabled in general in the timeline View -> Caches menu, or by each individual
system that can be shown.
There's still a bit to do on this, behaviour needs to be clarified still eg. deciding what
shows when it's out of date, or when it's been played back but not cached, etc. etc.
Part of this is due to a lack of definition in the point cache system itself, so we should
try and clean up/clarify this behaviour and what it means to users, at the same time.
Also would be interested in extending this to other caches such as fluid cache,
sequencer memory cache etc. in the future, too.
2010-06-22 02:29:52 +00:00
|
|
|
col = layout.column()
|
|
|
|
col.enabled = st.show_cache
|
|
|
|
col.prop(st, "cache_softbody")
|
|
|
|
col.prop(st, "cache_particles")
|
|
|
|
col.prop(st, "cache_cloth")
|
|
|
|
col.prop(st, "cache_smoke")
|
2011-06-16 10:41:00 +00:00
|
|
|
col.prop(st, "cache_dynamicpaint")
|
2013-01-23 05:56:34 +00:00
|
|
|
col.prop(st, "cache_rigidbody")
|
2009-12-26 09:36:50 +00:00
|
|
|
|
2010-07-05 22:22:22 +00:00
|
|
|
|
2019-03-13 00:52:54 +00:00
|
|
|
def marker_menu_generic(layout, context):
|
2011-11-03 12:47:39 +00:00
|
|
|
|
2015-08-31 17:51:50 +00:00
|
|
|
# layout.operator_context = 'EXEC_REGION_WIN'
|
2011-11-03 12:47:39 +00:00
|
|
|
|
|
|
|
layout.column()
|
2018-08-28 16:01:53 +00:00
|
|
|
layout.operator("marker.add", text="Add Marker")
|
2011-11-03 12:47:39 +00:00
|
|
|
layout.operator("marker.duplicate", text="Duplicate Marker")
|
|
|
|
|
2013-04-04 17:01:51 +00:00
|
|
|
if len(bpy.data.scenes) > 10:
|
2011-11-03 12:47:39 +00:00
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
|
|
|
layout.operator("marker.make_links_scene", text="Duplicate Marker to Scene...", icon='OUTLINER_OB_EMPTY')
|
|
|
|
else:
|
2017-06-09 19:23:44 +00:00
|
|
|
layout.operator_menu_enum("marker.make_links_scene", "scene", text="Duplicate Marker to Scene")
|
2011-11-03 12:47:39 +00:00
|
|
|
|
|
|
|
layout.operator("marker.delete", text="Delete Marker")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2022-04-14 08:56:08 +00:00
|
|
|
props = layout.operator("wm.call_panel", text="Rename Marker")
|
|
|
|
props.name = "TOPBAR_PT_name_marker"
|
|
|
|
props.keep_open = False
|
2018-09-06 10:13:01 +00:00
|
|
|
layout.operator("marker.move", text="Move Marker")
|
2013-11-19 16:38:18 +00:00
|
|
|
|
2013-10-21 15:00:22 +00:00
|
|
|
layout.separator()
|
2013-11-19 16:38:18 +00:00
|
|
|
|
2022-04-14 09:30:12 +00:00
|
|
|
layout.menu('NLA_MT_marker_select')
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2018-04-24 15:59:32 +00:00
|
|
|
layout.operator("marker.camera_bind")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
2013-10-21 15:00:22 +00:00
|
|
|
layout.operator("screen.marker_jump", text="Jump to Next Marker").next = True
|
|
|
|
layout.operator("screen.marker_jump", text="Jump to Previous Marker").next = False
|
2011-11-03 12:47:39 +00:00
|
|
|
|
2015-04-14 10:11:24 +00:00
|
|
|
layout.separator()
|
2018-12-17 06:26:47 +00:00
|
|
|
tool_settings = context.tool_settings
|
|
|
|
layout.prop(tool_settings, "lock_markers")
|
2015-04-14 10:11:24 +00:00
|
|
|
|
2018-05-10 16:33:41 +00:00
|
|
|
###################################
|
|
|
|
|
2018-06-05 14:35:20 +00:00
|
|
|
|
2018-05-10 16:33:41 +00:00
|
|
|
class TimelinePanelButtons:
|
|
|
|
bl_space_type = 'DOPESHEET_EDITOR'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def has_timeline(context):
|
|
|
|
return context.space_data.mode == 'TIMELINE'
|
|
|
|
|
|
|
|
|
2018-05-10 17:28:27 +00:00
|
|
|
class TIME_PT_playback(TimelinePanelButtons, Panel):
|
|
|
|
bl_label = "Playback"
|
|
|
|
bl_region_type = 'HEADER'
|
2020-09-07 19:22:29 +00:00
|
|
|
bl_ui_units_x = 11
|
2018-05-10 17:28:27 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2020-09-07 19:22:29 +00:00
|
|
|
layout.use_property_split = True
|
|
|
|
layout.use_property_decorate = False
|
2018-05-10 17:28:27 +00:00
|
|
|
|
|
|
|
screen = context.screen
|
|
|
|
scene = context.scene
|
|
|
|
|
2020-10-29 11:31:48 +00:00
|
|
|
layout.prop(scene, "sync_mode", text="Sync")
|
|
|
|
col = layout.column(heading="Audio")
|
2020-09-07 19:22:29 +00:00
|
|
|
col.prop(scene, "use_audio_scrub", text="Scrubbing")
|
|
|
|
col.prop(scene, "use_audio", text="Mute")
|
|
|
|
|
|
|
|
col = layout.column(heading="Playback")
|
|
|
|
col.prop(scene, "lock_frame_selection_to_range", text="Limit to Frame Range")
|
|
|
|
col.prop(screen, "use_follow", text="Follow Current Frame")
|
|
|
|
|
|
|
|
col = layout.column(heading="Play In")
|
|
|
|
col.prop(screen, "use_play_top_left_3d_editor", text="Active Editor")
|
|
|
|
col.prop(screen, "use_play_3d_editors", text="3D Viewport")
|
|
|
|
col.prop(screen, "use_play_animation_editors", text="Animation Editors")
|
|
|
|
col.prop(screen, "use_play_image_editors", text="Image Editor")
|
|
|
|
col.prop(screen, "use_play_properties_editors", text="Properties Editor")
|
|
|
|
col.prop(screen, "use_play_clip_editors", text="Movie Clip Editor")
|
|
|
|
col.prop(screen, "use_play_node_editors", text="Node Editors")
|
|
|
|
col.prop(screen, "use_play_sequence_editors", text="Video Sequencer")
|
|
|
|
|
|
|
|
col = layout.column(heading="Show")
|
|
|
|
col.prop(scene, "show_subframe", text="Subframes")
|
2018-05-10 17:28:27 +00:00
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.operator("anim.start_frame_set")
|
|
|
|
row.operator("anim.end_frame_set")
|
|
|
|
|
|
|
|
|
2018-05-10 16:33:41 +00:00
|
|
|
class TIME_PT_keyframing_settings(TimelinePanelButtons, Panel):
|
|
|
|
bl_label = "Keyframing Settings"
|
|
|
|
bl_options = {'HIDE_HEADER'}
|
2018-05-25 15:02:40 +00:00
|
|
|
bl_region_type = 'HEADER'
|
2018-05-10 16:33:41 +00:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
# only for timeline editor
|
|
|
|
return cls.has_timeline(context)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
scene = context.scene
|
2018-12-17 06:26:47 +00:00
|
|
|
tool_settings = context.tool_settings
|
2018-05-10 16:33:41 +00:00
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2020-10-06 20:17:36 +00:00
|
|
|
col.label(text="Active Keying Set")
|
2018-05-10 16:33:41 +00:00
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop_search(scene.keying_sets_all, "active", scene, "keying_sets_all", text="")
|
|
|
|
row.operator("anim.keyframe_insert", text="", icon='KEY_HLT')
|
|
|
|
row.operator("anim.keyframe_delete", text="", icon='KEY_DEHLT')
|
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2020-10-06 20:17:36 +00:00
|
|
|
col.label(text="New Keyframe Type")
|
2018-12-17 06:26:47 +00:00
|
|
|
col.prop(tool_settings, "keyframe_type", text="")
|
2013-11-19 16:38:18 +00:00
|
|
|
|
2021-05-02 21:03:00 +00:00
|
|
|
layout.prop(tool_settings, "use_keyframe_cycle_aware")
|
|
|
|
|
2020-12-16 07:02:40 +00:00
|
|
|
|
2020-10-06 20:17:36 +00:00
|
|
|
class TIME_PT_auto_keyframing(TimelinePanelButtons, Panel):
|
|
|
|
bl_label = "Auto Keyframing"
|
|
|
|
bl_options = {'HIDE_HEADER'}
|
|
|
|
bl_region_type = 'HEADER'
|
|
|
|
bl_ui_units_x = 9
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
# Only for timeline editor.
|
|
|
|
return cls.has_timeline(context)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
tool_settings = context.tool_settings
|
|
|
|
prefs = context.preferences
|
|
|
|
|
|
|
|
layout.active = tool_settings.use_keyframe_insert_auto
|
|
|
|
|
|
|
|
layout.prop(tool_settings, "auto_keying_mode", expand=True)
|
|
|
|
|
2018-05-10 16:33:41 +00:00
|
|
|
col = layout.column(align=True)
|
2020-10-06 20:17:36 +00:00
|
|
|
col.prop(tool_settings, "use_keyframe_insert_keyingset", text="Only Active Keying Set", toggle=False)
|
2018-12-21 01:47:44 +00:00
|
|
|
if not prefs.edit.use_keyframe_insert_available:
|
2018-12-17 06:26:47 +00:00
|
|
|
col.prop(tool_settings, "use_record_with_nla", text="Layered Recording")
|
2018-05-10 16:33:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
###################################
|
2011-11-03 12:47:39 +00:00
|
|
|
|
2017-03-18 09:03:24 +00:00
|
|
|
classes = (
|
|
|
|
TIME_MT_editor_menus,
|
|
|
|
TIME_MT_marker,
|
|
|
|
TIME_MT_view,
|
2017-03-19 15:34:32 +00:00
|
|
|
TIME_MT_cache,
|
2018-05-10 17:28:27 +00:00
|
|
|
TIME_PT_playback,
|
2018-05-10 16:33:41 +00:00
|
|
|
TIME_PT_keyframing_settings,
|
2020-10-06 20:17:36 +00:00
|
|
|
TIME_PT_auto_keyframing,
|
2017-03-18 09:03:24 +00:00
|
|
|
)
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
2017-03-18 09:03:24 +00:00
|
|
|
from bpy.utils import register_class
|
|
|
|
for cls in classes:
|
|
|
|
register_class(cls)
|