1 # SPDX-License-Identifier: GPL-2.0-or-later
3 from bpy
.types
import AddonPreferences
4 from bpy
.props
import StringProperty
7 class AddCameraRigsPreferences(AddonPreferences
):
8 bl_idname
= 'add_camera_rigs'
11 widget_prefix
: StringProperty(
12 name
="Camera Widget prefix",
13 description
="Prefix for the widget objects",
18 camera_widget_collection_name
: StringProperty(
19 name
="Bone Widget collection name",
20 description
="Name for the collection the widgets will appear",
24 def draw(self
, context
):
29 col
.prop(self
, "widget_prefix", text
="Widget Prefix")
30 col
.prop(self
, "camera_widget_collection_name", text
="Collection name")
34 AddCameraRigsPreferences
,
39 from bpy
.utils
import register_class
45 from bpy
.utils
import unregister_class