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,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2009-05-08 18:17:57 +00:00
|
|
|
import bpy
|
2011-08-12 06:57:00 +00:00
|
|
|
from bpy.types import Panel
|
2013-02-10 10:29:38 +00:00
|
|
|
from bpy.app.translations import pgettext_iface as iface_
|
2013-02-10 09:09:26 +00:00
|
|
|
|
2011-09-20 18:29:19 +00:00
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
class ModifierButtonsPanel():
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'PROPERTIES'
|
|
|
|
bl_region_type = 'WINDOW'
|
|
|
|
bl_context = "modifier"
|
2012-03-10 20:08:25 +00:00
|
|
|
bl_options = {'HIDE_HEADER'}
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
|
2011-08-12 06:57:00 +00:00
|
|
|
class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_label = "Modifiers"
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
ob = context.object
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-01-30 08:45:31 +00:00
|
|
|
layout.operator_menu_enum("object.modifier_add", "type")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
for md in ob.modifiers:
|
2010-08-06 15:17:44 +00:00
|
|
|
box = layout.template_modifier(md)
|
2009-10-31 19:31:45 +00:00
|
|
|
if box:
|
|
|
|
# match enum type to our functions, avoids a lookup table.
|
2010-08-06 15:17:44 +00:00
|
|
|
getattr(self, md.type)(box, ob, md)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
# the mt.type enum is (ab)used for a lookup on function names
|
|
|
|
# ...to avoid lengthy if statements
|
|
|
|
# so each type must have a function here.
|
2012-02-20 23:24:57 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def ARMATURE(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2010-11-19 03:09:51 +00:00
|
|
|
col.prop(md, "use_deform_preserve_volume")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Bind To:")
|
|
|
|
col.prop(md, "use_vertex_groups", text="Vertex Groups")
|
|
|
|
col.prop(md, "use_bone_envelopes", text="Bone Envelopes")
|
2011-02-26 16:27:58 +00:00
|
|
|
|
2011-02-26 16:04:14 +00:00
|
|
|
layout.separator()
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
split = layout.split()
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
row = split.row(align=True)
|
2011-02-26 16:04:14 +00:00
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2013-12-14 09:14:24 +00:00
|
|
|
sub = row.row(align=True)
|
2010-12-31 11:51:00 +00:00
|
|
|
sub.active = bool(md.vertex_group)
|
2013-12-14 09:14:24 +00:00
|
|
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
2011-01-01 07:20:34 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
split.prop(md, "use_multi_modifier")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def ARRAY(self, layout, ob, md):
|
|
|
|
layout.prop(md, "fit_type")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if md.fit_type == 'FIXED_COUNT':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(md, "count")
|
2009-10-31 19:31:45 +00:00
|
|
|
elif md.fit_type == 'FIT_LENGTH':
|
2010-08-21 04:51:00 +00:00
|
|
|
layout.prop(md, "fit_length")
|
2009-10-31 19:31:45 +00:00
|
|
|
elif md.fit_type == 'FIT_CURVE':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(md, "curve")
|
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
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_constant_offset")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.active = md.use_constant_offset
|
|
|
|
sub.prop(md, "constant_offset_displace", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "use_merge_vertices", text="Merge")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.active = md.use_merge_vertices
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(md, "use_merge_vertices_cap", text="First Last")
|
|
|
|
sub.prop(md, "merge_threshold", text="Distance")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_relative_offset")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.active = md.use_relative_offset
|
|
|
|
sub.prop(md, "relative_offset_displace", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-23 00:27:30 +00:00
|
|
|
col.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_object_offset")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.active = md.use_object_offset
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(md, "offset_object", text="")
|
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
|
|
|
|
2011-02-26 16:04:14 +00:00
|
|
|
layout.prop(md, "start_cap")
|
|
|
|
layout.prop(md, "end_cap")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def BEVEL(self, layout, ob, md):
|
2013-04-24 12:39:37 +00:00
|
|
|
split = layout.split()
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "width")
|
|
|
|
col.prop(md, "segments")
|
2014-01-14 16:00:44 +00:00
|
|
|
col.prop(md, "profile")
|
2013-06-08 16:06:39 +00:00
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "use_only_vertices")
|
|
|
|
col.prop(md, "use_clamp_overlap")
|
2011-12-13 09:57:19 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.label(text="Limit Method:")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.row().prop(md, "limit_method", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
if md.limit_method == 'ANGLE':
|
2010-08-21 04:51:00 +00:00
|
|
|
layout.prop(md, "angle_limit")
|
2013-02-21 17:29:35 +00:00
|
|
|
elif md.limit_method == 'VGROUP':
|
|
|
|
layout.label(text="Vertex Group:")
|
|
|
|
layout.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2014-01-14 16:00:44 +00:00
|
|
|
layout.label(text="Width Method:")
|
|
|
|
layout.row().prop(md, "offset_type", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def BOOLEAN(self, layout, ob, md):
|
2009-10-31 19:31:45 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Operation:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "operation", text="")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def BUILD(self, layout, ob, md):
|
2009-10-31 19:31:45 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2010-04-22 17:35:00 +00:00
|
|
|
col.prop(md, "frame_start")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "frame_duration")
|
2014-01-16 11:13:36 +00:00
|
|
|
col.prop(md, "use_reverse")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_random_order")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-21 04:51:00 +00:00
|
|
|
sub.active = md.use_random_order
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(md, "seed")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2013-01-21 15:41:00 +00:00
|
|
|
def MESH_CACHE(self, layout, ob, md):
|
|
|
|
layout.prop(md, "cache_format")
|
|
|
|
layout.prop(md, "filepath")
|
|
|
|
|
|
|
|
layout.label(text="Evaluation:")
|
2013-01-21 16:43:04 +00:00
|
|
|
layout.prop(md, "factor", slider=True)
|
2013-01-24 04:02:30 +00:00
|
|
|
layout.prop(md, "deform_mode")
|
2013-01-21 15:41:00 +00:00
|
|
|
layout.prop(md, "interpolation")
|
|
|
|
|
|
|
|
layout.label(text="Time Mapping:")
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.prop(md, "time_mode", expand=True)
|
|
|
|
row = layout.row()
|
|
|
|
row.prop(md, "play_mode", expand=True)
|
|
|
|
if md.play_mode == 'SCENE':
|
|
|
|
layout.prop(md, "frame_start")
|
|
|
|
layout.prop(md, "frame_scale")
|
|
|
|
else:
|
|
|
|
time_mode = md.time_mode
|
|
|
|
if time_mode == 'FRAME':
|
|
|
|
layout.prop(md, "eval_frame")
|
|
|
|
elif time_mode == 'TIME':
|
|
|
|
layout.prop(md, "eval_time")
|
|
|
|
elif time_mode == 'FACTOR':
|
|
|
|
layout.prop(md, "eval_factor")
|
|
|
|
|
|
|
|
layout.label(text="Axis Mapping:")
|
|
|
|
split = layout.split(percentage=0.5, align=True)
|
|
|
|
split.alert = (md.forward_axis[-1] == md.up_axis[-1])
|
|
|
|
split.label("Forward/Up Axis:")
|
|
|
|
split.prop(md, "forward_axis", text="")
|
|
|
|
split.prop(md, "up_axis", text="")
|
|
|
|
split = layout.split(percentage=0.5)
|
|
|
|
split.label(text="Flip Axis:")
|
|
|
|
row = split.row()
|
|
|
|
row.prop(md, "flip_axis")
|
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def CAST(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split(percentage=0.25)
|
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
split.label(text="Cast Type:")
|
2010-08-06 15:17:44 +00:00
|
|
|
split.prop(md, "cast_type", text="")
|
2009-11-20 18:01:39 +00:00
|
|
|
|
|
|
|
split = layout.split(percentage=0.25)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
col = split.column()
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_x")
|
|
|
|
col.prop(md, "use_y")
|
|
|
|
col.prop(md, "use_z")
|
2009-11-20 18:01:39 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "factor")
|
|
|
|
col.prop(md, "radius")
|
|
|
|
col.prop(md, "size")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_radius_as_size")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
2009-11-21 00:05:43 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Control Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
if md.object:
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "use_transform")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def CLOTH(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def COLLISION(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def CURVE(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.label(text="Deformation Axis:")
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.row().prop(md, "deform_axis", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def DECIMATE(self, layout, ob, md):
|
2013-12-14 09:14:24 +00:00
|
|
|
decimate_type = md.decimate_type
|
|
|
|
|
2012-10-22 15:39:06 +00:00
|
|
|
row = layout.row()
|
2012-10-23 04:26:39 +00:00
|
|
|
row.prop(md, "decimate_type", expand=True)
|
|
|
|
|
2012-10-23 05:20:02 +00:00
|
|
|
if decimate_type == 'COLLAPSE':
|
2012-10-23 04:26:39 +00:00
|
|
|
layout.prop(md, "ratio")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
split = layout.split()
|
|
|
|
row = split.row(align=True)
|
2012-10-23 04:26:39 +00:00
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2013-12-14 09:14:24 +00:00
|
|
|
row.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
split.prop(md, "use_collapse_triangulate")
|
2012-10-23 05:20:02 +00:00
|
|
|
elif decimate_type == 'UNSUBDIV':
|
2012-10-23 04:26:39 +00:00
|
|
|
layout.prop(md, "iterations")
|
2012-10-23 05:20:02 +00:00
|
|
|
else: # decimate_type == 'DISSOLVE':
|
|
|
|
layout.prop(md, "angle_limit")
|
2012-10-23 06:13:56 +00:00
|
|
|
layout.prop(md, "use_dissolve_boundaries")
|
2013-06-03 05:07:16 +00:00
|
|
|
layout.label("Delimit:")
|
|
|
|
row = layout.row()
|
|
|
|
row.prop(md, "delimit")
|
2012-10-23 04:26:39 +00:00
|
|
|
|
2013-02-10 10:29:38 +00:00
|
|
|
layout.label(text=iface_("Face Count: %d") % md.face_count, translate=False)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def DISPLACE(self, layout, ob, md):
|
2012-08-14 17:36:41 +00:00
|
|
|
has_texture = (md.texture is not None)
|
2012-09-26 21:19:51 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Texture:")
|
2011-02-16 10:23:27 +00:00
|
|
|
col.template_ID(md, "texture", new="texture.new")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Direction:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "direction", text="")
|
2012-08-14 17:36:41 +00:00
|
|
|
colsub = col.column()
|
|
|
|
colsub.active = has_texture
|
|
|
|
colsub.label(text="Texture Coordinates:")
|
|
|
|
colsub.prop(md, "texture_coords", text="")
|
2010-08-20 06:09:58 +00:00
|
|
|
if md.texture_coords == 'OBJECT':
|
2012-08-14 17:36:41 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.active = has_texture
|
|
|
|
row.prop(md, "texture_coords_object", text="Object")
|
2010-08-20 06:09:58 +00:00
|
|
|
elif md.texture_coords == 'UV' and ob.type == 'MESH':
|
2012-08-14 17:36:41 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.active = has_texture
|
|
|
|
row.prop_search(md, "uv_layer", ob.data, "uv_textures")
|
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
|
|
|
|
2011-02-26 16:04:14 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.prop(md, "mid_level")
|
|
|
|
row.prop(md, "strength")
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2011-05-24 07:08:58 +00:00
|
|
|
def DYNAMIC_PAINT(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2011-05-24 07:08:58 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def EDGE_SPLIT(self, layout, ob, md):
|
2009-10-31 19:31:45 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "use_edge_angle", text="Edge Angle")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
|
|
|
sub.active = md.use_edge_angle
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(md, "split_angle")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
split.prop(md, "use_edge_sharp", text="Sharp Edges")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def EXPLODE(self, layout, ob, md):
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2009-11-20 20:40:29 +00:00
|
|
|
sub = col.column()
|
2009-11-23 09:28:42 +00:00
|
|
|
sub.active = bool(md.vertex_group)
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(md, "protect")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Particle UV")
|
2011-02-23 19:29:59 +00:00
|
|
|
col.prop_search(md, "particle_uv", ob.data, "uv_textures", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-02-23 19:29:59 +00:00
|
|
|
col.prop(md, "use_edge_cut")
|
2010-08-17 17:03:52 +00:00
|
|
|
col.prop(md, "show_unborn")
|
|
|
|
col.prop(md, "show_alive")
|
|
|
|
col.prop(md, "show_dead")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_size")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("object.explode_refresh", text="Refresh")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def FLUID_SIMULATION(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def HOOK(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
if md.object and md.object.type == 'ARMATURE':
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Bone:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "subtarget", md.object.data, "bones", text="")
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
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
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "falloff")
|
|
|
|
col.prop(md, "force", slider=True)
|
2010-08-06 15:17:44 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.operator("object.hook_reset", text="Reset")
|
|
|
|
col.operator("object.hook_recenter", text="Recenter")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
if ob.mode == 'EDIT':
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.separator()
|
2009-10-31 19:31:45 +00:00
|
|
|
row = layout.row()
|
2011-09-21 15:18:38 +00:00
|
|
|
row.operator("object.hook_select", text="Select")
|
|
|
|
row.operator("object.hook_assign", text="Assign")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2013-11-23 20:00:49 +00:00
|
|
|
def LAPLACIANDEFORM(self, layout, ob, md):
|
|
|
|
is_bind = md.is_bind
|
|
|
|
|
|
|
|
layout.prop(md, "iterations")
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.active = not is_bind
|
|
|
|
row.label(text="Anchors Vertex Group:")
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.enabled = not is_bind
|
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
row = layout.row()
|
|
|
|
row.enabled = bool(md.vertex_group)
|
|
|
|
row.operator("object.laplaciandeform_bind", text="Unbind" if is_bind else "Bind")
|
|
|
|
|
2012-10-24 10:39:11 +00:00
|
|
|
def LAPLACIANSMOOTH(self, layout, ob, md):
|
|
|
|
layout.prop(md, "iterations")
|
2013-01-15 23:15:32 +00:00
|
|
|
|
2012-10-24 11:13:43 +00:00
|
|
|
split = layout.split(percentage=0.25)
|
2013-01-15 23:15:32 +00:00
|
|
|
|
2012-10-24 11:13:43 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Axis:")
|
|
|
|
col.prop(md, "use_x")
|
|
|
|
col.prop(md, "use_y")
|
|
|
|
col.prop(md, "use_z")
|
2013-01-15 23:15:32 +00:00
|
|
|
|
2012-10-24 11:13:43 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Lambda:")
|
|
|
|
col.prop(md, "lambda_factor", text="Factor")
|
|
|
|
col.prop(md, "lambda_border", text="Border")
|
2013-01-15 23:15:32 +00:00
|
|
|
|
2012-10-24 11:13:43 +00:00
|
|
|
col.separator()
|
2012-10-24 11:44:32 +00:00
|
|
|
col.prop(md, "use_volume_preserve")
|
2013-01-16 19:38:50 +00:00
|
|
|
col.prop(md, "use_normalized")
|
2013-01-15 23:15:32 +00:00
|
|
|
|
2012-10-24 10:39:11 +00:00
|
|
|
layout.label(text="Vertex Group:")
|
|
|
|
layout.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2012-10-24 11:44:32 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def LATTICE(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "object", text="")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2012-04-08 08:09:37 +00:00
|
|
|
|
2012-03-25 22:14:21 +00:00
|
|
|
layout.separator()
|
2012-03-26 00:42:21 +00:00
|
|
|
layout.prop(md, "strength", slider=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def MASK(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Mode:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "mode", text="")
|
2013-12-14 09:14:24 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2009-10-31 19:31:45 +00:00
|
|
|
if md.mode == 'ARMATURE':
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Armature:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "armature", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
elif md.mode == 'VERTEX_GROUP':
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2013-12-14 09:14:24 +00:00
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.active = bool(md.vertex_group)
|
|
|
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def MESH_DEFORM(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split()
|
2011-02-26 16:27:58 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
col = split.column()
|
2013-12-14 09:14:24 +00:00
|
|
|
col.active = not md.is_bound
|
|
|
|
col.label(text="Object:")
|
|
|
|
col.prop(md, "object", text="")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
sub = row.row(align=True)
|
2009-11-23 09:28:42 +00:00
|
|
|
sub.active = bool(md.vertex_group)
|
2013-12-14 09:14:24 +00:00
|
|
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
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
|
|
|
|
|
|
|
if md.is_bound:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("object.meshdeform_bind", text="Unbind")
|
2009-10-31 19:31:45 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.operator("object.meshdeform_bind", text="Bind")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-02-26 16:04:14 +00:00
|
|
|
row = layout.row()
|
|
|
|
row.prop(md, "precision")
|
|
|
|
row.prop(md, "use_dynamic_bind")
|
2009-11-16 16:07:22 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def MIRROR(self, layout, ob, md):
|
|
|
|
split = layout.split(percentage=0.25)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Axis:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_x")
|
|
|
|
col.prop(md, "use_y")
|
|
|
|
col.prop(md, "use_z")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Options:")
|
|
|
|
col.prop(md, "use_mirror_merge", text="Merge")
|
|
|
|
col.prop(md, "use_clip", text="Clipping")
|
|
|
|
col.prop(md, "use_mirror_vertex_groups", text="Vertex Groups")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Textures:")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_mirror_u", text="U")
|
|
|
|
col.prop(md, "use_mirror_v", text="V")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-20 18:01:39 +00:00
|
|
|
col = layout.column()
|
2011-02-16 02:25:03 +00:00
|
|
|
|
2012-10-08 08:28:05 +00:00
|
|
|
if md.use_mirror_merge is True:
|
2011-02-10 00:05:03 +00:00
|
|
|
col.prop(md, "merge_threshold")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Mirror Object:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "mirror_object", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def MULTIRES(self, layout, ob, md):
|
|
|
|
layout.row().prop(md, "subdivision_type", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-25 14:10:45 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "levels", text="Preview")
|
|
|
|
col.prop(md, "sculpt_levels", text="Sculpt")
|
|
|
|
col.prop(md, "render_levels", text="Render")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2009-11-25 17:51:16 +00:00
|
|
|
|
2009-12-07 19:11:37 +00:00
|
|
|
col.enabled = ob.mode != 'EDIT'
|
2011-09-21 15:18:38 +00:00
|
|
|
col.operator("object.multires_subdivide", text="Subdivide")
|
|
|
|
col.operator("object.multires_higher_levels_delete", text="Delete Higher")
|
|
|
|
col.operator("object.multires_reshape", text="Reshape")
|
|
|
|
col.operator("object.multires_base_apply", text="Apply Base")
|
2011-07-28 11:16:10 +00:00
|
|
|
col.prop(md, "use_subsurf_uv")
|
2010-08-17 17:03:52 +00:00
|
|
|
col.prop(md, "show_only_control_edges")
|
2009-12-10 14:26:06 +00:00
|
|
|
|
|
|
|
layout.separator()
|
|
|
|
|
|
|
|
col = layout.column()
|
2009-11-25 14:27:50 +00:00
|
|
|
row = col.row()
|
2010-08-19 12:51:31 +00:00
|
|
|
if md.is_external:
|
2011-09-21 15:18:38 +00:00
|
|
|
row.operator("object.multires_external_pack", text="Pack External")
|
2009-12-10 14:26:06 +00:00
|
|
|
row.label()
|
|
|
|
row = col.row()
|
2010-06-02 17:58:28 +00:00
|
|
|
row.prop(md, "filepath", text="")
|
2009-12-10 14:26:06 +00:00
|
|
|
else:
|
2011-09-21 15:18:38 +00:00
|
|
|
row.operator("object.multires_external_save", text="Save External...")
|
2009-12-10 14:26:06 +00:00
|
|
|
row.label()
|
2009-11-16 16:07:22 +00:00
|
|
|
|
2011-11-13 12:17:27 +00:00
|
|
|
def OCEAN(self, layout, ob, md):
|
2013-03-23 06:55:59 +00:00
|
|
|
if not bpy.app.build_options.mod_oceansim:
|
2011-11-13 14:54:11 +00:00
|
|
|
layout.label("Built without OceanSim modifier")
|
2011-11-13 12:17:27 +00:00
|
|
|
return
|
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
layout.prop(md, "geometry_mode")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:17:27 +00:00
|
|
|
if md.geometry_mode == 'GENERATE':
|
2011-11-13 12:45:47 +00:00
|
|
|
row = layout.row()
|
2011-11-13 12:17:27 +00:00
|
|
|
row.prop(md, "repeat_x")
|
|
|
|
row.prop(md, "repeat_y")
|
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
layout.separator()
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2012-04-25 18:12:41 +00:00
|
|
|
split = layout.split()
|
2012-05-01 13:32:55 +00:00
|
|
|
|
2012-04-25 18:12:41 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "time")
|
2013-01-02 16:03:58 +00:00
|
|
|
col.prop(md, "depth")
|
|
|
|
col.prop(md, "random_seed")
|
2012-05-01 13:32:55 +00:00
|
|
|
|
2012-04-25 18:12:41 +00:00
|
|
|
col = split.column()
|
2013-01-02 16:03:58 +00:00
|
|
|
col.prop(md, "resolution")
|
|
|
|
col.prop(md, "size")
|
2012-04-25 18:12:41 +00:00
|
|
|
col.prop(md, "spatial_size")
|
2011-11-13 12:45:47 +00:00
|
|
|
|
|
|
|
layout.label("Waves:")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
split = layout.split()
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
col = split.column()
|
2011-11-13 12:17:27 +00:00
|
|
|
col.prop(md, "choppiness")
|
|
|
|
col.prop(md, "wave_scale", text="Scale")
|
2011-11-14 07:18:32 +00:00
|
|
|
col.prop(md, "wave_scale_min")
|
2011-11-13 12:17:27 +00:00
|
|
|
col.prop(md, "wind_velocity")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:17:27 +00:00
|
|
|
col = split.column()
|
2011-11-13 12:45:47 +00:00
|
|
|
col.prop(md, "wave_alignment", text="Alignment")
|
|
|
|
sub = col.column()
|
2014-01-17 22:13:51 +00:00
|
|
|
sub.active = (md.wave_alignment > 0.0)
|
2011-11-13 12:45:47 +00:00
|
|
|
sub.prop(md, "wave_direction", text="Direction")
|
2011-11-14 07:18:32 +00:00
|
|
|
sub.prop(md, "damping")
|
2011-11-13 12:45:47 +00:00
|
|
|
|
|
|
|
layout.separator()
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-14 07:18:32 +00:00
|
|
|
layout.prop(md, "use_normals")
|
2011-11-24 19:36:12 +00:00
|
|
|
|
2011-11-20 14:36:23 +00:00
|
|
|
split = layout.split()
|
2011-11-24 19:36:12 +00:00
|
|
|
|
2011-11-20 14:36:23 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "use_foam")
|
|
|
|
sub = col.row()
|
2011-11-14 07:18:32 +00:00
|
|
|
sub.active = md.use_foam
|
2011-11-13 12:45:47 +00:00
|
|
|
sub.prop(md, "foam_coverage", text="Coverage")
|
2011-11-24 19:36:12 +00:00
|
|
|
|
2011-11-20 14:36:23 +00:00
|
|
|
col = split.column()
|
|
|
|
col.active = md.use_foam
|
|
|
|
col.label("Foam Data Layer Name:")
|
2011-11-20 14:16:41 +00:00
|
|
|
col.prop(md, "foam_layer_name", text="")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
layout.separator()
|
|
|
|
|
2011-11-13 12:17:27 +00:00
|
|
|
if md.is_cached:
|
2011-11-13 14:38:00 +00:00
|
|
|
layout.operator("object.ocean_bake", text="Free Bake").free = True
|
2011-11-13 12:17:27 +00:00
|
|
|
else:
|
2013-01-02 16:03:58 +00:00
|
|
|
layout.operator("object.ocean_bake").free = False
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
split = layout.split()
|
|
|
|
split.enabled = not md.is_cached
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
col = split.column(align=True)
|
2011-11-14 07:18:32 +00:00
|
|
|
col.prop(md, "frame_start", text="Start")
|
|
|
|
col.prop(md, "frame_end", text="End")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2011-11-13 12:45:47 +00:00
|
|
|
col = split.column(align=True)
|
|
|
|
col.label(text="Cache path:")
|
|
|
|
col.prop(md, "filepath", text="")
|
2011-11-13 14:38:00 +00:00
|
|
|
|
2013-01-02 16:03:58 +00:00
|
|
|
split = layout.split()
|
|
|
|
split.enabled = not md.is_cached
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.active = md.use_foam
|
|
|
|
col.prop(md, "bake_foam_fade")
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def PARTICLE_INSTANCE(self, layout, ob, md):
|
2009-11-23 00:27:30 +00:00
|
|
|
layout.prop(md, "object")
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(md, "particle_system_index", text="Particle System")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Create From:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_normal")
|
|
|
|
col.prop(md, "use_children")
|
|
|
|
col.prop(md, "use_size")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Show Particles When:")
|
2010-08-17 17:03:52 +00:00
|
|
|
col.prop(md, "show_alive")
|
|
|
|
col.prop(md, "show_unborn")
|
|
|
|
col.prop(md, "show_dead")
|
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
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(md, "use_path", text="Create Along Paths")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
2010-06-14 03:52:10 +00:00
|
|
|
split.active = md.use_path
|
2009-11-16 16:07:22 +00:00
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.row().prop(md, "axis", expand=True)
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_preserve_shape")
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "position", slider=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "random_position", text="Random", slider=True)
|
2009-11-16 16:07:22 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def PARTICLE_SYSTEM(self, layout, ob, md):
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.label(text="Settings can be found inside the Particle context")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SCREW(self, layout, ob, md):
|
2010-03-22 00:22:52 +00:00
|
|
|
split = layout.split()
|
2010-04-04 14:52:15 +00:00
|
|
|
|
2010-03-22 00:22:52 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "axis")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "object", text="AxisOb")
|
2010-03-22 00:22:52 +00:00
|
|
|
col.prop(md, "angle")
|
|
|
|
col.prop(md, "steps")
|
|
|
|
col.prop(md, "render_steps")
|
2012-05-18 10:37:49 +00:00
|
|
|
col.prop(md, "use_smooth_shade")
|
2010-04-04 14:52:15 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2010-03-22 00:22:52 +00:00
|
|
|
row = col.row()
|
2012-10-08 08:28:05 +00:00
|
|
|
row.active = (md.object is None or md.use_object_screw_offset is False)
|
2010-03-22 00:22:52 +00:00
|
|
|
row.prop(md, "screw_offset")
|
|
|
|
row = col.row()
|
|
|
|
row.active = (md.object is not None)
|
|
|
|
row.prop(md, "use_object_screw_offset")
|
|
|
|
col.prop(md, "use_normal_calculate")
|
|
|
|
col.prop(md, "use_normal_flip")
|
|
|
|
col.prop(md, "iterations")
|
2013-11-26 10:22:56 +00:00
|
|
|
col.prop(md, "use_stretch_u")
|
|
|
|
col.prop(md, "use_stretch_v")
|
2010-03-22 00:22:52 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SHRINKWRAP(self, layout, ob, md):
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Target:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "target", text="")
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2009-11-20 20:40:29 +00:00
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "offset")
|
2009-11-20 20:40:29 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Mode:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "wrap_method", text="")
|
2009-11-20 20:40:29 +00:00
|
|
|
|
2010-08-21 07:15:11 +00:00
|
|
|
if md.wrap_method == 'PROJECT':
|
2013-09-27 09:51:02 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "subsurf_levels")
|
|
|
|
col = split.column()
|
|
|
|
|
2012-11-09 04:20:17 +00:00
|
|
|
col.prop(md, "project_limit", text="Limit")
|
2011-06-10 20:41:22 +00:00
|
|
|
split = layout.split(percentage=0.25)
|
2011-06-21 17:17:51 +00:00
|
|
|
|
2011-06-10 20:41:22 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Axis:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_project_x")
|
|
|
|
col.prop(md, "use_project_y")
|
|
|
|
col.prop(md, "use_project_z")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Direction:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_negative_direction")
|
|
|
|
col.prop(md, "use_positive_direction")
|
2009-11-20 20:40:29 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Cull Faces:")
|
2011-02-19 09:53:38 +00:00
|
|
|
col.prop(md, "cull_face", expand=True)
|
2009-11-20 20:40:29 +00:00
|
|
|
|
2012-11-09 04:20:17 +00:00
|
|
|
layout.prop(md, "auxiliary_target")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-21 07:15:11 +00:00
|
|
|
elif md.wrap_method == 'NEAREST_SURFACEPOINT':
|
2010-08-20 06:09:58 +00:00
|
|
|
layout.prop(md, "use_keep_above_surface")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SIMPLE_DEFORM(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2012-01-14 18:07:09 +00:00
|
|
|
layout.row().prop(md, "deform_method", expand=True)
|
|
|
|
|
|
|
|
split = layout.split()
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Origin:")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "origin", text="")
|
2013-07-23 19:31:49 +00:00
|
|
|
|
|
|
|
if md.deform_method in {'TAPER', 'STRETCH', 'TWIST'}:
|
|
|
|
col.label(text="Lock:")
|
|
|
|
col.prop(md, "lock_x")
|
|
|
|
col.prop(md, "lock_y")
|
2009-11-20 18:01:39 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Deform:")
|
2013-03-05 14:42:06 +00:00
|
|
|
if md.deform_method in {'TAPER', 'STRETCH'}:
|
|
|
|
col.prop(md, "factor")
|
|
|
|
else:
|
|
|
|
col.prop(md, "angle")
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "limits", slider=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SMOKE(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SMOOTH(self, layout, ob, md):
|
2009-11-20 18:01:39 +00:00
|
|
|
split = layout.split(percentage=0.25)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Axis:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_x")
|
|
|
|
col.prop(md, "use_y")
|
|
|
|
col.prop(md, "use_z")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "factor")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "iterations")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Vertex Group:")
|
2010-08-23 05:47:45 +00:00
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SOFT_BODY(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SOLIDIFY(self, layout, ob, md):
|
2009-12-21 01:02:08 +00:00
|
|
|
split = layout.split()
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2009-12-21 01:02:08 +00:00
|
|
|
col = split.column()
|
2010-03-31 07:28:23 +00:00
|
|
|
col.prop(md, "thickness")
|
2013-03-13 17:31:26 +00:00
|
|
|
col.prop(md, "thickness_clamp")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
col.separator()
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.active = bool(md.vertex_group)
|
|
|
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
sub = col.row()
|
|
|
|
sub.active = bool(md.vertex_group)
|
2014-02-12 21:51:33 +00:00
|
|
|
sub.prop(md, "thickness_vertex_group", text="Factor")
|
2010-03-31 07:28:23 +00:00
|
|
|
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Crease:")
|
|
|
|
col.prop(md, "edge_crease_inner", text="Inner")
|
|
|
|
col.prop(md, "edge_crease_outer", text="Outer")
|
|
|
|
col.prop(md, "edge_crease_rim", text="Rim")
|
2010-01-31 14:46:28 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2010-03-31 07:28:23 +00:00
|
|
|
|
|
|
|
col.prop(md, "offset")
|
2013-03-13 17:31:26 +00:00
|
|
|
col.prop(md, "use_flip_normals")
|
2010-03-31 07:28:23 +00:00
|
|
|
|
2009-12-21 01:02:08 +00:00
|
|
|
col.prop(md, "use_even_offset")
|
|
|
|
col.prop(md, "use_quality_normals")
|
2010-06-13 13:56:13 +00:00
|
|
|
col.prop(md, "use_rim")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
col.separator()
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2013-12-14 09:14:24 +00:00
|
|
|
col.label(text="Material Index Offset:")
|
2014-02-12 21:51:33 +00:00
|
|
|
|
2011-04-24 20:59:19 +00:00
|
|
|
sub = col.column()
|
|
|
|
row = sub.split(align=True, percentage=0.4)
|
|
|
|
row.prop(md, "material_offset", text="")
|
2013-08-23 20:41:21 +00:00
|
|
|
row = row.row(align=True)
|
2011-04-24 20:59:19 +00:00
|
|
|
row.active = md.use_rim
|
2011-09-21 15:18:38 +00:00
|
|
|
row.prop(md, "material_offset_rim", text="Rim")
|
2010-06-13 13:56:13 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SUBSURF(self, layout, ob, md):
|
|
|
|
layout.row().prop(md, "subdivision_type", expand=True)
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2009-11-16 16:07:22 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Subdivisions:")
|
|
|
|
col.prop(md, "levels", text="View")
|
|
|
|
col.prop(md, "render_levels", text="Render")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Options:")
|
2010-08-20 06:09:58 +00:00
|
|
|
col.prop(md, "use_subsurf_uv")
|
2010-08-17 17:03:52 +00:00
|
|
|
col.prop(md, "show_only_control_edges")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def SURFACE(self, layout, ob, md):
|
2014-02-21 11:46:17 +00:00
|
|
|
layout.label(text="Settings are inside the Physics tab")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def UV_PROJECT(self, layout, ob, md):
|
2011-09-08 11:12:25 +00:00
|
|
|
split = layout.split()
|
2009-12-29 12:53:30 +00:00
|
|
|
|
2011-09-08 11:12:25 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Image:")
|
2011-09-08 11:12:25 +00:00
|
|
|
col.prop(md, "image", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-08 11:12:25 +00:00
|
|
|
col = split.column()
|
2011-11-23 17:25:25 +00:00
|
|
|
col.label(text="UV Map:")
|
2011-09-08 11:12:25 +00:00
|
|
|
col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-08 11:12:25 +00:00
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "use_image_override")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "projector_count", text="Projectors")
|
2011-09-08 11:12:25 +00:00
|
|
|
for proj in md.projectors:
|
|
|
|
col.prop(proj, "object", text="")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-09-08 11:12:25 +00:00
|
|
|
col = split.column()
|
|
|
|
sub = col.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(md, "aspect_x", text="Aspect X")
|
|
|
|
sub.prop(md, "aspect_y", text="Aspect Y")
|
* Multiply for panorama cameras
* Some cases of struct name being set where it shouldnt have been.
* Spelling: wich --> which
* Copy and initialize uv modifier scale, remove unneeded enum.
* Ability to pin any object into the context.
* Update uv window while transforming (useful when used with UVProject modifier)
* Patch by Wahooney, so new template's are internal text and dont get saved over
by mistake.
* Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186
Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process
/usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted
by Jochen Schmitt.
* [#21816] bpy.data.add_image has stopped working on Windows. moved to
bpy.data.images.load(), missed this call.
(commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)
2010-03-30 12:15:16 +00:00
|
|
|
|
2011-09-08 11:12:25 +00:00
|
|
|
sub = col.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(md, "scale_x", text="Scale X")
|
|
|
|
sub.prop(md, "scale_y", text="Scale Y")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2011-05-01 15:16:59 +00:00
|
|
|
def WARP(self, layout, ob, md):
|
|
|
|
use_falloff = (md.falloff_type != 'NONE')
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="From:")
|
2011-05-01 15:16:59 +00:00
|
|
|
col.prop(md, "object_from", text="")
|
|
|
|
|
|
|
|
col.prop(md, "use_volume_preserve")
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="To:")
|
2011-05-01 15:16:59 +00:00
|
|
|
col.prop(md, "object_to", text="")
|
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
|
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop(md, "strength")
|
|
|
|
if use_falloff:
|
|
|
|
row.prop(md, "falloff_radius")
|
|
|
|
|
|
|
|
col.prop(md, "falloff_type")
|
|
|
|
if use_falloff:
|
|
|
|
if md.falloff_type == 'CURVE':
|
|
|
|
col.template_curve_mapping(md, "falloff_curve")
|
|
|
|
|
|
|
|
# 2 new columns
|
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Texture:")
|
2011-10-20 14:58:53 +00:00
|
|
|
col.template_ID(md, "texture", new="texture.new")
|
2011-05-01 15:16:59 +00:00
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Texture Coordinates:")
|
2011-05-01 15:16:59 +00:00
|
|
|
col.prop(md, "texture_coords", text="")
|
|
|
|
|
|
|
|
if md.texture_coords == 'OBJECT':
|
2011-09-21 15:18:38 +00:00
|
|
|
layout.prop(md, "texture_coords_object", text="Object")
|
2011-05-01 15:16:59 +00:00
|
|
|
elif md.texture_coords == 'UV' and ob.type == 'MESH':
|
2011-05-06 23:54:40 +00:00
|
|
|
layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
|
2011-05-01 15:16:59 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
def WAVE(self, layout, ob, md):
|
2009-10-31 19:31:45 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Motion:")
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_x")
|
|
|
|
col.prop(md, "use_y")
|
|
|
|
col.prop(md, "use_cyclic")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2010-08-21 04:51:00 +00:00
|
|
|
col.prop(md, "use_normal")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column()
|
2010-08-21 07:15:11 +00:00
|
|
|
sub.active = md.use_normal
|
2010-08-20 06:09:58 +00:00
|
|
|
sub.prop(md, "use_normal_x", text="X")
|
|
|
|
sub.prop(md, "use_normal_y", text="Y")
|
|
|
|
sub.prop(md, "use_normal_z", text="Z")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Time:")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column(align=True)
|
2011-09-21 15:18:38 +00:00
|
|
|
sub.prop(md, "time_offset", text="Offset")
|
|
|
|
sub.prop(md, "lifetime", text="Life")
|
|
|
|
col.prop(md, "damping_time", text="Damping")
|
2009-10-31 19:31:45 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Position:")
|
2009-10-31 19:31:45 +00:00
|
|
|
sub = col.column(align=True)
|
2009-11-23 00:27:30 +00:00
|
|
|
sub.prop(md, "start_position_x", text="X")
|
|
|
|
sub.prop(md, "start_position_y", text="Y")
|
2011-09-21 15:18:38 +00:00
|
|
|
col.prop(md, "falloff_radius", text="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.prop(md, "start_position_object")
|
2010-08-23 05:47:45 +00:00
|
|
|
layout.prop_search(md, "vertex_group", ob, "vertex_groups")
|
2011-02-16 10:23:27 +00:00
|
|
|
split = layout.split(percentage=0.33)
|
|
|
|
col = split.column()
|
2011-09-21 15:18:38 +00:00
|
|
|
col.label(text="Texture")
|
2011-02-16 10:23:27 +00:00
|
|
|
col = split.column()
|
|
|
|
col.template_ID(md, "texture", new="texture.new")
|
2010-08-20 06:09:58 +00:00
|
|
|
layout.prop(md, "texture_coords")
|
|
|
|
if md.texture_coords == 'MAP_UV' and ob.type == 'MESH':
|
2010-08-23 05:47:45 +00:00
|
|
|
layout.prop_search(md, "uv_layer", ob.data, "uv_textures")
|
2010-08-20 06:09:58 +00:00
|
|
|
elif md.texture_coords == 'OBJECT':
|
2010-08-18 08:26:18 +00:00
|
|
|
layout.prop(md, "texture_coords_object")
|
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 16:07:22 +00:00
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "speed", slider=True)
|
|
|
|
col.prop(md, "height", slider=True)
|
2009-11-21 00:05:43 +00:00
|
|
|
|
2010-08-06 15:17:44 +00:00
|
|
|
col = split.column()
|
2009-11-23 00:27:30 +00:00
|
|
|
col.prop(md, "width", slider=True)
|
|
|
|
col.prop(md, "narrowness", slider=True)
|
2011-04-04 10:13:04 +00:00
|
|
|
|
2011-12-30 21:11:40 +00:00
|
|
|
def REMESH(self, layout, ob, md):
|
|
|
|
layout.prop(md, "mode")
|
2012-02-04 11:10:41 +00:00
|
|
|
|
2011-12-30 21:11:40 +00:00
|
|
|
row = layout.row()
|
2012-01-19 17:30:29 +00:00
|
|
|
row.prop(md, "octree_depth")
|
|
|
|
row.prop(md, "scale")
|
|
|
|
|
2012-02-04 11:10:41 +00:00
|
|
|
if md.mode == 'SHARP':
|
2012-01-19 17:30:29 +00:00
|
|
|
layout.prop(md, "sharpness")
|
2011-12-30 21:11:40 +00:00
|
|
|
|
2012-05-18 10:37:49 +00:00
|
|
|
layout.prop(md, "use_smooth_shade")
|
2013-04-23 07:06:29 +00:00
|
|
|
layout.prop(md, "use_remove_disconnected")
|
2011-12-30 21:11:40 +00:00
|
|
|
row = layout.row()
|
2013-04-23 07:06:29 +00:00
|
|
|
row.active = md.use_remove_disconnected
|
2011-12-30 21:11:40 +00:00
|
|
|
row.prop(md, "threshold")
|
|
|
|
|
2011-07-25 15:27:01 +00:00
|
|
|
@staticmethod
|
2011-09-07 23:36:32 +00:00
|
|
|
def vertex_weight_mask(layout, ob, md):
|
2011-07-25 15:27:01 +00:00
|
|
|
layout.label(text="Influence/Mask Options:")
|
|
|
|
|
2011-09-08 07:36:59 +00:00
|
|
|
split = layout.split(percentage=0.4)
|
|
|
|
split.label(text="Global Influence:")
|
|
|
|
split.prop(md, "mask_constant", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
|
|
|
if not md.mask_texture:
|
2011-09-08 07:36:59 +00:00
|
|
|
split = layout.split(percentage=0.4)
|
|
|
|
split.label(text="Vertex Group Mask:")
|
|
|
|
split.prop_search(md, "mask_vertex_group", ob, "vertex_groups", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
|
|
|
if not md.mask_vertex_group:
|
2011-09-08 07:36:59 +00:00
|
|
|
split = layout.split(percentage=0.4)
|
|
|
|
split.label(text="Texture Mask:")
|
|
|
|
split.template_ID(md, "mask_texture", new="texture.new")
|
2011-07-25 15:27:01 +00:00
|
|
|
if md.mask_texture:
|
|
|
|
split = layout.split()
|
2011-09-11 15:36:11 +00:00
|
|
|
|
2011-07-25 15:27:01 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Texture Coordinates:")
|
|
|
|
col.prop(md, "mask_tex_mapping", text="")
|
2011-09-11 15:36:11 +00:00
|
|
|
|
2011-07-25 15:27:01 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Use Channel:")
|
|
|
|
col.prop(md, "mask_tex_use_channel", text="")
|
|
|
|
|
|
|
|
if md.mask_tex_mapping == 'OBJECT':
|
2011-09-05 03:26:49 +00:00
|
|
|
layout.prop(md, "mask_tex_map_object", text="Object")
|
2011-07-25 15:27:01 +00:00
|
|
|
elif md.mask_tex_mapping == 'UV' and ob.type == 'MESH':
|
|
|
|
layout.prop_search(md, "mask_tex_uv_layer", ob.data, "uv_textures")
|
|
|
|
|
2011-09-07 07:46:26 +00:00
|
|
|
def VERTEX_WEIGHT_EDIT(self, layout, ob, md):
|
2011-09-08 11:08:22 +00:00
|
|
|
split = layout.split()
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Vertex Group:")
|
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col.label(text="Default Weight:")
|
|
|
|
col.prop(md, "default_weight", text="")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "use_add")
|
|
|
|
sub = col.column()
|
|
|
|
sub.active = md.use_add
|
|
|
|
sub.prop(md, "add_threshold")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
col = col.column()
|
|
|
|
col.prop(md, "use_remove")
|
|
|
|
sub = col.column()
|
|
|
|
sub.active = md.use_remove
|
|
|
|
sub.prop(md, "remove_threshold")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
layout.separator()
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
layout.prop(md, "falloff_type")
|
|
|
|
if md.falloff_type == 'CURVE':
|
2013-06-08 16:06:39 +00:00
|
|
|
layout.template_curve_mapping(md, "map_curve")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
# Common mask options
|
|
|
|
layout.separator()
|
|
|
|
self.vertex_weight_mask(layout, ob, md)
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-07 07:46:26 +00:00
|
|
|
def VERTEX_WEIGHT_MIX(self, layout, ob, md):
|
2011-09-08 11:08:22 +00:00
|
|
|
split = layout.split()
|
2011-09-11 15:36:11 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Vertex Group A:")
|
|
|
|
col.prop_search(md, "vertex_group_a", ob, "vertex_groups", text="")
|
|
|
|
col.label(text="Default Weight A:")
|
|
|
|
col.prop(md, "default_weight_a", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col.label(text="Mix Mode:")
|
|
|
|
col.prop(md, "mix_mode", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Vertex Group B:")
|
|
|
|
col.prop_search(md, "vertex_group_b", ob, "vertex_groups", text="")
|
|
|
|
col.label(text="Default Weight B:")
|
|
|
|
col.prop(md, "default_weight_b", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col.label(text="Mix Set:")
|
|
|
|
col.prop(md, "mix_set", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
# Common mask options
|
|
|
|
layout.separator()
|
|
|
|
self.vertex_weight_mask(layout, ob, md)
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-07 07:46:26 +00:00
|
|
|
def VERTEX_WEIGHT_PROXIMITY(self, layout, ob, md):
|
2011-09-08 11:08:22 +00:00
|
|
|
split = layout.split()
|
2011-09-11 15:36:11 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Vertex Group:")
|
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Target Object:")
|
|
|
|
col.prop(md, "target", text="")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
split = layout.split()
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Distance:")
|
|
|
|
col.prop(md, "proximity_mode", text="")
|
2011-09-08 11:08:22 +00:00
|
|
|
if md.proximity_mode == 'GEOMETRY':
|
2013-06-08 16:06:39 +00:00
|
|
|
col.row().prop(md, "proximity_geometry")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label()
|
|
|
|
col.prop(md, "min_dist")
|
|
|
|
col.prop(md, "max_dist")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:06:39 +00:00
|
|
|
layout.separator()
|
2011-09-08 11:08:22 +00:00
|
|
|
layout.prop(md, "falloff_type")
|
2011-09-05 16:16:00 +00:00
|
|
|
|
2011-09-08 11:08:22 +00:00
|
|
|
# Common mask options
|
|
|
|
layout.separator()
|
|
|
|
self.vertex_weight_mask(layout, ob, md)
|
2011-07-25 15:27:01 +00:00
|
|
|
|
2012-05-22 15:29:01 +00:00
|
|
|
def SKIN(self, layout, ob, md):
|
|
|
|
layout.operator("object.skin_armature_create", text="Create Armature")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2012-05-22 15:29:01 +00:00
|
|
|
layout.separator()
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:53:14 +00:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.prop(md, "branch_smoothing")
|
|
|
|
col.prop(md, "use_smooth_shade")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2012-05-22 15:29:01 +00:00
|
|
|
split = layout.split()
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2012-05-22 15:29:01 +00:00
|
|
|
col = split.column()
|
2013-06-08 16:53:14 +00:00
|
|
|
col.label(text="Selected Vertices:")
|
|
|
|
sub = col.column(align=True)
|
|
|
|
sub.operator("object.skin_loose_mark_clear", text="Mark Loose").action = 'MARK'
|
|
|
|
sub.operator("object.skin_loose_mark_clear", text="Clear Loose").action = 'CLEAR'
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:53:14 +00:00
|
|
|
sub = col.column()
|
|
|
|
sub.operator("object.skin_root_mark", text="Mark Root")
|
|
|
|
sub.operator("object.skin_radii_equalize", text="Equalize Radii")
|
2013-06-27 03:05:19 +00:00
|
|
|
|
2013-06-08 16:53:14 +00:00
|
|
|
col = split.column()
|
|
|
|
col.label(text="Symmetry Axes:")
|
2012-05-22 15:29:01 +00:00
|
|
|
col.prop(md, "use_x_symmetry")
|
|
|
|
col.prop(md, "use_y_symmetry")
|
|
|
|
col.prop(md, "use_z_symmetry")
|
2012-06-19 22:17:19 +00:00
|
|
|
|
2012-11-19 20:40:08 +00:00
|
|
|
def TRIANGULATE(self, layout, ob, md):
|
2013-10-29 02:42:51 +00:00
|
|
|
row = layout.row()
|
|
|
|
|
|
|
|
col = row.column()
|
|
|
|
col.label(text="Quad Method:")
|
|
|
|
col.prop(md, "quad_method", text="")
|
|
|
|
col = row.column()
|
|
|
|
col.label(text="Ngon Method:")
|
|
|
|
col.prop(md, "ngon_method", text="")
|
2012-11-19 20:40:08 +00:00
|
|
|
|
2012-12-14 04:07:30 +00:00
|
|
|
def UV_WARP(self, layout, ob, md):
|
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
2013-01-15 23:15:32 +00:00
|
|
|
col.prop(md, "center")
|
2012-12-14 04:07:30 +00:00
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.label(text="UV Axis:")
|
2013-01-15 23:15:32 +00:00
|
|
|
col.prop(md, "axis_u", text="")
|
|
|
|
col.prop(md, "axis_v", text="")
|
2012-12-14 04:07:30 +00:00
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
|
|
|
col.label(text="From:")
|
|
|
|
col.prop(md, "object_from", text="")
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.label(text="To:")
|
|
|
|
col.prop(md, "object_to", text="")
|
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
col = split.column()
|
|
|
|
obj = md.object_from
|
|
|
|
if obj and obj.type == 'ARMATURE':
|
|
|
|
col.label(text="Bone:")
|
|
|
|
col.prop_search(md, "bone_from", obj.data, "bones", text="")
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
obj = md.object_to
|
|
|
|
if obj and obj.type == 'ARMATURE':
|
|
|
|
col.label(text="Bone:")
|
|
|
|
col.prop_search(md, "bone_to", obj.data, "bones", text="")
|
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.label(text="Vertex Group:")
|
|
|
|
col.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.label(text="UV Map:")
|
|
|
|
col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
|
|
|
|
|
2013-12-21 20:08:35 +00:00
|
|
|
def WIREFRAME(self, layout, ob, md):
|
|
|
|
has_vgroup = bool(md.vertex_group)
|
|
|
|
|
|
|
|
split = layout.split()
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
col.prop(md, "thickness", text="Thickness")
|
|
|
|
|
|
|
|
row = col.row(align=True)
|
|
|
|
row.prop_search(md, "vertex_group", ob, "vertex_groups", text="")
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.active = has_vgroup
|
|
|
|
sub.prop(md, "invert_vertex_group", text="", icon='ARROW_LEFTRIGHT')
|
|
|
|
row = col.row(align=True)
|
|
|
|
row.active = has_vgroup
|
|
|
|
row.prop(md, "thickness_vertex_group", text="Factor")
|
|
|
|
|
|
|
|
col.prop(md, "use_crease", text="Crease Edges")
|
|
|
|
col.prop(md, "crease_weight", text="Crease Weight")
|
|
|
|
|
|
|
|
col = split.column()
|
|
|
|
|
|
|
|
col.prop(md, "offset")
|
|
|
|
col.prop(md, "use_even_offset", text="Even Thickness")
|
|
|
|
col.prop(md, "use_relative_offset", text="Relative Thickness")
|
|
|
|
col.prop(md, "use_boundary", text="Boundary")
|
|
|
|
col.prop(md, "use_replace", text="Replace Original")
|
|
|
|
|
|
|
|
col.prop(md, "material_offset", text="Material Offset")
|
|
|
|
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
|
|
|
bpy.utils.register_module(__name__)
|