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'
13 widget_prefix
: StringProperty(
14 name
="Camera Widget prefix",
15 description
="Prefix for the widget objects",
20 camera_widget_collection_name
: StringProperty(
21 name
="Bone Widget collection name",
22 description
="Name for the collection the widgets will appear",
26 def draw(self
, context
):
31 col
.prop(self
, "widget_prefix", text
="Widget Prefix")
32 col
.prop(self
, "camera_widget_collection_name", text
="Collection name")
36 AddCameraRigsPreferences
,
41 from bpy
.utils
import register_class
47 from bpy
.utils
import unregister_class