glTF: Bump version in master after blender-v3.2-release branch creation
[blender-addons.git] / amaranth / prefs.py
blobf5938fcf18706464b2310fcca90e3c1e86d48efa
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 import bpy
4 from bpy.props import (
5 BoolProperty,
6 IntProperty,
10 class AmaranthToolsetPreferences(bpy.types.AddonPreferences):
11 bl_idname = "amaranth"
12 use_frame_current: BoolProperty(
13 name="Current Frame Slider",
14 description="Set the current frame from the Specials menu in the 3D View",
15 default=True,
17 use_file_save_reload: BoolProperty(
18 name="Save & Reload File",
19 description="File menu > Save & Reload, or Ctrl + Shift + W",
20 default=True,
22 use_scene_refresh: BoolProperty(
23 name="Refresh Scene",
24 description="Specials Menu [W]",
25 default=True,
27 use_timeline_extra_info: BoolProperty(
28 name="Timeline Extra Info",
29 description="Timeline Header",
30 default=True,
32 use_image_node_display: BoolProperty(
33 name="Active Image Node in Editor",
34 description="Display active node image in image editor",
35 default=True,
37 use_scene_stats: BoolProperty(
38 name="Extra Scene Statistics",
39 description="Display extra scene statistics in the status bar (may be slow in heavy scenes)",
40 default=False,
42 frames_jump: IntProperty(
43 name="Frames",
44 description="Number of frames to jump forward/backward",
45 default=10,
46 min=1
48 use_framerate: BoolProperty(
49 name="Framerate Jump",
50 description="Jump the amount of frames forward/backward that you have set as your framerate",
51 default=False,
53 use_layers_for_render: BoolProperty(
54 name="Current Layers for Render",
55 description="Save the layers that should be enabled for render",
56 default=True,
59 def draw(self, context):
60 layout = self.layout
62 layout.label(
63 text="Here you can enable or disable specific tools, "
64 "in case they interfere with others or are just plain annoying")
66 split = layout.split(factor=0.25)
68 col = split.column()
69 sub = col.column(align=True)
70 sub.label(text="3D View", icon="VIEW3D")
71 sub.prop(self, "use_frame_current")
72 sub.prop(self, "use_scene_refresh")
74 sub.separator()
76 sub.label(text="General", icon="SCENE_DATA")
77 sub.prop(self, "use_file_save_reload")
78 sub.prop(self, "use_timeline_extra_info")
79 sub.prop(self, "use_scene_stats")
80 sub.prop(self, "use_layers_for_render")
81 sub.prop(self, "use_framerate")
83 sub.separator()
85 sub.label(text="Nodes Editor", icon="NODETREE")
86 sub.prop(self, "use_image_node_display")
88 col = split.column()
89 sub = col.column(align=True)
90 sub.label(text="")
91 sub.label(
92 text="Set the current frame from the Specials menu in the 3D View [W]")
93 sub.label(
94 text="Refresh the current Scene. Hotkey: F5 or in Specials menu [W]")
96 sub.separator()
97 sub.label(text="") # General icon
98 sub.label(
99 text="Quickly save and reload the current file (no warning!). "
100 "File menu or Ctrl+Shift+W")
101 sub.label(
102 text="SMPTE Timecode and frames left/ahead on Timeline's header")
103 sub.label(
104 text="Display extra stats for Scenes, Cameras, Meshlights (Cycles). Can be slow in heavy scenes")
105 sub.label(
106 text="Save the set of layers that should be activated for a final render")
107 sub.label(
108 text="Jump the amount of frames forward/backward that you've set as your framerate")
110 sub.separator()
111 sub.label(text="") # Nodes
112 sub.label(
113 text="When double-clicking an Image node, display it on the Image editor "
114 "(if any)")
117 def register():
118 bpy.utils.register_class(AmaranthToolsetPreferences)
121 def unregister():
122 bpy.utils.unregister_class(AmaranthToolsetPreferences)