-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
69 lines (53 loc) · 1.78 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
import bpy, sys, os
from . TMG_UV_Tools import *
from bpy_extras.io_utils import ImportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty, FloatProperty, FloatVectorProperty, PointerProperty
from bpy.types import Operator, Header
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
# Extra online resources used in this script
# https://blender.stackexchange.com/questions/155515/how-do-a-create-a-foldout-ui-panel
# Thank you all that download, suggest, and request features
# As well as the whole Blender community. You're all epic :)
bl_info = {
"name": "TMG_UV_Tools",
"author": "Johnathan Mueller",
"descrtion": "A panel to manage uv layers",
"blender": (2, 80, 0),
"version": (0, 1, 1),
"location": "View3D (ObjectMode) > Sidebar > TMG > UV Tab",
"warning": "",
"category": "Object"
}
classes = (
## Properties
TMG_UV_Properties,
## UV Operators
OBJECT_PT_TMG_UV_ActiveRenderUV,
OBJECT_PT_TMG_UV_AddUV,
OBJECT_PT_TMG_UV_DeleteAllUV,
OBJECT_PT_TMG_UV_DeleteOB,
OBJECT_PT_TMG_UV_DeleteUV,
OBJECT_PT_TMG_UV_RenameUV,
OBJECT_PT_TMG_UV_SelectOB,
OBJECT_PT_TMG_UV_SelectUV,
EDIT_PT_TMG_UV_Unwrap,
## UV Object Panel
OBJECT_PT_TMG_UV_Object_Panel,
OBJECT_PT_TMG_UV_Object_Panel_List,
# OBJECT_PT_TMG_UV_Panel,
OBJECT_PT_TMG_UV_Panel_List,
## UV Edit Panel
EDIT_PT_TMG_UV_Panel,
EDIT_PT_TMG_UV_Unwrap_Settings_Panel,
EDIT_PT_TMG_UV_Panel_List,
)
def register():
for rsclass in classes:
bpy.utils.register_class(rsclass)
bpy.types.Scene.tmg_uv_vars = bpy.props.PointerProperty(type=TMG_UV_Properties)
def unregister():
for rsclass in classes:
bpy.utils.unregister_class(rsclass)
if __name__ == "__main__":
register()