-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path__init__.py
55 lines (50 loc) · 2.33 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import bpy
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
bl_info = {
"name" : "nijiGPen",
"author" : "https://github.com/chsh2/nijiGPen",
"description" : "Tools modifying/generating Grease Pencil strokes in a 2D plane",
"blender" : (3, 3, 0),
"version" : (0, 5, 2),
"location" : "View3D > Sidebar > NijiGP, in Draw and Edit mode of Grease Pencil objects",
"warning" : "This addon is still in an early stage of development",
"category" : "Object"
}
from . import auto_load
from .ui_viewport_tools import *
auto_load.init()
def register():
auto_load.register()
bpy.types.Scene.nijigp_working_plane = bpy.props.EnumProperty(
name='Working Plane',
items=[('X-Z', 'Front (X-Z)', ''),
('Y-Z', 'Side (Y-Z)', ''),
('X-Y', 'Top (X-Y)', ''),
('VIEW', 'View (Beta)', ''),
('AUTO', 'Auto (Beta)', '')],
default='X-Z',
description='The 2D (local) plane that most add-on operators are working on'
)
bpy.types.Scene.nijigp_draw_bool_material_constraint = bpy.props.BoolProperty(
default=False,
description="Boolean operations in Draw mode only apply to strokes with the same material"
)
bpy.types.Scene.nijigp_draw_bool_fill_constraint = bpy.props.BoolProperty(
default=True,
description="Boolean operations in Draw mode only apply to strokes showing fills"
)
register_viewport_tools()
def unregister():
auto_load.unregister()
unregister_viewport_tools()