| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | import bpy | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class View3DPanel(bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-08-22 08:48:01 +00:00
										 |  |  | 	__space_type__ = 'VIEW_3D' | 
					
						
							|  |  |  | 	__region_type__ = 'TOOLS' | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for objectmode **************** | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | class VIEW3D_PT_tools_objectmode(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | 	__context__ = "objectmode" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Object Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Object:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("object.duplicate") | 
					
						
							|  |  |  | 		col.itemO("object.delete") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-27 18:50:10 +00:00
										 |  |  | 		active_object= context.active_object | 
					
						
							|  |  |  | 		if active_object and active_object.type == 'MESH': | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-07-25 10:42:23 +00:00
										 |  |  | 			col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 			col.itemL(text="Shading:") | 
					
						
							| 
									
										
										
										
											2009-07-25 10:42:23 +00:00
										 |  |  | 			col.itemO("object.shade_smooth", text="Smooth") | 
					
						
							|  |  |  | 			col.itemO("object.shade_flat", text="Flat") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Keyframes:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("anim.insert_keyframe_menu", text="Insert") | 
					
						
							|  |  |  | 		col.itemO("anim.delete_keyframe_v3d", text="Remove") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_mesh **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_meshedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "mesh_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Mesh Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Mesh:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("mesh.duplicate") | 
					
						
							|  |  |  | 		col.itemO("mesh.delete") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Modeling:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("mesh.extrude") | 
					
						
							|  |  |  | 		col.itemO("mesh.subdivide") | 
					
						
							| 
									
										
										
										
											2009-09-17 16:47:04 +00:00
										 |  |  | 		col.itemO("mesh.loopcut") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("mesh.spin") | 
					
						
							|  |  |  | 		col.itemO("mesh.screw") | 
					
						
							| 
									
										
										
										
											2009-09-16 19:27:23 +00:00
										 |  |  | 		col.itemO("mesh.merge") | 
					
						
							|  |  |  | 		col.itemO("mesh.rip_move") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Shading:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("mesh.faces_shade_smooth", text="Smooth") | 
					
						
							|  |  |  | 		col.itemO("mesh.faces_shade_flat", text="Flat") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="UV Mapping:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("uv.mapping_menu", text="Unwrap") | 
					
						
							|  |  |  | 		col.itemO("mesh.uvs_rotate") | 
					
						
							|  |  |  | 		col.itemO("mesh.uvs_mirror") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_curve **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_curveedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "curve_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Curve Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Curve:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("curve.duplicate") | 
					
						
							|  |  |  | 		col.itemO("curve.delete") | 
					
						
							|  |  |  | 		col.itemO("curve.cyclic_toggle") | 
					
						
							|  |  |  | 		col.itemO("curve.switch_direction") | 
					
						
							| 
									
										
										
										
											2009-09-08 07:35:07 +00:00
										 |  |  | 		col.itemO("curve.spline_type_set") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Handles:") | 
					
						
							|  |  |  | 		col.item_enumO("curve.handle_type_set", "type", 'AUTOMATIC') | 
					
						
							|  |  |  | 		col.item_enumO("curve.handle_type_set", "type", 'VECTOR') | 
					
						
							|  |  |  | 		col.item_enumO("curve.handle_type_set", "type", 'ALIGN') | 
					
						
							|  |  |  | 		col.item_enumO("curve.handle_type_set", "type", 'FREE_ALIGN') | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							|  |  |  | 		col.itemL(text="Modeling:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("curve.extrude") | 
					
						
							|  |  |  | 		col.itemO("curve.subdivide") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_surface **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_surfaceedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "surface_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Surface Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Curve:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("curve.duplicate") | 
					
						
							|  |  |  | 		col.itemO("curve.delete") | 
					
						
							|  |  |  | 		col.itemO("curve.cyclic_toggle") | 
					
						
							|  |  |  | 		col.itemO("curve.switch_direction") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Modeling:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("curve.extrude") | 
					
						
							|  |  |  | 		col.itemO("curve.subdivide") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_text **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_textedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "text_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Text Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Text Edit:") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col.itemO("font.text_copy", text="Copy") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("font.text_cut", text="Cut") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col.itemO("font.text_paste", text="Paste") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Style:") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col.itemO("font.case_set") | 
					
						
							|  |  |  | 		col.itemO("font.style_toggle") | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_armature **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_armatureedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "armature_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Armature Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Bones:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("armature.bone_primitive_add", text="Add") | 
					
						
							| 
									
										
										
										
											2009-07-25 05:11:28 +00:00
										 |  |  | 		col.itemO("armature.duplicate", text="Duplicate") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("armature.delete", text="Delete") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							|  |  |  | 		col.itemL(text="Modeling:") | 
					
						
							|  |  |  | 		col.itemO("armature.extrude") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | # ********** default tools for editmode_mball **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_mballedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "mball_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Meta Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for editmode_lattice **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_latticeedit(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 20:21:49 +00:00
										 |  |  | 	__context__ = "lattice_edit" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Lattice Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for posemode **************** | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class VIEW3D_PT_tools_posemode(View3DPanel): | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | 	__context__ = "posemode" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 	__label__ = "Pose Tools" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Transform:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("tfm.translate") | 
					
						
							|  |  |  | 		col.itemO("tfm.rotate") | 
					
						
							|  |  |  | 		col.itemO("tfm.resize", text="Scale") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Bones:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("pose.hide", text="Hide") | 
					
						
							|  |  |  | 		col.itemO("pose.reveal", text="Reveal") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-16 19:27:23 +00:00
										 |  |  | 		col.itemL(text="Keyframes:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("anim.insert_keyframe_menu", text="Insert") | 
					
						
							|  |  |  | 		col.itemO("anim.delete_keyframe_v3d", text="Remove") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Pose:") | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemO("pose.copy", text="Copy") | 
					
						
							|  |  |  | 		col.itemO("pose.paste", text="Paste") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Library:") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col.itemO("poselib.pose_add", text="Add") | 
					
						
							|  |  |  | 		col.itemO("poselib.pose_remove", text="Remove") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-09-15 12:45:05 +00:00
										 |  |  | 		col.itemL(text="Repeat:") | 
					
						
							| 
									
										
										
										
											2009-09-10 18:58:31 +00:00
										 |  |  | 		col.itemO("screen.repeat_last") | 
					
						
							|  |  |  | 		col.itemO("screen.repeat_history", text="History...") | 
					
						
							|  |  |  | 		col.itemO("screen.redo_last", text="Tweak...") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | # ********** default tools for paint modes **************** | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | class PaintPanel(bpy.types.Panel): | 
					
						
							| 
									
										
										
										
											2009-08-22 08:48:01 +00:00
										 |  |  | 	__space_type__ = 'VIEW_3D' | 
					
						
							|  |  |  | 	__region_type__ = 'TOOLS' | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 	def paint_settings(self, context): | 
					
						
							| 
									
										
										
										
											2009-07-21 00:55:20 +00:00
										 |  |  | 		ts = context.tool_settings | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 		if context.sculpt_object: | 
					
						
							|  |  |  | 			return ts.sculpt | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		elif context.vertex_paint_object: | 
					
						
							|  |  |  | 			return ts.vertex_paint | 
					
						
							|  |  |  | 		elif context.weight_paint_object: | 
					
						
							|  |  |  | 			return ts.weight_paint | 
					
						
							|  |  |  | 		elif context.texture_paint_object: | 
					
						
							|  |  |  | 			return ts.image_paint | 
					
						
							|  |  |  | 		elif context.particle_edit_object: | 
					
						
							|  |  |  | 			return ts.particle_edit | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 		return False | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | class VIEW3D_PT_tools_brush(PaintPanel): | 
					
						
							|  |  |  | 	__label__ = "Brush" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 	def poll(self, context): | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		return self.paint_settings(context) | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							| 
									
										
										
										
											2009-07-26 08:53:23 +00:00
										 |  |  | 		layout = self.layout | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		settings = self.paint_settings(context) | 
					
						
							|  |  |  | 		brush = settings.brush | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 		if not context.particle_edit_object: | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  | 			col = layout.split().column() | 
					
						
							| 
									
										
										
										
											2009-08-17 15:05:18 +00:00
										 |  |  | 			row = col.row() | 
					
						
							|  |  |  | 			row.template_list(settings, "brushes", settings, "active_brush_index", rows=2) | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  | 				 | 
					
						
							| 
									
										
										
										
											2009-08-17 02:49:31 +00:00
										 |  |  | 			col.template_ID(settings, "brush", new="brush.add") | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  |                  | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		# Particle Mode # | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 		# XXX This needs a check if psys is editable. | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		if context.particle_edit_object: | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			# XXX Select Particle System | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 			layout.column().itemR(settings, "tool", expand=True) | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 			if settings.tool != 'NONE': | 
					
						
							| 
									
										
										
										
											2009-08-16 11:25:18 +00:00
										 |  |  | 				col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 				col.itemR(brush, "size", slider=True) | 
					
						
							|  |  |  | 				col.itemR(brush, "strength", slider=True) | 
					
						
							|  |  |  | 				 | 
					
						
							|  |  |  | 			if settings.tool == 'ADD': | 
					
						
							|  |  |  | 				 | 
					
						
							|  |  |  | 				col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-16 11:25:18 +00:00
										 |  |  | 				col.itemR(settings, "add_interpolate") | 
					
						
							|  |  |  | 				sub = col.column(align=True) | 
					
						
							|  |  |  | 				sub.active = settings.add_interpolate | 
					
						
							|  |  |  | 				sub.itemR(brush, "steps", slider=True) | 
					
						
							|  |  |  | 				sub.itemR(settings, "add_keys", slider=True) | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 			elif settings.tool == 'LENGTH': | 
					
						
							|  |  |  | 				layout.itemR(brush, "length_mode", expand=True) | 
					
						
							|  |  |  | 			elif settings.tool == 'PUFF': | 
					
						
							|  |  |  | 				layout.itemR(brush, "puff_mode", expand=True) | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 		# Sculpt Mode # | 
					
						
							| 
									
										
										
										
											2009-08-17 03:16:14 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  | 		elif context.sculpt_object and settings.brush: | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-17 03:16:14 +00:00
										 |  |  | 			col.itemS() | 
					
						
							| 
									
										
										
										
											2009-09-13 19:37:51 +00:00
										 |  |  | 			col.itemR(brush, "sculpt_tool", expand=True) | 
					
						
							|  |  |  | 			col.itemS() | 
					
						
							|  |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "size", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "size_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			 | 
					
						
							|  |  |  | 			if brush.sculpt_tool != 'GRAB': | 
					
						
							|  |  |  | 				row = col.row(align=True) | 
					
						
							|  |  |  | 				row.itemR(brush, "strength", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 				row.itemR(brush, "strength_pressure", text="") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 				col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 				if brush.sculpt_tool in ('DRAW', 'PINCH', 'INFLATE', 'LAYER', 'CLAY'): | 
					
						
							| 
									
										
										
										
											2009-09-13 19:37:51 +00:00
										 |  |  | 					col.row().itemR(brush, "direction", expand=True) | 
					
						
							| 
									
										
										
										
											2009-08-09 17:21:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 				if brush.sculpt_tool == 'LAYER': | 
					
						
							|  |  |  | 					col.itemR(brush, "persistent") | 
					
						
							|  |  |  | 					col.itemO("sculpt.set_persistent_base") | 
					
						
							| 
									
										
										
										
											2009-08-16 19:50:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-13 19:37:51 +00:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 				 | 
					
						
							|  |  |  | 		# Texture Paint Mode # | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		elif context.texture_paint_object: | 
					
						
							|  |  |  | 			col = layout.column(align=True) | 
					
						
							|  |  |  | 			col.item_enumR(settings, "tool", 'DRAW') | 
					
						
							|  |  |  | 			col.item_enumR(settings, "tool", 'SOFTEN') | 
					
						
							| 
									
										
										
										
											2009-09-08 03:29:28 +00:00
										 |  |  | 			col.item_enumR(settings, "tool", 'CLONE') | 
					
						
							|  |  |  | 			col.item_enumR(settings, "tool", 'SMEAR') | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 				 | 
					
						
							| 
									
										
										
										
											2009-07-26 08:53:23 +00:00
										 |  |  | 			col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			col.itemR(brush, "color", text="") | 
					
						
							| 
									
										
										
										
											2009-08-21 06:23:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 			row = col.row(align=True) | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 			row.itemR(brush, "size", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "size_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			 | 
					
						
							|  |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "strength", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "strength_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 			 | 
					
						
							| 
									
										
										
										
											2009-09-16 18:47:42 +00:00
										 |  |  | 			col.itemR(brush, "blend", text="Blend") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		# Weight Paint Mode # | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 		elif context.weight_paint_object: | 
					
						
							|  |  |  | 			layout.itemR(context.tool_settings, "vertex_group_weight", text="Weight", slider=True) | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			col = layout.column() | 
					
						
							|  |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "size", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "size_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			 | 
					
						
							|  |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "strength", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "strength_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		# Vertex Paint Mode # | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		elif context.vertex_paint_object: | 
					
						
							|  |  |  | 			col = layout.column() | 
					
						
							|  |  |  | 			col.itemR(brush, "color", text="") | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "size", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "size_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-08-07 19:16:59 +00:00
										 |  |  | 			 | 
					
						
							|  |  |  | 			row = col.row(align=True) | 
					
						
							|  |  |  | 			row.itemR(brush, "strength", slider=True) | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "strength_pressure", toggle=True, text="") | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | class VIEW3D_PT_tools_brush_stroke(PaintPanel): | 
					
						
							|  |  |  | 	__label__ = "Stroke" | 
					
						
							|  |  |  | 	__default_closed__ = True | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def poll(self, context): | 
					
						
							|  |  |  | 		settings = self.paint_settings(context) | 
					
						
							| 
									
										
										
										
											2009-08-20 15:25:12 +00:00
										 |  |  | 		return (settings and settings.brush and (context.sculpt_object or | 
					
						
							|  |  |  | 							 context.vertex_paint_object or | 
					
						
							| 
									
										
										
										
											2009-08-21 06:23:38 +00:00
										 |  |  | 							 context.weight_paint_object or | 
					
						
							|  |  |  | 							 context.texture_paint_object)) | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 		layout = self.layout | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | 		settings = self.paint_settings(context) | 
					
						
							|  |  |  | 		brush = settings.brush | 
					
						
							| 
									
										
										
										
											2009-08-21 06:23:38 +00:00
										 |  |  | 		texture_paint = context.texture_paint_object | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-06 16:58:14 +00:00
										 |  |  | 		if context.sculpt_object: | 
					
						
							|  |  |  | 			if brush.sculpt_tool != 'LAYER': | 
					
						
							|  |  |  | 				layout.itemR(brush, "anchored") | 
					
						
							|  |  |  | 			layout.itemR(brush, "rake") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		layout.itemR(brush, "airbrush") | 
					
						
							|  |  |  | 		col = layout.column() | 
					
						
							|  |  |  | 		col.active = brush.airbrush | 
					
						
							|  |  |  | 		col.itemR(brush, "rate", slider=True) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-21 06:23:38 +00:00
										 |  |  | 		if not texture_paint: | 
					
						
							|  |  |  | 			layout.itemR(brush, "smooth_stroke") | 
					
						
							|  |  |  | 			col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-09-06 16:58:14 +00:00
										 |  |  | 			col.active = brush.smooth_stroke | 
					
						
							|  |  |  | 			col.itemR(brush, "smooth_stroke_radius", text="Radius", slider=True) | 
					
						
							|  |  |  | 			col.itemR(brush, "smooth_stroke_factor", text="Factor", slider=True) | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		layout.itemR(brush, "space") | 
					
						
							| 
									
										
										
										
											2009-08-21 06:23:38 +00:00
										 |  |  | 		row = layout.row(align=True) | 
					
						
							|  |  |  | 		row.active = brush.space | 
					
						
							|  |  |  | 		row.itemR(brush, "spacing", text="Distance", slider=True) | 
					
						
							|  |  |  | 		if texture_paint: | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 			row.itemR(brush, "spacing_pressure", toggle=True, text="")	 | 
					
						
							| 
									
										
										
										
											2009-08-21 00:46:36 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | class VIEW3D_PT_tools_brush_curve(PaintPanel): | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 	__label__ = "Curve" | 
					
						
							| 
									
										
										
										
											2009-08-08 17:21:34 +00:00
										 |  |  | 	__default_closed__ = True | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def poll(self, context): | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		settings = self.paint_settings(context) | 
					
						
							|  |  |  | 		return (settings and settings.brush and settings.brush.curve) | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 		layout = self.layout | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		settings = self.paint_settings(context) | 
					
						
							|  |  |  | 		brush = settings.brush | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-16 18:47:42 +00:00
										 |  |  | 		layout.template_curve_mapping(brush, "curve") | 
					
						
							| 
									
										
										
										
											2009-08-14 04:45:29 +00:00
										 |  |  | 		layout.item_menu_enumO("brush.curve_preset", property="shape") | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | class VIEW3D_PT_sculpt_options(PaintPanel): | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 	__label__ = "Options" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def poll(self, context): | 
					
						
							|  |  |  | 		return context.sculpt_object | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-21 00:55:20 +00:00
										 |  |  | 		sculpt = context.tool_settings.sculpt | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemR(sculpt, "partial_redraw", text="Partial Refresh") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "show_brush") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | 		split = self.layout.split() | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column() | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemL(text="Symmetry:") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "symmetry_x", text="X") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "symmetry_y", text="Y") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "symmetry_z", text="Z") | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column() | 
					
						
							|  |  |  | 		col.itemL(text="Lock:") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "lock_x", text="X") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "lock_y", text="Y") | 
					
						
							|  |  |  | 		col.itemR(sculpt, "lock_z", text="Z") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | # ********** default tools for weightpaint **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_weightpaint(View3DPanel): | 
					
						
							|  |  |  | 	__context__ = "weightpaint" | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 	__label__ = "Options" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		wpaint = context.tool_settings.weight_paint | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemL(text="Blend:") | 
					
						
							|  |  |  | 		col.itemR(wpaint, "mode", text="") | 
					
						
							|  |  |  | 		col.itemR(wpaint, "all_faces") | 
					
						
							|  |  |  | 		col.itemR(wpaint, "normals") | 
					
						
							|  |  |  | 		col.itemR(wpaint, "spray") | 
					
						
							|  |  |  | 		col.itemR(wpaint, "vertex_dist", text="Distance") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Commented out because the Apply button isn't an operator yet, making these settings useless | 
					
						
							|  |  |  | #		col.itemL(text="Gamma:") | 
					
						
							|  |  |  | #		col.itemR(wpaint, "gamma", text="") | 
					
						
							|  |  |  | #		col.itemL(text="Multiply:") | 
					
						
							|  |  |  | #		col.itemR(wpaint, "mul", text="") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | # Also missing now: | 
					
						
							|  |  |  | # Soft, Vgroup, X-Mirror and "Clear" Operator. | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # ********** default tools for vertexpaint **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_vertexpaint(View3DPanel): | 
					
						
							|  |  |  | 	__context__ = "vertexpaint" | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 	__label__ = "Options" | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		vpaint = context.tool_settings.vertex_paint | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | 		col.itemL(text="Blend:") | 
					
						
							|  |  |  | 		col.itemR(vpaint, "mode", text="") | 
					
						
							|  |  |  | 		col.itemR(vpaint, "all_faces") | 
					
						
							|  |  |  | 		col.itemR(vpaint, "normals") | 
					
						
							|  |  |  | 		col.itemR(vpaint, "spray") | 
					
						
							|  |  |  | 		col.itemR(vpaint, "vertex_dist", text="Distance") | 
					
						
							|  |  |  | # Commented out because the Apply button isn't an operator yet, making these settings useless | 
					
						
							|  |  |  | #		col.itemL(text="Gamma:") | 
					
						
							|  |  |  | #		col.itemR(vpaint, "gamma", text="") | 
					
						
							|  |  |  | #		col.itemL(text="Multiply:") | 
					
						
							|  |  |  | #		col.itemR(vpaint, "mul", text="") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | # ********** default tools for texturepaint **************** | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-08 03:29:28 +00:00
										 |  |  | class VIEW3D_PT_tools_projectpaint(View3DPanel): | 
					
						
							|  |  |  | 	__context__ = "projectpaint" | 
					
						
							|  |  |  | 	__label__ = "Project Paint" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def poll(self, context): 	  | 
					
						
							|  |  |  | 		return context.tool_settings.image_paint.tool != 'SMEAR' 	  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw_header(self, context): 	  | 
					
						
							|  |  |  | 		layout = self.layout 	  | 
					
						
							|  |  |  | 		ipaint = context.tool_settings.image_paint 	  | 
					
						
							|  |  |  | 		layout.itemR(ipaint, "use_projection", text="") | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-26 03:54:17 +00:00
										 |  |  | 		ipaint = context.tool_settings.image_paint | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		settings = context.tool_settings.image_paint | 
					
						
							| 
									
										
										
										
											2009-08-17 07:35:23 +00:00
										 |  |  | 		use_projection= ipaint.use_projection | 
					
						
							| 
									
										
										
										
											2009-07-26 03:54:17 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column() | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		sub = col.column() | 
					
						
							| 
									
										
										
										
											2009-08-17 07:35:23 +00:00
										 |  |  | 		sub.active = use_projection | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		sub.itemR(ipaint, "use_occlude") | 
					
						
							|  |  |  | 		sub.itemR(ipaint, "use_backface_cull") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-08-17 07:35:23 +00:00
										 |  |  | 		split = layout.split() | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column() | 
					
						
							|  |  |  | 		col.active = (use_projection) | 
					
						
							|  |  |  | 		col.itemR(ipaint, "use_normal_falloff") | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column() | 
					
						
							|  |  |  | 		col.active = (ipaint.use_normal_falloff and use_projection) | 
					
						
							|  |  |  | 		col.itemR(ipaint, "normal_angle", text="") | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-17 07:35:23 +00:00
										 |  |  | 		split = layout.split(percentage=0.7) | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column(align=False) | 
					
						
							|  |  |  | 		col.active = (use_projection) | 
					
						
							|  |  |  | 		col.itemR(ipaint, "use_stencil_layer") | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		col = split.column(align=False) | 
					
						
							|  |  |  | 		col.active = (use_projection and ipaint.use_stencil_layer) | 
					
						
							|  |  |  | 		col.itemR(ipaint, "invert_stencil", text="Inv") | 
					
						
							| 
									
										
										
										
											2009-09-07 11:59:05 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-17 07:35:23 +00:00
										 |  |  | 		col = layout.column() | 
					
						
							|  |  |  | 		sub = col.column() | 
					
						
							|  |  |  | 		sub.active = (settings.tool == 'CLONE') | 
					
						
							|  |  |  | 		sub.itemR(ipaint, "use_clone_layer") | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		sub = col.column() | 
					
						
							| 
									
										
										
										
											2009-08-07 09:45:48 +00:00
										 |  |  | 		sub.itemR(ipaint, "seam_bleed") | 
					
						
							| 
									
										
										
										
											2009-07-24 21:01:41 +00:00
										 |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | # ********** default tools for particle mode **************** | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | class VIEW3D_PT_tools_particlemode(View3DPanel): | 
					
						
							|  |  |  | 	__context__ = "particlemode" | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 	__label__ = "Options" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	def draw(self, context): | 
					
						
							|  |  |  | 		layout = self.layout | 
					
						
							| 
									
										
										
										
											2009-09-01 00:33:39 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		pe = context.tool_settings.particle_edit | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		ob = pe.object | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		row = layout.row() | 
					
						
							|  |  |  | 		row.itemL(text="Edit:") | 
					
						
							|  |  |  | 		row.itemR(pe, "type", text="") | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		if pe.type == 'PARTICLES': | 
					
						
							|  |  |  | 			if ob.particle_systems: | 
					
						
							|  |  |  | 				if len(ob.particle_systems) > 1: | 
					
						
							|  |  |  | 					layout.template_list(ob, "particle_systems", ob, "active_particle_system_index", type='ICONS') | 
					
						
							|  |  |  | 				 | 
					
						
							|  |  |  | 				ptcache = ob.particle_systems[ob.active_particle_system_index].point_cache | 
					
						
							|  |  |  | 		else: | 
					
						
							|  |  |  | 			for md in ob.modifiers: | 
					
						
							|  |  |  | 				if md.type==pe.type: | 
					
						
							|  |  |  | 					ptcache = md.point_cache | 
					
						
							|  |  |  | 					 | 
					
						
							|  |  |  | 		if ptcache and len(ptcache.point_cache_list) > 1: | 
					
						
							|  |  |  | 			layout.template_list(ptcache, "point_cache_list", ptcache, "active_point_cache_index", type='ICONS') | 
					
						
							|  |  |  | 			 | 
					
						
							|  |  |  | 		 | 
					
						
							|  |  |  | 		if not pe.editable: | 
					
						
							|  |  |  | 			layout.itemL(text="Point cache must be baked") | 
					
						
							|  |  |  | 			layout.itemL(text="to enable editing!") | 
					
						
							|  |  |  | 		 | 
					
						
							| 
									
										
										
										
											2009-07-25 22:31:02 +00:00
										 |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		if pe.hair: | 
					
						
							|  |  |  | 			col.active = pe.editable | 
					
						
							|  |  |  | 			col.itemR(pe, "emitter_deflect", text="Deflect emitter") | 
					
						
							|  |  |  | 			sub = col.row() | 
					
						
							|  |  |  | 			sub.active = pe.emitter_deflect | 
					
						
							|  |  |  | 			sub.itemR(pe, "emitter_distance", text="Distance") | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		col.active = pe.editable | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 		col.itemL(text="Keep:") | 
					
						
							|  |  |  | 		col.itemR(pe, "keep_lengths", text="Lenghts") | 
					
						
							|  |  |  | 		col.itemR(pe, "keep_root", text="Root") | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		if not pe.hair: | 
					
						
							|  |  |  | 			col.itemL(text="Correct:") | 
					
						
							|  |  |  | 			col.itemR(pe, "auto_velocity", text="Velocity") | 
					
						
							| 
									
										
										
										
											2009-08-02 16:44:32 +00:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		col = layout.column(align=True) | 
					
						
							| 
									
										
										
										
											2009-08-29 15:20:36 +00:00
										 |  |  | 		col.active = pe.editable | 
					
						
							|  |  |  | 		col.itemL(text="Draw:") | 
					
						
							|  |  |  | 		col.itemR(pe, "draw_step", text="Path Steps") | 
					
						
							|  |  |  | 		if pe.type == 'PARTICLES': | 
					
						
							|  |  |  | 			col.itemR(pe, "draw_particles", text="Particles") | 
					
						
							|  |  |  | 		col.itemR(pe, "fade_time") | 
					
						
							|  |  |  | 		sub = col.row() | 
					
						
							|  |  |  | 		sub.active = pe.fade_time | 
					
						
							|  |  |  | 		sub.itemR(pe, "fade_frames", slider=True) | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_objectmode) | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_meshedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_curveedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_surfaceedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_textedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_armatureedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_mballedit) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_latticeedit) | 
					
						
							| 
									
										
										
										
											2009-07-02 11:24:27 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_posemode) | 
					
						
							| 
									
										
										
										
											2009-07-20 16:39:16 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_brush) | 
					
						
							| 
									
										
										
										
											2009-08-18 01:19:00 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_brush_stroke) | 
					
						
							| 
									
										
										
										
											2009-07-24 11:14:59 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_brush_curve) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_sculpt_options) | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_vertexpaint) | 
					
						
							|  |  |  | bpy.types.register(VIEW3D_PT_tools_weightpaint) | 
					
						
							| 
									
										
										
										
											2009-09-08 03:29:28 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_projectpaint) | 
					
						
							| 
									
										
										
										
											2009-08-15 19:40:09 +00:00
										 |  |  | bpy.types.register(VIEW3D_PT_tools_particlemode) |