2009-11-01 15:21:20 +00:00
|
|
|
# ##### 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.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# 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.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2009-07-11 13:32:20 +00:00
|
|
|
import bpy
|
2009-10-12 21:06:03 +00:00
|
|
|
import dynamic_menu
|
|
|
|
|
2009-07-24 22:09:30 +00:00
|
|
|
|
|
|
|
class VIEW3D_HT_header(bpy.types.Header):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-29 02:42:47 +00:00
|
|
|
view = context.space_data
|
2009-10-31 19:31:45 +00:00
|
|
|
mode_string = context.mode
|
|
|
|
edit_object = context.edit_object
|
2009-11-28 23:37:56 +00:00
|
|
|
obj = context.active_object
|
2009-11-28 22:35:56 +00:00
|
|
|
toolsettings = context.scene.tool_settings
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-03 09:49:21 +00:00
|
|
|
row = layout.row()
|
2009-10-31 19:31:45 +00:00
|
|
|
row.template_header()
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-03 09:49:21 +00:00
|
|
|
sub = row.row(align=True)
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
# Menus
|
|
|
|
if context.area.show_menus:
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.menu("VIEW3D_MT_view")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# Select Menu
|
|
|
|
if mode_string not in ('EDIT_TEXT', 'SCULPT', 'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'):
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.menu("VIEW3D_MT_select_%s" % mode_string.lower())
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if edit_object:
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.menu("VIEW3D_MT_edit_%s" % edit_object.type.lower())
|
2009-11-28 23:37:56 +00:00
|
|
|
elif obj:
|
2009-12-09 01:53:51 +00:00
|
|
|
if mode_string not in ('PAINT_WEIGHT', 'PAINT_TEXTURE'):
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.menu("VIEW3D_MT_%s" % mode_string.lower())
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.menu("VIEW3D_MT_object")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-03 09:49:21 +00:00
|
|
|
row.template_header_3D()
|
2009-07-24 22:09:30 +00:00
|
|
|
|
2009-11-29 02:42:47 +00:00
|
|
|
# Particle edit
|
|
|
|
if obj and obj.mode == 'PARTICLE_EDIT':
|
2009-12-03 09:49:21 +00:00
|
|
|
row.prop(toolsettings.particle_edit, "selection_mode", text="", expand=True, toggle=True)
|
2009-11-29 02:42:47 +00:00
|
|
|
|
|
|
|
# Occlude geometry
|
|
|
|
if obj and view.viewport_shading in ('SOLID', 'SHADED', 'TEXTURED') and (obj.mode == 'PARTICLE_EDIT' or (obj.mode == 'EDIT' and obj.type == 'MESH')):
|
2009-12-03 09:49:21 +00:00
|
|
|
row.prop(view, "occlude_geometry", text="")
|
2009-11-29 02:42:47 +00:00
|
|
|
|
2009-11-28 22:35:56 +00:00
|
|
|
# Proportional editing
|
2009-11-29 02:42:47 +00:00
|
|
|
if obj and obj.mode in ('OBJECT', 'EDIT'):
|
2009-11-28 22:35:56 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(toolsettings, "proportional_editing", text="", icon_only=True)
|
|
|
|
if toolsettings.proportional_editing != 'DISABLED':
|
|
|
|
row.prop(toolsettings, "proportional_editing_falloff", text="", icon_only=True)
|
|
|
|
|
|
|
|
# Snap
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(toolsettings, "snap", text="")
|
|
|
|
row.prop(toolsettings, "snap_element", text="", icon_only=True)
|
|
|
|
if toolsettings.snap_element != 'INCREMENT':
|
2009-12-02 01:38:54 +00:00
|
|
|
row.prop(toolsettings, "snap_target", text="")
|
2009-11-29 02:42:47 +00:00
|
|
|
if obj and obj.mode == 'OBJECT':
|
2009-11-28 22:35:56 +00:00
|
|
|
row.prop(toolsettings, "snap_align_rotation", text="")
|
|
|
|
if toolsettings.snap_element == 'VOLUME':
|
|
|
|
row.prop(toolsettings, "snap_peel_object", text="")
|
|
|
|
elif toolsettings.snap_element == 'FACE':
|
|
|
|
row.prop(toolsettings, "snap_project", text="")
|
|
|
|
|
|
|
|
# OpenGL render
|
|
|
|
row = layout.row(align=True)
|
2009-12-10 10:23:53 +00:00
|
|
|
row.operator("screen.opengl_render", text="", icon='RENDER_STILL')
|
|
|
|
props = row.operator("screen.opengl_render", text="", icon='RENDER_ANIMATION')
|
2009-11-28 22:35:56 +00:00
|
|
|
props.animation = True
|
|
|
|
|
|
|
|
# Pose
|
2009-11-29 02:42:47 +00:00
|
|
|
if obj and obj.mode == 'POSE':
|
2009-11-28 22:35:56 +00:00
|
|
|
row = layout.row(align=True)
|
2009-12-10 10:23:53 +00:00
|
|
|
row.operator("pose.copy", text="", icon='COPYDOWN')
|
|
|
|
row.operator("pose.paste", text="", icon='PASTEDOWN')
|
|
|
|
props = row.operator("pose.paste", text="", icon='PASTEFLIPDOWN')
|
2009-11-28 22:35:56 +00:00
|
|
|
props.flipped = 1
|
|
|
|
|
|
|
|
|
2009-08-15 20:21:49 +00:00
|
|
|
# ********** Menu **********
|
2009-07-24 22:09:30 +00:00
|
|
|
|
2009-08-23 22:13:56 +00:00
|
|
|
# ********** Utilities **********
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-08-23 22:13:56 +00:00
|
|
|
class VIEW3D_MT_showhide(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Show/Hide"
|
|
|
|
_operator_name = ""
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("%s.reveal" % self._operator_name, text="Show Hidden")
|
|
|
|
layout.operator("%s.hide" % self._operator_name, text="Hide Selected")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("%s.hide" % self._operator_name, text="Hide Unselected").unselected = True
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-11-22 06:19:30 +00:00
|
|
|
class VIEW3D_MT_transform(bpy.types.Menu):
|
|
|
|
bl_label = "Transform"
|
|
|
|
|
|
|
|
# TODO: get rid of the custom text strings?
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.translate", text="Grab/Move")
|
2009-11-22 06:19:30 +00:00
|
|
|
# TODO: sub-menu for grab per axis
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.rotate", text="Rotate")
|
2009-11-22 06:19:30 +00:00
|
|
|
# TODO: sub-menu for rot per axis
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.resize", text="Scale")
|
2009-11-22 06:19:30 +00:00
|
|
|
# TODO: sub-menu for scale per axis
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.tosphere", text="To Sphere")
|
|
|
|
layout.operator("transform.shear", text="Shear")
|
|
|
|
layout.operator("transform.warp", text="Warp")
|
|
|
|
layout.operator("transform.transform", text="Push/Pull").mode = 'PUSHPULL'
|
2009-11-22 06:19:30 +00:00
|
|
|
if context.edit_object and context.edit_object.type == 'ARMATURE':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.align")
|
2009-11-22 06:19:30 +00:00
|
|
|
else:
|
2009-12-02 19:59:57 +00:00
|
|
|
layout.operator_context = 'EXEC_REGION_WIN'
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform", text="Align to Transform Orientation").mode = 'ALIGN' # XXX see alignmenu() in edit.c of b2.4x to get this working
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 06:19:30 +00:00
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-12-03 21:56:04 +00:00
|
|
|
layout.operator("object.origin_set", text="Geometry to Origin").type = 'GEOMETRY_ORIGIN'
|
|
|
|
layout.operator("object.origin_set", text="Origin to Geometry").type = 'ORIGIN_GEOMETRY'
|
|
|
|
layout.operator("object.origin_set", text="Origin to 3D Cursor").type = 'ORIGIN_CURSOR'
|
2009-11-28 23:37:56 +00:00
|
|
|
|
|
|
|
|
2009-11-22 06:19:30 +00:00
|
|
|
class VIEW3D_MT_mirror(bpy.types.Menu):
|
|
|
|
bl_label = "Mirror"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.mirror", text="Interactive Mirror")
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-27 00:34:46 +00:00
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="X Global")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (True, False, False)
|
|
|
|
props.constraint_orientation = 'GLOBAL'
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="Y Global")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (False, True, False)
|
|
|
|
props.constraint_orientation = 'GLOBAL'
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="Z Global")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (False, False, True)
|
|
|
|
props.constraint_orientation = 'GLOBAL'
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 06:19:30 +00:00
|
|
|
if context.edit_object:
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="X Local")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (True, False, False)
|
|
|
|
props.constraint_orientation = 'LOCAL'
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="Y Local")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (False, True, False)
|
|
|
|
props.constraint_orientation = 'LOCAL'
|
2009-12-10 10:36:32 +00:00
|
|
|
props = layout.operator("transform.mirror", text="Z Local")
|
2009-11-22 06:19:30 +00:00
|
|
|
props.constraint_axis = (False, False, True)
|
|
|
|
props.constraint_orientation = 'LOCAL'
|
2009-11-28 23:37:56 +00:00
|
|
|
|
|
|
|
|
2009-08-23 22:13:56 +00:00
|
|
|
class VIEW3D_MT_snap(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Snap"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.snap_selected_to_grid", text="Selection to Grid")
|
|
|
|
layout.operator("view3d.snap_selected_to_cursor", text="Selection to Cursor")
|
2009-11-30 14:40:45 +00:00
|
|
|
layout.operator("view3d.snap_selected_to_center", text="Selection to Origin")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.snap_cursor_to_selected", text="Cursor to Selected")
|
|
|
|
layout.operator("view3d.snap_cursor_to_grid", text="Cursor to Grid")
|
|
|
|
layout.operator("view3d.snap_cursor_to_active", text="Cursor to Active")
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2009-11-03 18:56:42 +00:00
|
|
|
class VIEW3D_MT_uv_map(dynamic_menu.DynMenu):
|
2009-11-03 18:20:03 +00:00
|
|
|
bl_label = "UV Mapping"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("uv.unwrap")
|
|
|
|
layout.operator("uv.cube_project")
|
|
|
|
layout.operator("uv.cylinder_project")
|
|
|
|
layout.operator("uv.sphere_project")
|
|
|
|
layout.operator("uv.project_from_view")
|
2009-12-21 11:42:31 +00:00
|
|
|
layout.operator("uv.project_from_view", text="Project from View (Bounds)").scale_to_bounds = True
|
2009-11-03 18:20:03 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-03 18:20:03 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("uv.reset")
|
2009-11-03 18:20:03 +00:00
|
|
|
|
2009-08-15 20:21:49 +00:00
|
|
|
# ********** View menus **********
|
2009-07-11 13:32:20 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-07-11 13:32:20 +00:00
|
|
|
class VIEW3D_MT_view(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "View"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-12-10 10:23:53 +00:00
|
|
|
layout.operator("view3d.properties", icon='MENU_PANEL')
|
|
|
|
layout.operator("view3d.toolbar", icon='MENU_PANEL')
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-26 23:20:31 +00:00
|
|
|
layout.operator("view3d.viewnumpad", text="Camera").type = 'CAMERA'
|
|
|
|
layout.operator("view3d.viewnumpad", text="Top").type = 'TOP'
|
|
|
|
layout.operator("view3d.viewnumpad", text="Front").type = 'FRONT'
|
2009-11-27 06:24:09 +00:00
|
|
|
layout.operator("view3d.viewnumpad", text="Right").type = 'RIGHT'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_view_cameras", text="Cameras")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-28 13:39:35 +00:00
|
|
|
layout.operator("view3d.view_persportho")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_view_navigation")
|
|
|
|
layout.menu("VIEW3D_MT_view_align")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.clip_border", text="Clipping Border...")
|
|
|
|
layout.operator("view3d.zoom_border", text="Zoom Border...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("view3d.layers", text="Show All Layers").nr = 0
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.localview", text="View Global/Local")
|
|
|
|
layout.operator("view3d.view_center")
|
|
|
|
layout.operator("view3d.view_all")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.operator("screen.animation_play", text="Playback Animation")
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.operator("screen.area_dupli")
|
2009-12-04 00:49:02 +00:00
|
|
|
layout.operator("screen.region_quadview")
|
2009-12-03 16:28:50 +00:00
|
|
|
layout.operator("screen.screen_full_area")
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-08-15 20:21:49 +00:00
|
|
|
class VIEW3D_MT_view_navigation(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Navigation"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_enums("view3d.view_orbit", "type")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_enums("view3d.view_pan", "type")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-08 01:56:01 +00:00
|
|
|
layout.operator("view3d.zoom", text="Zoom In").delta = 1
|
|
|
|
layout.operator("view3d.zoom", text="Zoom Out").delta = -1
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.fly")
|
2009-08-15 20:21:49 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-08-23 22:13:56 +00:00
|
|
|
class VIEW3D_MT_view_align(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Align View"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_view_align_selected")
|
2009-11-06 21:10:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-06 21:10:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("view3d.view_all", text="Center Cursor and View All").center = True
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.camera_to_view", text="Align Active Camera to View")
|
|
|
|
layout.operator("view3d.view_center")
|
|
|
|
layout.operator("view3d.view_center_cursor")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-11-06 21:10:45 +00:00
|
|
|
class VIEW3D_MT_view_align_selected(bpy.types.Menu):
|
|
|
|
bl_label = "Align View to Selected"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Top")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'TOP'
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Bottom")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'BOTTOM'
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Front")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'FRONT'
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Back")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'BACK'
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Right")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'RIGHT'
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("view3d.viewnumpad", text="Left")
|
2009-11-06 21:10:45 +00:00
|
|
|
props.align_active = True
|
|
|
|
props.type = 'LEFT'
|
|
|
|
|
|
|
|
|
2009-08-23 22:13:56 +00:00
|
|
|
class VIEW3D_MT_view_cameras(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Cameras"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.object_as_camera")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("view3d.viewnumpad", text="Active Camera").type = 'CAMERA'
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-08-16 03:40:00 +00:00
|
|
|
# ********** Select menus, suffix from context.mode **********
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_object(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
|
|
|
layout.operator("view3d.select_circle")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("object.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.select_inverse", text="Inverse")
|
|
|
|
layout.operator("object.select_random", text="Random")
|
|
|
|
layout.operator("object.select_mirror", text="Mirror")
|
|
|
|
layout.operator("object.select_by_layer", text="Select All by Layer")
|
|
|
|
layout.operator_menu_enum("object.select_by_type", "type", "", text="Select All by Type...")
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("object.select_grouped", "type", text="Grouped")
|
|
|
|
layout.operator_menu_enum("object.select_linked", "type", text="Linked")
|
|
|
|
layout.operator("object.select_pattern", text="Select Pattern...")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_pose(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("pose.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.select_inverse", text="Inverse")
|
|
|
|
layout.operator("pose.select_constraint_target", text="Constraint Target")
|
|
|
|
layout.operator("pose.select_linked", text="Linked")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-28 11:32:09 +00:00
|
|
|
layout.operator("pose.select_hierarchy", text="Parent").direction = 'PARENT'
|
|
|
|
layout.operator("pose.select_hierarchy", text="Child").direction = 'CHILD'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("pose.select_hierarchy", text="Extend Parent")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.extend = True
|
|
|
|
props.direction = 'PARENT'
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("pose.select_hierarchy", text="Extend Child")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.extend = True
|
|
|
|
props.direction = 'CHILD'
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-01 14:48:36 +00:00
|
|
|
layout.operator("object.select_pattern", text="Select Pattern...")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_particle(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("particle.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.select_linked")
|
|
|
|
layout.operator("particle.select_inverse")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.select_more")
|
|
|
|
layout.operator("particle.select_less")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-09 08:51:34 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.select_first", text="Roots")
|
|
|
|
layout.operator("particle.select_last", text="Tips")
|
2009-11-09 08:51:34 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_mesh(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
|
|
|
layout.operator("view3d.select_circle")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("mesh.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_inverse", text="Inverse")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_random", text="Random...")
|
2009-12-22 19:01:51 +00:00
|
|
|
layout.operator("mesh.select_nth", text="Select Nth...")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.edges_select_sharp", text="Sharp Edges")
|
|
|
|
layout.operator("mesh.faces_select_linked_flat", text="Linked Flat Faces")
|
|
|
|
layout.operator("mesh.faces_select_interior", text="Interior Faces")
|
|
|
|
layout.operator("mesh.select_axis", text="Side of Active")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.select_by_number_vertices", text="Triangles").type = 'TRIANGLES'
|
|
|
|
layout.operator("mesh.select_by_number_vertices", text="Quads").type = 'QUADS'
|
|
|
|
layout.operator("mesh.select_by_number_vertices", text="Loose Verts/Edges").type = 'OTHER'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_similar", text="Similar...")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_less", text="Less")
|
|
|
|
layout.operator("mesh.select_more", text="More")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_mirror", text="Mirror")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_linked", text="Linked")
|
|
|
|
layout.operator("mesh.select_vertex_path", text="Vertex Path")
|
|
|
|
layout.operator("mesh.loop_multi_select", text="Edge Loop")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.loop_multi_select", text="Edge Ring").ring = True
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.loop_to_region")
|
|
|
|
layout.operator("mesh.region_to_loop")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_curve(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
|
|
|
layout.operator("view3d.select_circle")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("curve.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.select_inverse")
|
|
|
|
layout.operator("curve.select_random")
|
|
|
|
layout.operator("curve.select_every_nth")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.de_select_first")
|
|
|
|
layout.operator("curve.de_select_last")
|
|
|
|
layout.operator("curve.select_next")
|
|
|
|
layout.operator("curve.select_previous")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.select_more")
|
|
|
|
layout.operator("curve.select_less")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_surface(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
|
|
|
layout.operator("view3d.select_circle")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("curve.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.select_inverse")
|
|
|
|
layout.operator("curve.select_random")
|
|
|
|
layout.operator("curve.select_every_nth")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.select_row")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.select_more")
|
|
|
|
layout.operator("curve.select_less")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_metaball(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mball.select_deselect_all_metaelems")
|
|
|
|
layout.operator("mball.select_inverse_metaelems")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mball.select_random_metaelems")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_lattice(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("lattice.select_all", text="Select/Deselect All")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_edit_armature(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("view3d.select_border")
|
2009-11-03 07:23:02 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-29 22:16:29 +00:00
|
|
|
layout.operator("armature.select_all", text="Select/Deselect All")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.select_inverse", text="Inverse")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("armature.select_hierarchy", text="Parent").direction = 'PARENT'
|
|
|
|
layout.operator("armature.select_hierarchy", text="Child").direction = 'CHILD'
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-08-21 12:57:47 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("armature.select_hierarchy", text="Extend Parent")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.extend = True
|
|
|
|
props.direction = 'PARENT'
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("armature.select_hierarchy", text="Extend Child")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.extend = True
|
|
|
|
props.direction = 'CHILD'
|
2009-12-04 17:54:48 +00:00
|
|
|
|
2009-12-01 14:48:36 +00:00
|
|
|
layout.operator("object.select_pattern", text="Select Pattern...")
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_select_face(bpy.types.Menu):# XXX no matching enum
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Select"
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 10:02:32 +00:00
|
|
|
# TODO
|
|
|
|
# see view3d_select_faceselmenu
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-08-15 22:28:48 +00:00
|
|
|
# ********** Object menu **********
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_context = "objectmode"
|
|
|
|
bl_label = "Object"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_object_clear")
|
|
|
|
layout.menu("VIEW3D_MT_object_apply")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe...")
|
|
|
|
layout.operator("anim.keyframe_delete_v3d", text="Delete Keyframe...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.duplicate_move")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("object.duplicate", text="Duplicate Linked").linked = True
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.delete", text="Delete...")
|
|
|
|
layout.operator("object.proxy_make", text="Make Proxy...")
|
|
|
|
layout.menu("VIEW3D_MT_make_links", text="Make Links...")
|
|
|
|
layout.operator_menu_enum("object.make_local", "type", text="Make Local...")
|
|
|
|
layout.menu("VIEW3D_MT_make_single_user")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_object_parent")
|
|
|
|
layout.menu("VIEW3D_MT_object_track")
|
|
|
|
layout.menu("VIEW3D_MT_object_group")
|
|
|
|
layout.menu("VIEW3D_MT_object_constraints")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-28 04:04:01 +00:00
|
|
|
layout.operator("object.join_shapes")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.join")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.move_to_layer", text="Move to Layer...")
|
|
|
|
layout.menu("VIEW3D_MT_object_showhide")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("object.convert", "target")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_clear(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Clear"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.location_clear", text="Location")
|
|
|
|
layout.operator("object.rotation_clear", text="Rotation")
|
|
|
|
layout.operator("object.scale_clear", text="Scale")
|
|
|
|
layout.operator("object.origin_clear", text="Origin")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-10-15 20:15:21 +00:00
|
|
|
class VIEW3D_MT_object_apply(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Apply"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.location_apply", text="Location")
|
|
|
|
layout.operator("object.rotation_apply", text="Rotation")
|
|
|
|
layout.operator("object.scale_apply", text="Scale")
|
|
|
|
layout.separator()
|
|
|
|
layout.operator("object.visual_transform_apply", text="Visual Transform")
|
|
|
|
layout.operator("object.duplicates_make_real")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-15 20:15:21 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_parent(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Parent"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.parent_set", text="Set")
|
|
|
|
layout.operator("object.parent_clear", text="Clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_track(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Track"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.track_set", text="Set")
|
|
|
|
layout.operator("object.track_clear", text="Clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_group(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Group"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("group.create")
|
|
|
|
layout.operator("group.objects_remove")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("group.objects_add_active")
|
|
|
|
layout.operator("group.objects_remove_active")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_constraints(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Constraints"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.constraint_add_with_targets")
|
|
|
|
layout.operator("object.constraints_clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_object_showhide(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Show/Hide"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-15 22:28:48 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.restrictview_clear", text="Show Hidden")
|
|
|
|
layout.operator("object.restrictview_set", text="Hide Selected")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("object.restrictview_set", text="Hide Unselected").unselected = True
|
2009-08-15 19:40:09 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-10-16 10:00:45 +00:00
|
|
|
class VIEW3D_MT_make_single_user(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Make Single User"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("object.make_single_user", text="Object")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.object = True
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("object.make_single_user", text="Object & ObData")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.object = props.obdata = True
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("object.make_single_user", text="Object & ObData & Materials+Tex")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.object = props.obdata = props.material = props.texture = True
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("object.make_single_user", text="Materials+Tex")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.material = props.texture = True
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
props = layout.operator("object.make_single_user", text="Animation")
|
2009-10-31 19:31:45 +00:00
|
|
|
props.animation = True
|
|
|
|
|
2009-11-04 10:25:57 +00:00
|
|
|
|
|
|
|
class VIEW3D_MT_make_links(bpy.types.Menu):
|
|
|
|
bl_label = "Make Links"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-07 22:07:46 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("object.make_links_scene", "type", text="Objects to Scene...")
|
2009-11-04 10:25:57 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_enums("object.make_links_data", property="type") # inline
|
2009-11-04 10:25:57 +00:00
|
|
|
|
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
# ********** Vertex paint menu **********
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_paint_vertex(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Paint"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-22 02:27:37 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("paint.vertex_color_set")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("paint.vertex_color_set", text="Set Selected Vertex Colors").selected = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
|
|
|
|
class VIEW3D_MT_hook(bpy.types.Menu):
|
|
|
|
bl_label = "Hooks"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.hook_add_newob")
|
|
|
|
layout.operator("object.hook_add_selob")
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 06:20:56 +00:00
|
|
|
if [mod.type == 'HOOK' for mod in context.active_object.modifiers]:
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator_menu_enum("object.hook_assign", "modifier")
|
|
|
|
layout.operator_menu_enum("object.hook_remove", "modifier")
|
|
|
|
layout.separator()
|
|
|
|
layout.operator_menu_enum("object.hook_select", "modifier")
|
|
|
|
layout.operator_menu_enum("object.hook_reset", "modifier")
|
|
|
|
layout.operator_menu_enum("object.hook_recenter", "modifier")
|
2009-11-22 06:20:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
class VIEW3D_MT_vertex_group(bpy.types.Menu):
|
|
|
|
bl_label = "Vertex Groups"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("object.vertex_group_assign", text="Assign to New Group").new = True
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 06:20:56 +00:00
|
|
|
ob = context.active_object
|
|
|
|
if ob.mode == 'EDIT':
|
|
|
|
if ob.vertex_groups and ob.active_vertex_group:
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
|
|
|
layout.operator("object.vertex_group_assign", text="Assign to Active Group")
|
|
|
|
layout.operator("object.vertex_group_remove_from", text="Remove from Active Group")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("object.vertex_group_remove_from", text="Remove from All").all = True
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-22 06:20:56 +00:00
|
|
|
if ob.vertex_groups and ob.active_vertex_group:
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("object.vertex_group_set_active", "group", text="Set Active Group")
|
|
|
|
layout.operator("object.vertex_group_remove", text="Remove Active Group")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("object.vertex_group_remove", text="Remove All Groups").all = True
|
2009-11-16 13:59:27 +00:00
|
|
|
|
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
# ********** Sculpt menu **********
|
2009-08-22 02:27:37 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_sculpt(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Sculpt"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
sculpt = context.tool_settings.sculpt
|
|
|
|
brush = context.tool_settings.sculpt.brush
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(sculpt, "symmetry_x")
|
|
|
|
layout.prop(sculpt, "symmetry_y")
|
|
|
|
layout.prop(sculpt, "symmetry_z")
|
|
|
|
layout.separator()
|
|
|
|
layout.prop(sculpt, "lock_x")
|
|
|
|
layout.prop(sculpt, "lock_y")
|
|
|
|
layout.prop(sculpt, "lock_z")
|
|
|
|
layout.separator()
|
|
|
|
layout.operator_menu_enum("brush.curve_preset", property="shape")
|
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
sculpt_tool = brush.sculpt_tool
|
|
|
|
|
|
|
|
if sculpt_tool != 'GRAB':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(brush, "use_airbrush")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
if sculpt_tool != 'LAYER':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(brush, "use_anchor")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
if sculpt_tool in ('DRAW', 'PINCH', 'INFLATE', 'LAYER', 'CLAY'):
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(brush, "flip_direction")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
if sculpt_tool == 'LAYER':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(brush, "use_persistent")
|
|
|
|
layout.operator("sculpt.set_persistent_base")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# ********** Particle menu **********
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_particle(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Particle"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
particle_edit = context.tool_settings.particle_edit
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.mirror")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.remove_doubles")
|
|
|
|
layout.operator("particle.delete")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if particle_edit.selection_mode == 'POINT':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.subdivide")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("particle.rekey")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_particle_showhide")
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-12-24 10:39:30 +00:00
|
|
|
class VIEW3D_MT_particle_specials(bpy.types.Menu):
|
|
|
|
bl_label = "Specials"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
particle_edit = context.tool_settings.particle_edit
|
|
|
|
|
|
|
|
layout.operator("particle.rekey")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
if particle_edit.selection_mode == 'POINT':
|
|
|
|
layout.operator("particle.subdivide")
|
|
|
|
layout.operator("particle.select_first")
|
|
|
|
layout.operator("particle.select_last")
|
|
|
|
|
|
|
|
layout.operator("particle.remove_doubles")
|
|
|
|
|
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_particle_showhide(VIEW3D_MT_showhide):
|
2009-10-31 19:31:45 +00:00
|
|
|
_operator_name = "particle"
|
2009-08-23 22:13:56 +00:00
|
|
|
|
|
|
|
# ********** Pose Menu **********
|
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Pose"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
arm = context.active_object.data
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
if arm.drawtype in ('BBONE', 'ENVELOPE'):
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform", text="Scale Envelope Distance").mode = 'BONESIZE'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_pose_transform")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-28 14:37:21 +00:00
|
|
|
layout.operator("anim.keyframe_insert_menu", text="Insert Keyframe...")
|
|
|
|
layout.operator("anim.keyframe_delete_v3d", text="Delete Keyframe...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.apply")
|
|
|
|
layout.operator("pose.relax")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.copy")
|
|
|
|
layout.operator("pose.paste")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("pose.paste", text="Paste X-Flipped Pose").flipped = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_pose_pose")
|
|
|
|
layout.menu("VIEW3D_MT_pose_motion")
|
|
|
|
layout.menu("VIEW3D_MT_pose_group")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_pose_ik")
|
|
|
|
layout.menu("VIEW3D_MT_pose_constraints")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("pose.autoside_names", text="AutoName Left/Right").axis = 'XAXIS'
|
|
|
|
layout.operator("pose.autoside_names", text="AutoName Front/Back").axis = 'YAXIS'
|
|
|
|
layout.operator("pose.autoside_names", text="AutoName Top/Bottom").axis = 'ZAXIS'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.flip_names")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'INVOKE_AREA'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.armature_layers", text="Change Armature Layers...")
|
|
|
|
layout.operator("pose.bone_layers", text="Change Bone Layers...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_pose_showhide")
|
|
|
|
layout.operator_menu_enum("pose.flags_set", 'mode', text="Bone Settings")
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_transform(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Clear Transform"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.label(text="User Transform")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.loc_clear", text="Location")
|
|
|
|
layout.operator("pose.rot_clear", text="Rotation")
|
|
|
|
layout.operator("pose.scale_clear", text="Scale")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.label(text="Origin")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_pose(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Pose Library"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("poselib.browse_interactive", text="Browse Poses...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("poselib.pose_add", text="Add Pose...")
|
|
|
|
layout.operator("poselib.pose_rename", text="Rename Pose...")
|
|
|
|
layout.operator("poselib.pose_remove", text="Remove Pose...")
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_motion(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Motion Paths"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.paths_calculate", text="Calculate")
|
|
|
|
layout.operator("pose.paths_clear", text="Clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_group(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Bone Groups"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.group_add")
|
|
|
|
layout.operator("pose.group_remove")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.group_assign")
|
|
|
|
layout.operator("pose.group_unassign")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_ik(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Inverse Kinematics"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.ik_add")
|
|
|
|
layout.operator("pose.ik_clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_constraints(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Constraints"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("pose.constraint_add_with_targets", text="Add (With Targets)...")
|
|
|
|
layout.operator("pose.constraints_clear")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_pose_showhide(VIEW3D_MT_showhide):
|
2009-10-31 19:31:45 +00:00
|
|
|
_operator_name = "pose"
|
2009-08-23 22:13:56 +00:00
|
|
|
|
|
|
|
# ********** Edit Menus, suffix from ob.type **********
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_mesh(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Mesh"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
settings = context.tool_settings
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("ed.undo")
|
|
|
|
layout.operator("ed.redo")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_uv_map", text="UV Unwrap...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.extrude_move")
|
|
|
|
layout.operator("mesh.duplicate_move")
|
|
|
|
layout.operator("mesh.delete", text="Delete...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_mesh_vertices")
|
|
|
|
layout.menu("VIEW3D_MT_edit_mesh_edges")
|
|
|
|
layout.menu("VIEW3D_MT_edit_mesh_faces")
|
|
|
|
layout.menu("VIEW3D_MT_edit_mesh_normals")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(settings, "automerge_editing")
|
|
|
|
layout.prop_menu_enum(settings, "proportional_editing")
|
|
|
|
layout.prop_menu_enum(settings, "proportional_editing_falloff")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_mesh_showhide")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-10-12 21:06:03 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_specials(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Specials"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.subdivide", text="Subdivide")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.subdivide", text="Subdivide Smooth").smoothness = 1.0
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.merge", text="Merge...")
|
|
|
|
layout.operator("mesh.remove_doubles")
|
|
|
|
layout.operator("mesh.hide", text="Hide")
|
|
|
|
layout.operator("mesh.reveal", text="Reveal")
|
|
|
|
layout.operator("mesh.select_inverse")
|
|
|
|
layout.operator("mesh.flip_normals")
|
|
|
|
layout.operator("mesh.vertices_smooth", text="Smooth")
|
|
|
|
# layout.operator("mesh.bevel", text="Bevel")
|
|
|
|
layout.operator("mesh.faces_shade_smooth")
|
|
|
|
layout.operator("mesh.faces_shade_flat")
|
|
|
|
layout.operator("mesh.blend_from_shape")
|
|
|
|
layout.operator("mesh.shape_propagate_to_all")
|
|
|
|
layout.operator("mesh.select_vertex_path")
|
2009-10-12 21:06:03 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-12-22 16:11:11 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_selection_mode(bpy.types.Menu):
|
|
|
|
bl_label = "Mesh Select Mode"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
path = "tool_settings.edit_select_vertex;tool_settings.edit_select_edge;tool_settings.edit_select_face"
|
|
|
|
|
|
|
|
prop = layout.operator("wm.context_set_value", text="Vertex")
|
|
|
|
prop.value = "(True, False, False)"
|
|
|
|
prop.path = "tool_settings.mesh_selection_mode"
|
|
|
|
|
|
|
|
prop = layout.operator("wm.context_set_value", text="Edge")
|
|
|
|
prop.value = "(False, True, False)"
|
|
|
|
prop.path = "tool_settings.mesh_selection_mode"
|
|
|
|
|
|
|
|
prop = layout.operator("wm.context_set_value", text="Face")
|
|
|
|
prop.value = "(False, False, True)"
|
|
|
|
prop.path = "tool_settings.mesh_selection_mode"
|
|
|
|
|
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_vertices(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Vertices"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.merge")
|
|
|
|
layout.operator("mesh.rip")
|
|
|
|
layout.operator("mesh.split")
|
|
|
|
layout.operator("mesh.separate")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.vertices_smooth")
|
|
|
|
layout.operator("mesh.remove_doubles")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.select_vertex_path")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.blend_from_shape")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("object.vertex_group_blend")
|
|
|
|
layout.operator("mesh.shape_propagate_to_all")
|
2009-08-23 22:13:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-16 13:59:27 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_vertex_group")
|
|
|
|
layout.menu("VIEW3D_MT_hook")
|
2009-11-16 13:59:27 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_edges(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Edges"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.edge_face_add")
|
|
|
|
layout.operator("mesh.subdivide")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.mark_seam")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.mark_seam", text="Clear Seam").clear = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.mark_sharp")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.mark_sharp", text="Clear Sharp").clear = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.edge_rotate", text="Rotate Edge CW").direction = 'CW'
|
|
|
|
layout.operator("mesh.edge_rotate", text="Rotate Edge CCW").direction = 'CCW'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("TRANSFORM_OT_edge_slide", text="Edge Slide")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.loop_multi_select", text="Edge Loop")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# uiItemO(layout, "Loopcut", 0, "mesh.loop_cut"); // CutEdgeloop(em, 1);
|
|
|
|
# uiItemO(layout, "Edge Slide", 0, "mesh.edge_slide"); // EdgeSlide(em, 0,0.0);
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.loop_multi_select", text="Edge Ring").ring = True
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.loop_to_region")
|
|
|
|
layout.operator("mesh.region_to_loop")
|
2009-10-12 21:06:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
class VIEW3D_MT_edit_mesh_faces(dynamic_menu.DynMenu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Faces"
|
|
|
|
bl_idname = "VIEW3D_MT_edit_mesh_faces"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
# layout.operator("mesh.bevel")
|
|
|
|
# layout.operator("mesh.bevel")
|
|
|
|
layout.operator("mesh.edge_face_add")
|
|
|
|
layout.operator("mesh.fill")
|
|
|
|
layout.operator("mesh.beauty_fill")
|
2009-12-14 23:35:13 +00:00
|
|
|
layout.operator("mesh.solidify")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.quads_convert_to_tris")
|
|
|
|
layout.operator("mesh.tris_convert_to_quads")
|
|
|
|
layout.operator("mesh.edge_flip")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.faces_shade_smooth")
|
|
|
|
layout.operator("mesh.faces_shade_flat")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# uiItemO(layout, NULL, 0, "mesh.face_mode"); // mesh_set_face_flags(em, 1);
|
|
|
|
# uiItemBooleanO(layout, NULL, 0, "mesh.face_mode", "clear", 1); // mesh_set_face_flags(em, 0);
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.edge_rotate", text="Rotate Edge CW").direction = 'CW'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("mesh.uvs_rotate", "direction")
|
|
|
|
layout.operator_menu_enum("mesh.uvs_mirror", "axis")
|
|
|
|
layout.operator_menu_enum("mesh.colors_rotate", "direction")
|
|
|
|
layout.operator_menu_enum("mesh.colors_mirror", "axis")
|
2009-10-12 21:06:03 +00:00
|
|
|
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_normals(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Normals"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.normals_make_consistent", text="Recalculate Outside")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mesh.normals_make_consistent", text="Recalculate Inside").inside = True
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mesh.flip_normals")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_mesh_showhide(VIEW3D_MT_showhide):
|
2009-10-31 19:31:45 +00:00
|
|
|
_operator_name = "mesh"
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
# Edit Curve
|
|
|
|
# draw_curve is used by VIEW3D_MT_edit_curve and VIEW3D_MT_edit_surface
|
2009-10-31 23:35:56 +00:00
|
|
|
|
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
def draw_curve(self, context):
|
2009-10-31 19:31:45 +00:00
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
settings = context.tool_settings
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.extrude")
|
|
|
|
layout.operator("curve.duplicate")
|
|
|
|
layout.operator("curve.separate")
|
|
|
|
layout.operator("curve.make_segment")
|
|
|
|
layout.operator("curve.cyclic_toggle")
|
|
|
|
layout.operator("curve.delete", text="Delete...")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_curve_ctrlpoints")
|
|
|
|
layout.menu("VIEW3D_MT_edit_curve_segments")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop_menu_enum(settings, "proportional_editing")
|
|
|
|
layout.prop_menu_enum(settings, "proportional_editing_falloff")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_curve_showhide")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_curve(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Curve"
|
|
|
|
|
|
|
|
draw = draw_curve
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_curve_ctrlpoints(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Control Points"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
edit_object = context.edit_object
|
|
|
|
|
|
|
|
if edit_object.type == 'CURVE':
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform").mode = 'TILT'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.tilt_clear")
|
|
|
|
layout.operator("curve.separate")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("curve.handle_type_set", "type")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-16 13:59:27 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_hook")
|
2009-11-16 13:59:27 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_curve_segments(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Segments"
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("curve.subdivide")
|
|
|
|
layout.operator("curve.switch_direction")
|
2009-12-24 10:39:30 +00:00
|
|
|
|
|
|
|
class VIEW3D_MT_edit_curve_specials(bpy.types.Menu):
|
|
|
|
bl_label = "Specials"
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-12-24 10:39:30 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
layout.operator("curve.subdivide")
|
|
|
|
layout.operator("curve.switch_direction")
|
|
|
|
layout.operator("curve.spline_weight_set")
|
|
|
|
layout.operator("curve.radius_set")
|
|
|
|
layout.operator("curve.smooth")
|
|
|
|
layout.operator("curve.smooth_radius")
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_curve_showhide(VIEW3D_MT_showhide):
|
2009-10-31 19:31:45 +00:00
|
|
|
_operator_name = "curve"
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_surface(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Surface"
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
draw = draw_curve
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_text(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Text"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("font.file_paste")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_text_chars")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_text_chars(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Special Characters"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("font.text_insert", text="Copyright|Alt C").text = b'\xC2\xA9'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Registered Trademark|Alt R").text = b'\xC2\xAE'.decode()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("font.text_insert", text="Degree Sign|Alt G").text = b'\xC2\xB0'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Multiplication Sign|Alt x").text = b'\xC3\x97'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Circle|Alt .").text = b'\xC2\x8A'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Superscript 1|Alt 1").text = b'\xC2\xB9'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Superscript 2|Alt 2").text = b'\xC2\xB2'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Superscript 3|Alt 3").text = b'\xC2\xB3'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Double >>|Alt >").text = b'\xC2\xBB'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Double <<|Alt <").text = b'\xC2\xAB'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Promillage|Alt %").text = b'\xE2\x80\xB0'.decode()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("font.text_insert", text="Dutch Florin|Alt F").text = b'\xC2\xA4'.decode()
|
|
|
|
layout.operator("font.text_insert", text="British Pound|Alt L").text = b'\xC2\xA3'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Japanese Yen|Alt Y").text = b'\xC2\xA5'.decode()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("font.text_insert", text="German S|Alt S").text = b'\xC3\x9F'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Spanish Question Mark|Alt ?").text = b'\xC2\xBF'.decode()
|
|
|
|
layout.operator("font.text_insert", text="Spanish Exclamation Mark|Alt !").text = b'\xC2\xA1'.decode()
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_meta(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Metaball"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
settings = context.tool_settings
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("ed.undo")
|
|
|
|
layout.operator("ed.redo")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mball.delete_metaelems", text="Delete...")
|
|
|
|
layout.operator("mball.duplicate_metaelems")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop_menu_enum(settings, "proportional_editing")
|
|
|
|
layout.prop_menu_enum(settings, "proportional_editing_falloff")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_meta_showhide")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_meta_showhide(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Show/Hide"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("mball.reveal_metaelems", text="Show Hidden")
|
|
|
|
layout.operator("mball.hide_metaelems", text="Hide Selected")
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("mball.hide_metaelems", text="Hide Unselected").unselected = True
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_lattice(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Lattice"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
settings = context.tool_settings
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("lattice.make_regular")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop_menu_enum(settings, "proportional_editing")
|
|
|
|
layout.prop_menu_enum(settings, "proportional_editing_falloff")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_armature(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Armature"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
edit_object = context.edit_object
|
|
|
|
arm = edit_object.data
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_transform")
|
|
|
|
layout.menu("VIEW3D_MT_mirror")
|
|
|
|
layout.menu("VIEW3D_MT_snap")
|
|
|
|
layout.menu("VIEW3D_MT_edit_armature_roll")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if arm.drawtype == 'ENVELOPE':
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform", text="Scale Envelope Distance").mode = 'BONESIZE'
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform", text="Scale B-Bone Width").mode = 'BONESIZE'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.extrude_move")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 11:49:47 +00:00
|
|
|
if arm.x_axis_mirror:
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.extrude_forked")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.duplicate_move")
|
|
|
|
layout.operator("armature.merge")
|
|
|
|
layout.operator("armature.fill")
|
|
|
|
layout.operator("armature.delete")
|
|
|
|
layout.operator("armature.separate")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.subdivide_multi", text="Subdivide")
|
|
|
|
layout.operator("armature.switch_direction", text="Switch Direction")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'EXEC_AREA'
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("armature.autoside_names", text="AutoName Left/Right").type = 'XAXIS'
|
|
|
|
layout.operator("armature.autoside_names", text="AutoName Front/Back").type = 'YAXIS'
|
|
|
|
layout.operator("armature.autoside_names", text="AutoName Top/Bottom").type = 'ZAXIS'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.flip_names")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
layout.operator_context = 'INVOKE_DEFAULT'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.armature_layers")
|
|
|
|
layout.operator("armature.bone_layers")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.menu("VIEW3D_MT_edit_armature_parent")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator_menu_enum("armature.flags_set", "mode", text="Bone Settings")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-20 11:49:47 +00:00
|
|
|
class VIEW3D_MT_armature_specials(bpy.types.Menu):
|
|
|
|
bl_label = "Specials"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-20 11:49:47 +00:00
|
|
|
layout.operator_context = 'INVOKE_REGION_WIN'
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.subdivide_multi", text="Subdivide")
|
|
|
|
layout.operator("armature.switch_direction", text="Switch Direction")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-20 11:49:47 +00:00
|
|
|
layout.operator_context = 'EXEC_REGION_WIN'
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("armature.autoside_names", text="AutoName Left/Right").type = 'XAXIS'
|
|
|
|
layout.operator("armature.autoside_names", text="AutoName Front/Back").type = 'YAXIS'
|
|
|
|
layout.operator("armature.autoside_names", text="AutoName Top/Bottom").type = 'ZAXIS'
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.flip_names", text="Flip Names")
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_armature_parent(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Parent"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.operator("armature.parent_set", text="Make")
|
|
|
|
layout.operator("armature.parent_clear", text="Clear")
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
class VIEW3D_MT_edit_armature_roll(bpy.types.Menu):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Bone Roll"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-11-23 11:43:38 +00:00
|
|
|
layout.operator("armature.calculate_roll", text="Clear Roll (Z-Axis Up)").type = 'GLOBALUP'
|
|
|
|
layout.operator("armature.calculate_roll", text="Roll to Cursor").type = 'CURSOR'
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-12-10 10:36:32 +00:00
|
|
|
layout.operator("transform.transform", text="Set Roll").mode = 'BONE_ROLL'
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-08-15 20:21:49 +00:00
|
|
|
# ********** Panel **********
|
2009-07-11 13:32:20 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-07-14 12:32:19 +00:00
|
|
|
class VIEW3D_PT_3dview_properties(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "View"
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
view = context.space_data
|
|
|
|
return (view)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
view = context.space_data
|
|
|
|
scene = context.scene
|
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Camera:")
|
|
|
|
col.prop(view, "camera", text="")
|
|
|
|
col.prop(view, "lens")
|
2009-11-28 13:39:35 +00:00
|
|
|
col.label(text="Lock to Object:")
|
|
|
|
col.prop(view, "lock_object", text="")
|
|
|
|
if view.lock_object and view.lock_object.type == 'ARMATURE':
|
|
|
|
col.prop_object(view, "lock_bone", view.lock_object.data, "bones", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Clip:")
|
|
|
|
col.prop(view, "clip_start", text="Start")
|
|
|
|
col.prop(view, "clip_end", text="End")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.column().prop(scene, "cursor_location", text="3D Cursor:")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2009-11-18 17:54:04 +00:00
|
|
|
class VIEW3D_PT_3dview_name(bpy.types.Panel):
|
2009-11-05 17:22:11 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Item"
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-05 17:22:11 +00:00
|
|
|
def poll(self, context):
|
2009-11-19 18:48:31 +00:00
|
|
|
return (context.space_data and context.active_object)
|
2009-11-07 22:07:46 +00:00
|
|
|
|
2009-11-05 17:22:11 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-11-07 22:07:46 +00:00
|
|
|
|
2009-11-11 10:07:52 +00:00
|
|
|
ob = context.active_object
|
2009-11-05 17:22:11 +00:00
|
|
|
row = layout.row()
|
2009-12-10 10:23:53 +00:00
|
|
|
row.label(text="", icon='OBJECT_DATA')
|
2009-11-23 00:27:30 +00:00
|
|
|
row.prop(ob, "name", text="")
|
2009-11-07 22:07:46 +00:00
|
|
|
|
2009-11-11 10:07:52 +00:00
|
|
|
if ob.type == 'ARMATURE' and ob.mode in ('EDIT', 'POSE'):
|
2009-11-05 17:22:11 +00:00
|
|
|
bone = context.active_bone
|
2009-11-11 10:07:52 +00:00
|
|
|
if bone:
|
|
|
|
row = layout.row()
|
2009-12-10 10:23:53 +00:00
|
|
|
row.label(text="", icon='BONE_DATA')
|
2009-11-23 00:27:30 +00:00
|
|
|
row.prop(bone, "name", text="")
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2009-07-14 12:32:19 +00:00
|
|
|
class VIEW3D_PT_3dview_display(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Display"
|
|
|
|
bl_default_closed = True
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
view = context.space_data
|
|
|
|
return (view)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
view = context.space_data
|
|
|
|
gs = context.scene.game_data
|
|
|
|
ob = context.object
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(view, "display_x_axis", text="X Axis")
|
|
|
|
col.prop(view, "display_y_axis", text="Y Axis")
|
|
|
|
col.prop(view, "display_z_axis", text="Z Axis")
|
|
|
|
col.prop(view, "outline_selected")
|
2009-11-30 14:40:45 +00:00
|
|
|
col.prop(view, "all_object_origins")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(view, "relationship_lines")
|
2009-10-31 23:35:56 +00:00
|
|
|
if ob and ob.type == 'MESH':
|
2009-11-02 16:07:49 +00:00
|
|
|
mesh = ob.data
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(mesh, "all_edges")
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-28 13:39:35 +00:00
|
|
|
col = layout.column()
|
|
|
|
col.prop(view, "display_floor", text="Grid Floor")
|
|
|
|
sub = col.column(align=True)
|
|
|
|
sub.active = view.display_floor
|
|
|
|
sub.prop(view, "grid_lines", text="Lines")
|
|
|
|
sub.prop(view, "grid_spacing", text="Spacing")
|
|
|
|
sub.prop(view, "grid_subdivisions", text="Subdivisions")
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Shading:")
|
|
|
|
col.prop(gs, "material_mode", text="")
|
|
|
|
col.prop(view, "textured_solid")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# XXX - the Quad View options don't work yet
|
2009-11-23 00:27:30 +00:00
|
|
|
# layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
#
|
2009-11-23 00:27:30 +00:00
|
|
|
# layout.operator("screen.region_foursplit", text="Toggle Quad View")
|
2009-10-12 16:34:55 +00:00
|
|
|
# col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
# col.prop(view, "lock_rotation")
|
|
|
|
# col.prop(view, "box_preview")
|
|
|
|
# col.prop(view, "box_clip")
|
2009-08-22 11:51:26 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-08-22 11:51:26 +00:00
|
|
|
class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Mesh Display"
|
|
|
|
|
|
|
|
def poll(self, context):
|
2009-11-04 16:26:08 +00:00
|
|
|
# The active object check is needed because of localmode
|
|
|
|
return (context.active_object and (context.mode == 'EDIT_MESH'))
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
mesh = context.active_object.data
|
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Overlays:")
|
|
|
|
col.prop(mesh, "draw_edges", text="Edges")
|
|
|
|
col.prop(mesh, "draw_faces", text="Faces")
|
|
|
|
col.prop(mesh, "draw_creases", text="Creases")
|
|
|
|
col.prop(mesh, "draw_bevel_weights", text="Bevel Weights")
|
|
|
|
col.prop(mesh, "draw_seams", text="Seams")
|
|
|
|
col.prop(mesh, "draw_sharp", text="Sharp")
|
|
|
|
|
|
|
|
col.separator()
|
|
|
|
col.label(text="Normals:")
|
|
|
|
col.prop(mesh, "draw_normals", text="Face")
|
|
|
|
col.prop(mesh, "draw_vertex_normals", text="Vertex")
|
|
|
|
col.prop(context.scene.tool_settings, "normal_size", text="Normal Size")
|
|
|
|
|
|
|
|
col.separator()
|
|
|
|
col.label(text="Numerics:")
|
|
|
|
col.prop(mesh, "draw_edge_lenght")
|
|
|
|
col.prop(mesh, "draw_edge_angle")
|
|
|
|
col.prop(mesh, "draw_face_area")
|
2009-09-08 07:35:07 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-08 07:35:07 +00:00
|
|
|
class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Curve Display"
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
editmesh = context.mode == 'EDIT_CURVE'
|
|
|
|
return (editmesh)
|
2009-09-08 07:35:07 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2009-09-08 07:35:07 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
curve = context.active_object.data
|
2009-09-08 07:35:07 +00:00
|
|
|
|
2009-10-31 19:31:45 +00:00
|
|
|
col = layout.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Overlays:")
|
|
|
|
col.prop(curve, "draw_handles", text="Handles")
|
|
|
|
col.prop(curve, "draw_normals", text="Normals")
|
|
|
|
col.prop(context.scene.tool_settings, "normal_size", text="Normal Size")
|
2009-10-13 17:49:05 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-07-14 12:32:19 +00:00
|
|
|
class VIEW3D_PT_background_image(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Background Image"
|
|
|
|
bl_default_closed = True
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
view = context.space_data
|
2009-11-14 13:35:44 +00:00
|
|
|
# bg = context.space_data.background_image
|
2009-10-31 19:31:45 +00:00
|
|
|
return (view)
|
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
view = context.space_data
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(view, "display_background_image", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
view = context.space_data
|
|
|
|
bg = view.background_image
|
|
|
|
|
|
|
|
if bg:
|
|
|
|
layout.active = view.display_background_image
|
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-25 22:58:54 +00:00
|
|
|
col.template_ID(bg, "image", open="image.open")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(bg, "size")
|
|
|
|
col.prop(bg, "transparency", slider=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
col = layout.column(align=True)
|
2009-11-23 00:27:30 +00:00
|
|
|
col.label(text="Offset:")
|
|
|
|
col.prop(bg, "offset_x", text="X")
|
|
|
|
col.prop(bg, "offset_y", text="Y")
|
2009-07-14 12:32:19 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-09-28 19:49:36 +00:00
|
|
|
class VIEW3D_PT_transform_orientations(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Transform Orientations"
|
|
|
|
bl_default_closed = True
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
view = context.space_data
|
|
|
|
return (view)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
view = context.space_data
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(view, "transform_orientation")
|
2009-12-10 10:36:32 +00:00
|
|
|
col.operator("transform.create_orientation", text="Create")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
orientation = view.current_orientation
|
|
|
|
|
|
|
|
if orientation:
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(orientation, "name")
|
2009-12-10 10:36:32 +00:00
|
|
|
col.operator("transform.delete_orientation", text="Delete")
|
2009-10-08 07:54:20 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2009-10-20 00:45:51 +00:00
|
|
|
class VIEW3D_PT_etch_a_ton(bpy.types.Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Skeleton Sketching"
|
|
|
|
bl_default_closed = True
|
|
|
|
|
|
|
|
def poll(self, context):
|
|
|
|
scene = context.space_data
|
|
|
|
ob = context.active_object
|
|
|
|
return scene and ob and ob.type == 'ARMATURE' and ob.mode == 'EDIT'
|
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
toolsettings = context.scene.tool_settings
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(toolsettings, "bone_sketching", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
toolsettings = context.scene.tool_settings
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_quick")
|
|
|
|
col.prop(toolsettings, "etch_overdraw")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_convert_mode")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-07 22:12:03 +00:00
|
|
|
if toolsettings.etch_convert_mode == 'LENGTH':
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_length_limit")
|
2009-11-07 22:12:03 +00:00
|
|
|
elif toolsettings.etch_convert_mode == 'ADAPTIVE':
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_adaptive_limit")
|
2009-11-07 22:12:03 +00:00
|
|
|
elif toolsettings.etch_convert_mode == 'FIXED':
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_subdivision_number")
|
2009-11-07 22:12:03 +00:00
|
|
|
elif toolsettings.etch_convert_mode == 'RETARGET':
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(toolsettings, "etch_template")
|
|
|
|
col.prop(toolsettings, "etch_roll_mode")
|
|
|
|
col.prop(toolsettings, "etch_autoname")
|
|
|
|
col.prop(toolsettings, "etch_number")
|
|
|
|
col.prop(toolsettings, "etch_side")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
|
2009-11-18 20:01:35 +00:00
|
|
|
class VIEW3D_PT_context_properties(bpy.types.Panel):
|
|
|
|
bl_space_type = 'VIEW_3D'
|
|
|
|
bl_region_type = 'UI'
|
|
|
|
bl_label = "Properties"
|
|
|
|
bl_default_closed = True
|
|
|
|
|
2009-11-23 13:06:26 +00:00
|
|
|
def _active_context_member(self, context):
|
2009-11-18 20:01:35 +00:00
|
|
|
obj = context.object
|
|
|
|
if obj:
|
|
|
|
mode = obj.mode
|
|
|
|
if mode == 'POSE':
|
2009-11-24 17:12:32 +00:00
|
|
|
return "active_pose_bone"
|
2009-11-18 20:01:35 +00:00
|
|
|
elif mode == 'EDIT' and obj.type == 'ARMATURE':
|
2009-11-23 13:06:26 +00:00
|
|
|
return "active_bone"
|
2009-11-18 20:01:35 +00:00
|
|
|
else:
|
2009-11-23 13:06:26 +00:00
|
|
|
return "object"
|
|
|
|
|
|
|
|
return ""
|
2009-11-28 23:37:56 +00:00
|
|
|
|
2009-11-23 13:06:26 +00:00
|
|
|
def poll(self, context):
|
|
|
|
member = self._active_context_member(context)
|
|
|
|
if member:
|
2009-11-23 15:19:30 +00:00
|
|
|
context_member = getattr(context, member)
|
|
|
|
return context_member and context_member.keys()
|
2009-11-23 13:06:26 +00:00
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
import rna_prop_ui
|
|
|
|
# reload(rna_prop_ui)
|
|
|
|
member = self._active_context_member(context)
|
2009-11-18 20:01:35 +00:00
|
|
|
|
2009-11-23 13:06:26 +00:00
|
|
|
if member:
|
2009-11-18 20:01:35 +00:00
|
|
|
# Draw with no edit button
|
2009-11-23 13:06:26 +00:00
|
|
|
rna_prop_ui.draw(self.layout, context, member, False)
|
2009-11-18 20:01:35 +00:00
|
|
|
|
|
|
|
|
2009-08-15 20:21:49 +00:00
|
|
|
bpy.types.register(VIEW3D_HT_header) # Header
|
|
|
|
|
|
|
|
bpy.types.register(VIEW3D_MT_view) #View Menus
|
2009-07-11 13:32:20 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_view_navigation)
|
2009-08-23 22:13:56 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_view_align)
|
2009-11-06 21:10:45 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_view_align_selected)
|
2009-08-23 22:13:56 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_view_cameras)
|
2009-08-15 20:21:49 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_select_object) # Select Menus
|
|
|
|
bpy.types.register(VIEW3D_MT_select_pose)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_particle)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_mesh)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_curve)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_surface)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_metaball)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_lattice)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_edit_armature)
|
|
|
|
bpy.types.register(VIEW3D_MT_select_face) # XXX todo
|
|
|
|
|
2009-11-22 06:19:30 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_transform) # Object/Edit Menus
|
|
|
|
bpy.types.register(VIEW3D_MT_mirror) # Object/Edit Menus
|
|
|
|
bpy.types.register(VIEW3D_MT_snap) # Object/Edit Menus
|
|
|
|
bpy.types.register(VIEW3D_MT_uv_map) # Edit Menus
|
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_object) # Object Menu
|
2009-10-15 20:15:21 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_object_apply)
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_object_clear)
|
|
|
|
bpy.types.register(VIEW3D_MT_object_parent)
|
|
|
|
bpy.types.register(VIEW3D_MT_object_track)
|
|
|
|
bpy.types.register(VIEW3D_MT_object_group)
|
|
|
|
bpy.types.register(VIEW3D_MT_object_constraints)
|
|
|
|
bpy.types.register(VIEW3D_MT_object_showhide)
|
2009-10-16 10:00:45 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_make_single_user)
|
2009-11-04 10:25:57 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_make_links)
|
2009-10-16 10:00:45 +00:00
|
|
|
|
2009-11-16 13:59:27 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_hook)
|
2009-11-22 06:20:56 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_vertex_group)
|
2009-09-15 10:23:44 +00:00
|
|
|
|
|
|
|
bpy.types.register(VIEW3D_MT_sculpt) # Sculpt Menu
|
|
|
|
|
|
|
|
bpy.types.register(VIEW3D_MT_paint_vertex)
|
|
|
|
|
2009-12-24 10:39:30 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_particle)# Particle Menu
|
|
|
|
bpy.types.register(VIEW3D_MT_particle_specials)
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_particle_showhide)
|
|
|
|
|
|
|
|
bpy.types.register(VIEW3D_MT_pose) # POSE Menu
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_transform)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_pose)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_motion)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_group)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_ik)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_constraints)
|
|
|
|
bpy.types.register(VIEW3D_MT_pose_showhide)
|
2009-08-22 02:27:37 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh)
|
2009-10-13 07:39:08 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_specials) # Only as a menu for keybindings
|
2009-12-22 16:11:11 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_selection_mode) # Only as a menu for keybindings
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_vertices)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_edges)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_faces)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_normals)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_mesh_showhide)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_curve)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_curve_ctrlpoints)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_curve_segments)
|
2009-12-24 10:39:30 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_curve_specials)
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_curve_showhide)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_surface)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_text)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_text_chars)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_meta)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_meta_showhide)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_lattice)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-09-15 10:23:44 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_edit_armature)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_armature_parent)
|
|
|
|
bpy.types.register(VIEW3D_MT_edit_armature_roll)
|
2009-08-17 10:13:24 +00:00
|
|
|
|
2009-11-20 11:49:47 +00:00
|
|
|
bpy.types.register(VIEW3D_MT_armature_specials) # Only as a menu for keybindings
|
|
|
|
|
2009-11-18 17:54:04 +00:00
|
|
|
# Panels
|
2009-11-05 17:22:11 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_3dview_properties)
|
2009-07-14 12:32:19 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_3dview_display)
|
2009-11-18 17:54:04 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_3dview_name)
|
2009-08-22 11:51:26 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_3dview_meshdisplay)
|
2009-09-08 07:35:07 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_3dview_curvedisplay)
|
2009-07-14 12:32:19 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_background_image)
|
2009-10-08 07:54:20 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_transform_orientations)
|
2009-10-20 00:45:51 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_etch_a_ton)
|
2009-10-08 07:54:20 +00:00
|
|
|
|
2009-11-18 20:01:35 +00:00
|
|
|
bpy.types.register(VIEW3D_PT_context_properties)
|