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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# <pep8-80 compliant>
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# 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
# MERCHANTABILITY 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, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
__author__ = "Nutti <nutti.metro@gmail.com>"
__status__ = "production"
__version__ = "4.3"
__date__ = "1 Apr 2017"
bl_info = {
"name": "Magic UV",
"author": "Nutti, Mifth, Jace Priester, kgeogeo, mem, Keith (Wahooney) Boshoff, McBuff, MaxRobinot",
"version": (4, 3),
"blender": (2, 77, 0),
"location": "See Add-ons Preferences",
"description": "UV Manipulator Tools. See Add-ons Preferences for details",
"warning": "",
"support": "COMMUNITY",
"wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/UV/Magic_UV",
"tracker_url": "https://github.com/nutti/Magic-UV",
"category": "UV"
}
if "bpy" in locals():
import imp
imp.reload(muv_preferences)
imp.reload(muv_menu)
imp.reload(muv_common)
imp.reload(muv_props)
imp.reload(muv_cpuv_ops)
imp.reload(muv_cpuv_selseq_ops)
imp.reload(muv_fliprot_ops)
imp.reload(muv_transuv_ops)
imp.reload(muv_uvbb_ops)
imp.reload(muv_mvuv_ops)
imp.reload(muv_texproj_ops)
imp.reload(muv_packuv_ops)
imp.reload(muv_texlock_ops)
imp.reload(muv_mirroruv_ops)
imp.reload(muv_wsuv_ops)
imp.reload(muv_unwrapconst_ops)
imp.reload(muv_preserve_uv_aspect)
else:
from . import muv_preferences
from . import muv_menu
from . import muv_common
from . import muv_props
from . import muv_cpuv_ops
from . import muv_cpuv_selseq_ops
from . import muv_fliprot_ops
from . import muv_transuv_ops
from . import muv_uvbb_ops
from . import muv_mvuv_ops
from . import muv_texproj_ops
from . import muv_packuv_ops
from . import muv_texlock_ops
from . import muv_mirroruv_ops
from . import muv_wsuv_ops
from . import muv_unwrapconst_ops
from . import muv_preserve_uv_aspect
import bpy
def view3d_uvmap_menu_fn(self, context):
self.layout.separator()
self.layout.menu(muv_menu.MUV_CPUVMenu.bl_idname, icon="PLUGIN")
self.layout.operator(muv_fliprot_ops.MUV_FlipRot.bl_idname, icon="PLUGIN")
self.layout.menu(muv_menu.MUV_TransUVMenu.bl_idname, icon="PLUGIN")
self.layout.operator(muv_mvuv_ops.MUV_MVUV.bl_idname, icon="PLUGIN")
self.layout.menu(muv_menu.MUV_TexLockMenu.bl_idname, icon="PLUGIN")
self.layout.operator(
muv_mirroruv_ops.MUV_MirrorUV.bl_idname, icon="PLUGIN")
self.layout.menu(muv_menu.MUV_WSUVMenu.bl_idname, icon="PLUGIN")
self.layout.operator(
muv_unwrapconst_ops.MUV_UnwrapConstraint.bl_idname, icon='PLUGIN')
self.layout.menu(
muv_preserve_uv_aspect.MUV_PreserveUVAspectMenu.bl_idname,
icon='PLUGIN')
def image_uvs_menu_fn(self, context):
self.layout.separator()
self.layout.operator(muv_packuv_ops.MUV_PackUV.bl_idname, icon="PLUGIN")
def view3d_object_menu_fn(self, context):
self.layout.separator()
self.layout.menu(muv_menu.MUV_CPUVObjMenu.bl_idname, icon="PLUGIN")
def register():
bpy.utils.register_module(__name__)
bpy.types.VIEW3D_MT_uv_map.append(view3d_uvmap_menu_fn)
bpy.types.IMAGE_MT_uvs.append(image_uvs_menu_fn)
bpy.types.VIEW3D_MT_object.append(view3d_object_menu_fn)
muv_props.init_props(bpy.types.Scene)
def unregister():
bpy.utils.unregister_module(__name__)
bpy.types.VIEW3D_MT_uv_map.remove(view3d_uvmap_menu_fn)
bpy.types.IMAGE_MT_uvs.remove(image_uvs_menu_fn)
bpy.types.VIEW3D_MT_object.remove(view3d_object_menu_fn)
muv_props.clear_props(bpy.types.Scene)
if __name__ == "__main__":
register()
|