1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 from bpy
.types
import AddonPreferences
20 from bpy
.props
import StringProperty
23 class AddCameraRigsPreferences(AddonPreferences
):
24 bl_idname
= 'add_camera_rigs'
27 widget_prefix
: StringProperty(
28 name
="Camera Widget prefix",
29 description
="Prefix for the widget objects",
34 camera_widget_collection_name
: StringProperty(
35 name
="Bone Widget collection name",
36 description
="Name for the collection the widgets will appear",
40 def draw(self
, context
):
45 col
.prop(self
, "widget_prefix", text
="Widget Prefix")
46 col
.prop(self
, "camera_widget_collection_name", text
="Collection name")
50 AddCameraRigsPreferences
,
55 from bpy
.utils
import register_class
61 from bpy
.utils
import unregister_class