-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
75 lines (58 loc) · 2.13 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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/>.
import bpy
from bpy import context as context
from . fpc import state
from . fpc import TestFpCvStepsBreakdown, GenerateFloorPlanImageOperator, FpcPropGrp
bl_info = {
"name" : "FloorPlanCreator",
"author" : "haseeb",
"description" : "floor plan 3d mesh generator",
"blender" : (3, 50, 0),
"version" : (0, 0, 1),
"location" : "View3D",
"warning" : "",
"category" : "Generic"
}
# SPECIAL LINE
bpy.types.Scene.ff_FPC_prop_grp = bpy.props.PointerProperty(type=FpcPropGrp)
# MAIN PANEL CONTROL
class FPC_PT_Panel(bpy.types.Panel):
bl_idname = "FPC_PT_Panel"
bl_label = "FloorPlanCreator"
bl_category = "FF_Tools"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
def draw(self,context):
layout = self.layout
s = state()
# Modeling
box_rg = layout.box()
col = box_rg.column(align = True)
col.label(text='Floor Plan Options')
row = col.row(align = True)
row.operator("fpc.testfpcvstepsbreakdown", text="Test FP CV Steps")
row = col.row(align = True)
row.operator("fpc.generatefloorplanimage", text="Generate Floor Plan")
# row.operator("ffgen.re_mirror", text="Re-Mirror ")
classes = (
TestFpCvStepsBreakdown,
GenerateFloorPlanImageOperator,
FPC_PT_Panel)
register,unregister = bpy.utils.register_classes_factory(classes)
# from . import auto_load
# auto_load.init()
# def register():
# auto_load.register()
# def unregister():
# auto_load.unregister()