Import_3ds: Improved distance cue node setup
[blender-addons.git] / add_camera_rigs / prefs.py
blobbdb2a9d56d0b8b23ac4832bcdc0a30eaf53cdc22
1 # SPDX-FileCopyrightText: 2019-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 from bpy.types import AddonPreferences
6 from bpy.props import StringProperty
9 class AddCameraRigsPreferences(AddonPreferences):
10 bl_idname = 'add_camera_rigs'
12 # Widget prefix
13 widget_prefix: StringProperty(
14 name="Camera Widget prefix",
15 description="Prefix for the widget objects",
16 default="WGT-",
19 # Collection name
20 camera_widget_collection_name: StringProperty(
21 name="Bone Widget collection name",
22 description="Name for the collection the widgets will appear",
23 default="Widgets",
26 def draw(self, context):
27 layout = self.layout
29 row = layout.row()
30 col = row.column()
31 col.prop(self, "widget_prefix", text="Widget Prefix")
32 col.prop(self, "camera_widget_collection_name", text="Collection name")
35 classes = (
36 AddCameraRigsPreferences,
40 def register():
41 from bpy.utils import register_class
42 for cls in classes:
43 register_class(cls)
46 def unregister():
47 from bpy.utils import unregister_class
48 for cls in classes:
49 unregister_class(cls)