Merge with -r 22620:23107.
[blender.git] / release / ui / space_view3d.py
1
2 import bpy
3
4 # ********** Header **********
5
6 class VIEW3D_HT_header(bpy.types.Header):
7         __space_type__ = 'VIEW_3D'
8
9         def draw(self, context):
10                 layout = self.layout
11                 
12                 view = context.space_data
13                 mode_string = context.mode
14                 edit_object = context.edit_object
15                 object = context.active_object
16                 
17                 row = layout.row(align=True)
18                 row.template_header()
19
20                 # Menus
21                 if context.area.show_menus:
22                         sub = row.row(align=True)
23
24                         sub.itemM("VIEW3D_MT_view")
25                         
26                         # Select Menu
27                         if mode_string not in ('EDIT_TEXT', 'SCULPT', 'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'):
28                                 sub.itemM("VIEW3D_MT_select_%s" % mode_string)
29                         
30                         if edit_object:
31                                 sub.itemM("VIEW3D_MT_edit_%s" % edit_object.type)
32                         elif object:
33                                 ob_mode_string = object.mode
34                                 
35                                 if mode_string not in ['PAINT_WEIGHT', 'PAINT_TEXTURE']:
36                                         sub.itemM("VIEW3D_MT_%s" % mode_string)
37
38                 layout.template_header_3D()
39
40 # ********** Menu **********
41
42 # ********** Utilities **********
43
44 class VIEW3D_MT_showhide(bpy.types.Menu):
45         __space_type__ = 'VIEW_3D'
46         __label__ = "Show/Hide"
47         _operator_name = ""
48
49         def draw(self, context):
50                 layout = self.layout
51                 
52                 layout.itemO("%s.reveal" % self._operator_name, text="Show Hidden")
53                 layout.itemO("%s.hide" % self._operator_name, text="Hide Selected")
54                 layout.item_booleanO("%s.hide" % self._operator_name, "unselected", True, text="Hide Unselected")
55
56 class VIEW3D_MT_snap(bpy.types.Menu):
57         __space_type__ = 'VIEW_3D'
58         __label__ = "Snap"
59
60         def draw(self, context):
61                 layout = self.layout
62                 
63                 layout.itemO("view3d.snap_selected_to_grid", text="Selection to Grid")
64                 layout.itemO("view3d.snap_selected_to_cursor", text="Selection to Cursor")
65                 layout.itemO("view3d.snap_selected_to_center", text="Selection to Center")
66                 
67                 layout.itemS()
68                 
69                 layout.itemO("view3d.snap_cursor_to_selected", text="Cursor to Selected")
70                 layout.itemO("view3d.snap_cursor_to_grid", text="Cursor to Grid")
71                 layout.itemO("view3d.snap_cursor_to_active", text="Cursor to Active")
72
73 # ********** View menus **********
74
75 class VIEW3D_MT_view(bpy.types.Menu):
76         __space_type__ = 'VIEW_3D'
77         __label__ = "View"
78
79         def draw(self, context):
80                 layout = self.layout
81
82                 layout.itemO("view3d.properties", icon='ICON_MENU_PANEL')
83                 layout.itemO("view3d.toolbar", icon='ICON_MENU_PANEL')
84                 
85                 layout.itemS()
86                 
87                 layout.item_enumO("view3d.viewnumpad", "type", 'CAMERA')
88                 layout.item_enumO("view3d.viewnumpad", "type", 'TOP')
89                 layout.item_enumO("view3d.viewnumpad", "type", 'FRONT')
90                 layout.item_enumO("view3d.viewnumpad", "type", 'RIGHT')
91                 
92                 layout.itemM("VIEW3D_MT_view_cameras", text="Cameras")
93                 
94                 layout.itemS()
95                 
96                 layout.itemO("view3d.view_persportho")
97                 
98                 layout.itemS()
99                 
100                 layout.itemM("VIEW3D_MT_view_navigation")
101                 layout.itemM("VIEW3D_MT_view_align")
102                 
103                 layout.itemS()
104
105                 layout.operator_context = "INVOKE_REGION_WIN"
106                 
107                 layout.itemO("view3d.clip_border", text="Clipping Border...")
108                 layout.itemO("view3d.zoom_border", text="Zoom Border...")
109                 
110                 layout.itemS()
111                 
112                 layout.itemO("view3d.view_center")
113                 layout.itemO("view3d.view_all")
114                 
115                 layout.itemS()
116                 
117                 layout.itemO("screen.region_foursplit", text="Toggle Quad View")
118                 layout.itemO("screen.screen_full_area", text="Toggle Full Screen")
119
120 class VIEW3D_MT_view_navigation(bpy.types.Menu):
121         __space_type__ = 'VIEW_3D'
122         __label__ = "Navigation"
123
124         def draw(self, context):
125                 layout = self.layout
126
127                 layout.items_enumO("view3d.view_orbit", "type")
128                 
129                 layout.itemS()
130                 
131                 layout.items_enumO("view3d.view_pan", "type")
132                 
133                 layout.itemS()
134                 
135                 layout.item_floatO("view3d.zoom", "delta", 1.0, text="Zoom In")
136                 layout.item_floatO("view3d.zoom", "delta", -1.0, text="Zoom Out")
137
138 class VIEW3D_MT_view_align(bpy.types.Menu):
139         __space_type__ = 'VIEW_3D'
140         __label__ = "Align View"
141
142         def draw(self, context):
143                 layout = self.layout
144                 
145                 layout.itemO("view3d.view_center")
146                 
147 class VIEW3D_MT_view_cameras(bpy.types.Menu):
148         __space_type__ = 'VIEW_3D'
149         __label__ = "Cameras"
150
151         def draw(self, context):
152                 layout = self.layout
153
154 # ********** Select menus, suffix from context.mode **********
155
156 class VIEW3D_MT_select_OBJECT(bpy.types.Menu):
157         __space_type__ = 'VIEW_3D'
158         __label__ = "Select"
159
160         def draw(self, context):
161                 layout = self.layout
162
163                 layout.itemO("view3d.select_border")
164
165                 layout.itemS()
166
167                 layout.itemO("object.select_all_toggle", text="Select/Deselect All")
168                 layout.itemO("object.select_inverse", text="Inverse")
169                 layout.itemO("object.select_random", text="Random")
170                 layout.itemO("object.select_mirror", text="Mirror")
171                 layout.itemO("object.select_by_layer", text="Select All by Layer")
172                 layout.item_enumO("object.select_by_type", "type", "", text="Select All by Type...")
173                 layout.itemO("object.select_grouped", text="Select Grouped...")
174
175 class VIEW3D_MT_select_POSE(bpy.types.Menu):
176         __space_type__ = 'VIEW_3D'
177         __label__ = "Select"
178
179         def draw(self, context):
180                 layout = self.layout
181
182                 layout.itemO("view3d.select_border", text="Border Select...")
183
184                 layout.itemS()
185                 
186                 layout.itemO("pose.select_all_toggle", text="Select/Deselect All")
187                 layout.itemO("pose.select_inverse", text="Inverse")
188                 layout.itemO("pose.select_constraint_target", text="Constraint Target")
189                 layout.itemO("pose.select_linked", text="Linked")
190                 
191                 layout.itemS()
192                 
193                 layout.item_enumO("pose.select_hierarchy", "direction", 'PARENT')
194                 layout.item_enumO("pose.select_hierarchy", "direction", 'CHILD')
195                 
196                 layout.itemS()
197                 
198                 props = layout.itemO("pose.select_hierarchy", properties=True, text="Extend Parent")
199                 props.extend = True
200                 props.direction = 'PARENT'
201
202                 props = layout.itemO("pose.select_hierarchy", properties=True, text="Extend Child")
203                 props.extend = True
204                 props.direction = 'CHILD'
205
206 class VIEW3D_MT_select_PARTICLE(bpy.types.Menu):
207         __space_type__ = 'VIEW_3D'
208         __label__ = "Select"
209
210         def draw(self, context):
211                 layout = self.layout
212
213                 layout.itemO("view3d.select_border")
214
215                 layout.itemS()
216                 
217                 layout.itemO("particle.select_all_toggle", text="Select/Deselect All")
218                 layout.itemO("particle.select_linked")
219                 
220                 layout.itemS()
221                 
222                 layout.itemO("particle.select_more")
223                 layout.itemO("particle.select_less")
224
225 class VIEW3D_MT_select_EDIT_MESH(bpy.types.Menu):
226         __space_type__ = 'VIEW_3D'
227         __label__ = "Select"
228
229         def draw(self, context):
230                 layout = self.layout
231
232                 layout.itemO("view3d.select_border", text="Border Select...")
233
234                 layout.itemS()
235
236                 layout.itemO("mesh.select_all_toggle", text="Select/Deselect All")
237                 layout.itemO("mesh.select_inverse", text="Inverse")
238
239                 layout.itemS()
240
241                 layout.itemO("mesh.select_random", text="Random...")
242                 layout.itemO("mesh.edges_select_sharp", text="Sharp Edges")
243                 layout.itemO("mesh.faces_select_linked_flat", text="Linked Flat Faces")
244
245                 layout.itemS()
246
247                 layout.item_enumO("mesh.select_by_number_vertices", "type", 'TRIANGLES', text="Triangles")
248                 layout.item_enumO("mesh.select_by_number_vertices", "type", 'QUADS', text="Quads")
249                 layout.item_enumO("mesh.select_by_number_vertices", "type", 'OTHER', text="Loose Verts/Edges")
250                 layout.itemO("mesh.select_similar", text="Similar...")
251
252                 layout.itemS()
253
254                 layout.itemO("mesh.select_less", text="Less")
255                 layout.itemO("mesh.select_more", text="More")
256
257                 layout.itemS()
258
259                 layout.itemO("mesh.select_linked", text="Linked")
260                 layout.itemO("mesh.select_vertex_path", text="Vertex Path")
261                 layout.itemO("mesh.loop_multi_select", text="Edge Loop")
262                 layout.item_booleanO("mesh.loop_multi_select", "ring", True, text="Edge Ring")
263
264                 layout.itemS()
265
266                 layout.itemO("mesh.loop_to_region")
267                 layout.itemO("mesh.region_to_loop")
268
269 class VIEW3D_MT_select_EDIT_CURVE(bpy.types.Menu):
270         __space_type__ = 'VIEW_3D'
271         __label__ = "Select"
272
273         def draw(self, context):
274                 layout = self.layout
275
276                 layout.itemO("view3d.select_border", text="Border Select...")
277                 layout.itemO("view3d.select_circle", text="Circle Select...")
278
279                 layout.itemS()
280                 
281                 layout.itemO("curve.select_all_toggle", text="Select/Deselect All")
282                 layout.itemO("curve.select_inverse")
283                 layout.itemO("curve.select_random")
284                 layout.itemO("curve.select_every_nth")
285
286                 layout.itemS()
287                 
288                 layout.itemO("curve.de_select_first")
289                 layout.itemO("curve.de_select_last")
290                 layout.itemO("curve.select_next")
291                 layout.itemO("curve.select_previous")
292
293                 layout.itemS()
294                 
295                 layout.itemO("curve.select_more")
296                 layout.itemO("curve.select_less")
297
298 class VIEW3D_MT_select_EDIT_SURFACE(bpy.types.Menu):
299         __space_type__ = 'VIEW_3D'
300         __label__ = "Select"
301
302         def draw(self, context):
303                 layout = self.layout
304
305                 layout.itemO("view3d.select_border", text="Border Select...")
306                 layout.itemO("view3d.select_circle", text="Circle Select...")
307
308                 layout.itemS()
309                 
310                 layout.itemO("curve.select_all_toggle", text="Select/Deselect All")
311                 layout.itemO("curve.select_inverse")
312                 layout.itemO("curve.select_random")
313                 layout.itemO("curve.select_every_nth")
314
315                 layout.itemS()
316                 
317                 layout.itemO("curve.select_row")
318
319                 layout.itemS()
320                 
321                 layout.itemO("curve.select_more")
322                 layout.itemO("curve.select_less")
323
324 class VIEW3D_MT_select_EDIT_METABALL(bpy.types.Menu):
325         __space_type__ = 'VIEW_3D'
326         __label__ = "Select"
327
328         def draw(self, context):
329                 layout = self.layout
330
331                 layout.itemO("view3d.select_border")
332                 
333                 layout.itemS()
334                 
335                 layout.itemO("mball.select_deselect_all_metaelems")
336                 layout.itemO("mball.select_inverse_metaelems")
337                 
338                 layout.itemS()
339                 
340                 layout.itemO("mball.select_random_metaelems")
341
342 class VIEW3D_MT_select_EDIT_LATTICE(bpy.types.Menu):
343         __space_type__ = 'VIEW_3D'
344         __label__ = "Select"
345
346         def draw(self, context):
347                 layout = self.layout
348
349                 layout.itemO("view3d.select_border")
350
351                 layout.itemS()
352                 
353                 layout.itemO("lattice.select_all_toggle", text="Select/Deselect All")
354
355 class VIEW3D_MT_select_EDIT_ARMATURE(bpy.types.Menu):
356         __space_type__ = 'VIEW_3D'
357         __label__ = "Select"
358
359         def draw(self, context):
360                 layout = self.layout
361
362                 layout.itemO("view3d.select_border", text="Border Select...")
363
364                 layout.itemS()
365                 
366                 layout.itemO("armature.select_all_toggle", text="Select/Deselect All")
367                 layout.itemO("armature.select_inverse", text="Inverse")
368
369                 layout.itemS()
370                 
371                 layout.item_enumO("armature.select_hierarchy", "direction", 'PARENT', text="Parent")
372                 layout.item_enumO("armature.select_hierarchy", "direction", 'CHILD', text="Child")
373                 
374                 layout.itemS()
375                 
376                 props = layout.itemO("armature.select_hierarchy", properties=True, text="Extend Parent")
377                 props.extend = True
378                 props.direction = 'PARENT'
379
380                 props = layout.itemO("armature.select_hierarchy", properties=True, text="Extend Child")
381                 props.extend = True
382                 props.direction = 'CHILD'
383
384 class VIEW3D_MT_select_FACE(bpy.types.Menu):# XXX no matching enum
385         __space_type__ = 'VIEW_3D'
386         __label__ = "Select"
387
388         def draw(self, context):
389                 layout = self.layout
390
391                 layout.view3d_select_faceselmenu()
392
393 # ********** Object menu **********
394
395 class VIEW3D_MT_OBJECT(bpy.types.Menu):
396         __space_type__ = 'VIEW_3D'
397         __context__ = "objectmode"
398         __label__ = "Object"
399
400         def draw(self, context):
401                 layout = self.layout
402
403                 layout.itemM("VIEW3D_MT_OBJECT_clear")
404                 layout.itemM("VIEW3D_MT_snap")
405                 
406                 layout.itemS()
407                 
408                 layout.itemO("anim.insert_keyframe_menu", text="Insert Keyframe...")
409                 layout.itemO("anim.delete_keyframe_v3d", text="Delete Keyframe...")
410                 
411                 layout.itemS()
412                 
413                 layout.itemO("object.duplicate")
414                 layout.item_booleanO("object.duplicate", "linked", True, text="Duplicate Linked")
415                 layout.itemO("object.delete", text="Delete...")
416                 layout.itemO("object.proxy_make", text="Make Proxy...")
417                 
418                 layout.itemS()
419                 
420                 layout.itemM("VIEW3D_MT_OBJECT_parent")
421                 layout.itemM("VIEW3D_MT_OBJECT_track")
422                 layout.itemM("VIEW3D_MT_OBJECT_group")
423                 layout.itemM("VIEW3D_MT_OBJECT_constraints")
424                 
425                 layout.itemS()
426                 
427                 layout.itemO("object.join")
428                 
429                 layout.itemS()
430                 
431                 layout.itemM("VIEW3D_MT_OBJECT_showhide")
432                 
433 class VIEW3D_MT_OBJECT_clear(bpy.types.Menu):
434         __space_type__ = 'VIEW_3D'
435         __label__ = "Clear"
436
437         def draw(self, context):
438                 layout = self.layout
439                 
440                 layout.itemO("object.location_clear", text="Location")
441                 layout.itemO("object.rotation_clear", text="Rotation")
442                 layout.itemO("object.scale_clear", text="Scale")
443                 layout.itemO("object.origin_clear", text="Origin")
444                 
445 class VIEW3D_MT_OBJECT_parent(bpy.types.Menu):
446         __space_type__ = 'VIEW_3D'
447         __label__ = "Parent"
448
449         def draw(self, context):
450                 layout = self.layout
451                 
452                 layout.itemO("object.parent_set", text="Set")
453                 layout.itemO("object.parent_clear", text="Clear")
454                 
455 class VIEW3D_MT_OBJECT_track(bpy.types.Menu):
456         __space_type__ = 'VIEW_3D'
457         __label__ = "Track"
458
459         def draw(self, context):
460                 layout = self.layout
461                 
462                 layout.itemO("object.track_set", text="Set")
463                 layout.itemO("object.track_clear", text="Clear")
464                 
465 class VIEW3D_MT_OBJECT_group(bpy.types.Menu):
466         __space_type__ = 'VIEW_3D'
467         __label__ = "Group"
468
469         def draw(self, context):
470                 layout = self.layout
471                 
472                 layout.itemO("group.group_create")
473                 layout.itemO("group.objects_remove")
474                 
475                 layout.itemS()
476                 
477                 layout.itemO("group.objects_add_active")
478                 layout.itemO("group.objects_remove_active")
479                 
480 class VIEW3D_MT_OBJECT_constraints(bpy.types.Menu):
481         __space_type__ = 'VIEW_3D'
482         __label__ = "Constraints"
483
484         def draw(self, context):
485                 layout = self.layout
486                 
487                 layout.itemO("object.constraint_add_with_targets")
488                 layout.itemO("object.constraints_clear")
489                 
490 class VIEW3D_MT_OBJECT_showhide(bpy.types.Menu):
491         __space_type__ = 'VIEW_3D'
492         __label__ = "Show/Hide"
493
494         def draw(self, context):
495                 layout = self.layout
496                 
497                 layout.itemO("object.restrictview_clear", text="Show Hidden")
498                 layout.itemO("object.restrictview_set", text="Hide Selected")
499                 layout.item_booleanO("object.restrictview_set", "unselected", True, text="Hide Unselected")
500
501 # ********** Vertex paint menu **********       
502         
503 class VIEW3D_MT_PAINT_VERTEX(bpy.types.Menu):
504         __space_type__ = 'VIEW_3D'
505         __label__ = "Paint"
506
507         def draw(self, context):
508                 layout = self.layout
509                 
510                 sculpt = context.tool_settings.sculpt
511
512                 layout.itemO("paint.vertex_color_set")
513                 props = layout.itemO("paint.vertex_color_set", text="Set Selected Vertex Colors", properties=True)
514                 props.selected = True
515
516 # ********** Sculpt menu **********     
517         
518 class VIEW3D_MT_SCULPT(bpy.types.Menu):
519         __space_type__ = 'VIEW_3D'
520         __label__ = "Sculpt"
521
522         def draw(self, context):
523                 layout = self.layout
524                 
525                 sculpt = context.tool_settings.sculpt
526                 brush = context.tool_settings.sculpt.brush
527                 
528                 layout.itemR(sculpt, "symmetry_x")
529                 layout.itemR(sculpt, "symmetry_y")
530                 layout.itemR(sculpt, "symmetry_z")
531                 layout.itemS()
532                 layout.itemR(sculpt, "lock_x")
533                 layout.itemR(sculpt, "lock_y")
534                 layout.itemR(sculpt, "lock_z")
535                 layout.itemS()
536                 layout.item_menu_enumO("brush.curve_preset", property="shape")
537                 layout.itemS()
538                 
539                 if brush.sculpt_tool != 'GRAB':
540                         layout.itemR(brush, "airbrush")
541                         
542                         if brush.sculpt_tool != 'LAYER':
543                                 layout.itemR(brush, "anchored")
544                         
545                         if brush.sculpt_tool in ('DRAW', 'PINCH', 'INFLATE', 'LAYER', 'CLAY'):
546                                 layout.itemR(brush, "flip_direction")
547
548                         if brush.sculpt_tool == 'LAYER':
549                                 layout.itemR(brush, "persistent")
550                                 layout.itemO("sculpt.set_persistent_base")
551
552 # ********** Particle menu **********   
553         
554 class VIEW3D_MT_PARTICLE(bpy.types.Menu):
555         __space_type__ = 'VIEW_3D'
556         __label__ = "Particle"
557
558         def draw(self, context):
559                 layout = self.layout
560                 
561                 particle_edit = context.tool_settings.particle_edit
562                 
563                 layout.itemO("particle.mirror")
564                 
565                 layout.itemS()
566                 
567                 layout.itemO("particle.remove_doubles")
568                 layout.itemO("particle.delete")
569                 
570                 if particle_edit.selection_mode == 'POINT':
571                         layout.itemO("particle.subdivide")
572                 
573                 layout.itemO("particle.rekey")
574                 
575                 layout.itemS()
576                 
577                 layout.itemM("VIEW3D_MT_PARTICLE_showhide")
578
579 class VIEW3D_MT_PARTICLE_showhide(VIEW3D_MT_showhide):
580         _operator_name = "particle"
581
582 # ********** Pose Menu **********
583
584 class VIEW3D_MT_POSE(bpy.types.Menu):
585         __space_type__ = 'VIEW_3D'
586         __label__ = "Pose"
587
588         def draw(self, context):
589                 layout = self.layout
590                 
591                 arm = context.active_object.data
592                 
593                 if arm.drawtype in ('BBONE', 'ENVELOPE'):
594                         layout.item_enumO("tfm.transform", "mode", 'BONESIZE', text="Scale Envelope Distance")
595                 
596                 layout.itemM("VIEW3D_MT_POSE_transform")
597                 
598                 layout.itemS()
599                 
600                 layout.itemO("anim.insert_keyframe_menu", text="Insert Keyframe...")
601                 layout.itemO("anim.delete_keyframe_v3d", text="Delete Keyframe...")
602                 
603                 layout.itemS()
604                 
605                 layout.itemO("pose.apply")
606                 
607                 layout.itemS()
608                 
609                 layout.itemO("pose.copy")
610                 layout.itemO("pose.paste")
611                 layout.item_booleanO("pose.paste", "flipped", True, text="Paste X-Flipped Pose")
612                 
613                 layout.itemS()
614                 
615                 layout.itemM("VIEW3D_MT_POSE_pose")
616                 layout.itemM("VIEW3D_MT_POSE_motion")
617                 layout.itemM("VIEW3D_MT_POSE_group")
618                 
619                 layout.itemS()
620                 
621                 layout.itemM("VIEW3D_MT_POSE_ik")
622                 layout.itemM("VIEW3D_MT_POSE_constraints")
623                 
624                 layout.itemS()
625                 
626                 layout.operator_context = "EXEC_AREA"
627                 layout.item_enumO("pose.autoside_names", "axis", 'XAXIS', text="AutoName Left/Right")
628                 layout.item_enumO("pose.autoside_names", "axis", 'YAXIS', text="AutoName Front/Back")
629                 layout.item_enumO("pose.autoside_names", "axis", 'ZAXIS', text="AutoName Top/Bottom")
630                 
631                 layout.itemO("pose.flip_names")
632                 
633                 layout.itemS()
634                 
635                 layout.operator_context = "INVOKE_AREA"
636                 layout.itemO("pose.armature_layers", text="Change Armature Layers...")
637                 layout.itemO("pose.bone_layers", text="Change Bone Layers...")
638                 
639                 layout.itemS()
640                 
641                 layout.itemM("VIEW3D_MT_POSE_showhide")
642                 layout.item_menu_enumO("pose.flags_set", 'mode', text="Bone Settings")
643
644 class VIEW3D_MT_POSE_transform(bpy.types.Menu):
645         __space_type__ = 'VIEW_3D'
646         __label__ = "Clear Transform"
647
648         def draw(self, context):
649                 layout = self.layout
650                 
651                 layout.itemL(text="User Transform")
652                 
653                 layout.itemO("pose.loc_clear", text="Location")
654                 layout.itemO("pose.rot_clear", text="Rotation")
655                 layout.itemO("pose.scale_clear", text="Scale")
656                 
657                 layout.itemL(text="Origin")
658                 
659 class VIEW3D_MT_POSE_pose(bpy.types.Menu):
660         __space_type__ = 'VIEW_3D'
661         __label__ = "Pose Library"
662
663         def draw(self, context):
664                 layout = self.layout
665                 
666                 layout.itemO("poselib.browse_interactive", text="Browse Poses...")
667                 
668                 layout.itemS()
669                 
670                 layout.itemO("poselib.pose_add", text="Add Pose...")
671                 layout.itemO("poselib.pose_rename", text="Rename Pose...")
672                 layout.itemO("poselib.pose_remove", text="Remove Pose...")
673
674 class VIEW3D_MT_POSE_motion(bpy.types.Menu):
675         __space_type__ = 'VIEW_3D'
676         __label__ = "Motion Paths"
677
678         def draw(self, context):
679                 layout = self.layout
680                 
681                 layout.itemO("pose.paths_calculate", text="Calculate")
682                 layout.itemO("pose.paths_clear", text="Clear")
683                 
684 class VIEW3D_MT_POSE_group(bpy.types.Menu):
685         __space_type__ = 'VIEW_3D'
686         __label__ = "Bone Groups"
687
688         def draw(self, context):
689                 layout = self.layout
690                 layout.itemO("pose.group_add")
691                 layout.itemO("pose.group_remove")
692                 
693                 layout.itemS()
694                 
695                 layout.itemO("pose.group_assign")
696                 layout.itemO("pose.group_unassign")
697                 
698                 
699 class VIEW3D_MT_POSE_ik(bpy.types.Menu):
700         __space_type__ = 'VIEW_3D'
701         __label__ = "Inverse Kinematics"
702
703         def draw(self, context):
704                 layout = self.layout
705                 
706                 layout.itemO("pose.ik_add")
707                 layout.itemO("pose.ik_clear")
708                 
709 class VIEW3D_MT_POSE_constraints(bpy.types.Menu):
710         __space_type__ = 'VIEW_3D'
711         __label__ = "Constraints"
712
713         def draw(self, context):
714                 layout = self.layout
715                 
716                 layout.itemO("pose.constraint_add_with_targets", text="Add (With Targets)...")
717                 layout.itemO("pose.constraints_clear")
718                 
719 class VIEW3D_MT_POSE_showhide(VIEW3D_MT_showhide):
720         _operator_name = "pose"
721
722 # ********** Edit Menus, suffix from ob.type **********
723
724 # Edit MESH
725 class VIEW3D_MT_edit_MESH(bpy.types.Menu):
726         __space_type__ = 'VIEW_3D'
727         __label__ = "Mesh"
728
729         def draw(self, context):
730                 layout = self.layout
731                 
732                 settings = context.tool_settings
733
734                 layout.itemO("ed.undo")
735                 layout.itemO("ed.redo")
736                 
737                 layout.itemS()
738                 
739                 layout.itemM("VIEW3D_MT_snap")
740                 
741                 layout.itemS()
742                 
743                 layout.itemO("uv.mapping_menu", text="UV Unwrap...")
744                 
745                 layout.itemS()
746                 
747                 layout.itemO("mesh.extrude")
748                 layout.itemO("mesh.duplicate")
749                 layout.itemO("mesh.delete", text="Delete...")
750                 
751                 layout.itemS()
752                 
753                 layout.itemM("VIEW3D_MT_edit_MESH_vertices")
754                 layout.itemM("VIEW3D_MT_edit_MESH_edges")
755                 layout.itemM("VIEW3D_MT_edit_MESH_faces")
756                 layout.itemM("VIEW3D_MT_edit_MESH_normals")
757                 
758                 layout.itemS()
759                 
760                 layout.itemR(settings, "automerge_editing")
761                 layout.itemR(settings, "proportional_editing")
762                 layout.item_menu_enumR(settings, "proportional_editing_falloff")
763                 
764                 layout.itemS()
765                 
766                 layout.itemM("VIEW3D_MT_edit_MESH_showhide")
767
768 class VIEW3D_MT_edit_MESH_vertices(bpy.types.Menu):
769         __space_type__ = 'VIEW_3D'
770         __label__ = "Vertices"
771
772         def draw(self, context):
773                 layout = self.layout
774                 
775                 layout.itemO("mesh.merge")
776                 layout.itemO("mesh.rip")
777                 layout.itemO("mesh.split")
778                 layout.itemO("mesh.separate")
779
780                 layout.itemS()
781                 
782                 layout.itemO("mesh.vertices_smooth")
783                 layout.itemO("mesh.remove_doubles")
784
785 class VIEW3D_MT_edit_MESH_edges(bpy.types.Menu):
786         __space_type__ = 'VIEW_3D'
787         __label__ = "Edges"
788
789         def draw(self, context):
790                 layout = self.layout
791
792                 layout.itemO("mesh.edge_face_add")
793                 layout.itemO("mesh.subdivide")
794
795                 layout.itemS()
796                 
797                 layout.itemO("mesh.mark_seam")
798                 layout.item_booleanO("mesh.mark_seam", "clear", True, text="Clear Seam")
799                 
800                 layout.itemS()
801                 
802                 layout.itemO("mesh.mark_sharp")
803                 layout.item_booleanO("mesh.mark_sharp", "clear", True, text="Clear Sharp")
804                 
805                 layout.itemS()
806                 
807                 layout.item_enumO("mesh.edge_rotate", "direction", 'CW', text="Rotate Edge CW")
808                 layout.item_enumO("mesh.edge_rotate", "direction", 'CCW', text="Rotate Edge CCW")
809
810 class VIEW3D_MT_edit_MESH_faces(bpy.types.Menu):
811         __space_type__ = 'VIEW_3D'
812         __label__ = "Faces"
813
814         def draw(self, context):
815                 layout = self.layout
816
817                 layout.itemO("mesh.edge_face_add")
818                 layout.itemO("mesh.fill")
819                 layout.itemO("mesh.beauty_fill")
820
821                 layout.itemS()
822                 
823                 layout.itemO("mesh.quads_convert_to_tris")
824                 layout.itemO("mesh.tris_convert_to_quads")
825                 layout.itemO("mesh.edge_flip")
826                 
827                 layout.itemS()
828                 
829                 layout.itemO("mesh.faces_shade_smooth")
830                 layout.itemO("mesh.faces_shade_flat")
831
832 class VIEW3D_MT_edit_MESH_normals(bpy.types.Menu):
833         __space_type__ = 'VIEW_3D'
834         __label__ = "Normals"
835
836         def draw(self, context):
837                 layout = self.layout
838
839                 layout.itemO("mesh.normals_make_consistent", text="Recalculate Outside")
840                 layout.item_booleanO("mesh.normals_make_consistent", "inside", True, text="Recalculate Inside")
841
842                 layout.itemS()
843                 
844                 layout.itemO("mesh.flip_normals")
845                 
846 class VIEW3D_MT_edit_MESH_showhide(VIEW3D_MT_showhide):
847         _operator_name = "mesh"
848
849 # Edit CURVE
850
851 # draw_CURVE is used by VIEW3D_MT_edit_CURVE and VIEW3D_MT_edit_SURFACE
852 def draw_CURVE(self, context):
853         layout = self.layout
854         
855         settings = context.tool_settings
856         
857         layout.itemM("VIEW3D_MT_snap")
858         
859         layout.itemS()
860         
861         layout.itemO("curve.extrude")
862         layout.itemO("curve.duplicate")
863         layout.itemO("curve.separate")
864         layout.itemO("curve.make_segment")
865         layout.itemO("curve.cyclic_toggle")
866         layout.itemO("curve.delete", text="Delete...")
867         
868         layout.itemS()
869         
870         layout.itemM("VIEW3D_MT_edit_CURVE_ctrlpoints")
871         layout.itemM("VIEW3D_MT_edit_CURVE_segments")
872         
873         layout.itemS()
874         
875         layout.itemR(settings, "proportional_editing")
876         layout.item_menu_enumR(settings, "proportional_editing_falloff")
877         
878         layout.itemS()
879         
880         layout.itemM("VIEW3D_MT_edit_CURVE_showhide")
881
882 class VIEW3D_MT_edit_CURVE(bpy.types.Menu):
883         __space_type__ = 'VIEW_3D'
884         __label__ = "Curve"
885
886         draw = draw_CURVE
887         
888 class VIEW3D_MT_edit_CURVE_ctrlpoints(bpy.types.Menu):
889         __space_type__ = 'VIEW_3D'
890         __label__ = "Control Points"
891
892         def draw(self, context):
893                 layout = self.layout
894                 
895                 edit_object = context.edit_object
896                 
897                 if edit_object.type == 'CURVE':
898                         layout.item_enumO("tfm.transform", "mode", 'TILT')
899                         layout.itemO("curve.tilt_clear")
900                         layout.itemO("curve.separate")
901                         
902                         layout.itemS()
903                         
904                         layout.item_menu_enumO("curve.handle_type_set", "type")
905                 
906 class VIEW3D_MT_edit_CURVE_segments(bpy.types.Menu):
907         __space_type__ = 'VIEW_3D'
908         __label__ = "Segments"
909
910         def draw(self, context):
911                 layout = self.layout
912                 
913                 layout.itemO("curve.subdivide")
914                 layout.itemO("curve.switch_direction")
915
916 class VIEW3D_MT_edit_CURVE_showhide(VIEW3D_MT_showhide):
917         _operator_name = "curve"
918
919 # Edit SURFACE
920 class VIEW3D_MT_edit_SURFACE(bpy.types.Menu):
921         __space_type__ = 'VIEW_3D'
922         __label__ = "Surface"
923
924         draw = draw_CURVE
925
926 # Edit TEXT
927 class VIEW3D_MT_edit_TEXT(bpy.types.Menu):
928         __space_type__ = 'VIEW_3D'
929         __label__ = "Text"
930
931         def draw(self, context):
932                 layout = self.layout
933                 
934                 layout.itemO("font.file_paste")
935                 
936                 layout.itemS()
937                 
938                 layout.itemM("VIEW3D_MT_edit_TEXT_chars")
939
940 class VIEW3D_MT_edit_TEXT_chars(bpy.types.Menu):
941         __space_type__ = 'VIEW_3D'
942         __label__ = "Special Characters"
943
944         def draw(self, context):
945                 layout = self.layout
946                 
947                 layout.item_stringO("font.text_insert", "text", b'\xC2\xA9'.decode(), text="Copyright|Alt C")
948                 layout.item_stringO("font.text_insert", "text", b'\xC2\xAE'.decode(), text="Registered Trademark|Alt R")
949                 
950                 layout.itemS()
951                 
952                 layout.item_stringO("font.text_insert", "text", b'\xC2\xB0'.decode(), text="Degree Sign|Alt G")
953                 layout.item_stringO("font.text_insert", "text", b'\xC3\x97'.decode(), text="Multiplication Sign|Alt x")
954                 layout.item_stringO("font.text_insert", "text", b'\xC2\x8A'.decode(), text="Circle|Alt .")
955                 layout.item_stringO("font.text_insert", "text", b'\xC2\xB9'.decode(), text="Superscript 1|Alt 1")
956                 layout.item_stringO("font.text_insert", "text", b'\xC2\xB2'.decode(), text="Superscript 2|Alt 2")
957                 layout.item_stringO("font.text_insert", "text", b'\xC2\xB3'.decode(), text="Superscript 3|Alt 3")
958                 layout.item_stringO("font.text_insert", "text", b'\xC2\xBB'.decode(), text="Double >>|Alt >")
959                 layout.item_stringO("font.text_insert", "text", b'\xC2\xAB'.decode(), text="Double <<|Alt <")
960                 layout.item_stringO("font.text_insert", "text", b'\xE2\x80\xB0'.decode(), text="Promillage|Alt %")
961                 
962                 layout.itemS()
963                 
964                 layout.item_stringO("font.text_insert", "text", b'\xC2\xA4'.decode(), text="Dutch Florin|Alt F")
965                 layout.item_stringO("font.text_insert", "text", b'\xC2\xA3'.decode(), text="British Pound|Alt L")
966                 layout.item_stringO("font.text_insert", "text", b'\xC2\xA5'.decode(), text="Japanese Yen|Alt Y")
967                 
968                 layout.itemS()
969                 
970                 layout.item_stringO("font.text_insert", "text", b'\xC3\x9F'.decode(), text="German S|Alt S")
971                 layout.item_stringO("font.text_insert", "text", b'\xC2\xBF'.decode(), text="Spanish Question Mark|Alt ?")
972                 layout.item_stringO("font.text_insert", "text", b'\xC2\xA1'.decode(), text="Spanish Exclamation Mark|Alt !")
973
974 # Edit META
975 class VIEW3D_MT_edit_META(bpy.types.Menu):
976         __space_type__ = 'VIEW_3D'
977         __label__ = "Metaball"
978
979         def draw(self, context):
980                 layout = self.layout
981                 
982                 settings = context.tool_settings
983
984                 layout.itemO("ed.undo")
985                 layout.itemO("ed.redo")
986                 
987                 layout.itemS()
988                 
989                 layout.itemM("VIEW3D_MT_snap")
990                 
991                 layout.itemS()
992                 
993                 layout.itemO("mball.delete_metaelems", text="Delete...")
994                 layout.itemO("mball.duplicate_metaelems")
995                 
996                 layout.itemS()
997                 
998                 layout.itemR(settings, "proportional_editing")
999                 layout.item_menu_enumR(settings, "proportional_editing_falloff")
1000                 
1001                 layout.itemS()
1002                 
1003                 layout.itemM("VIEW3D_MT_edit_META_showhide")
1004
1005 class VIEW3D_MT_edit_META_showhide(bpy.types.Menu):
1006         __space_type__ = 'VIEW_3D'
1007         __label__ = "Show/Hide"
1008
1009         def draw(self, context):
1010                 layout = self.layout
1011                 
1012                 layout.itemO("mball.reveal_metaelems", text="Show Hidden")
1013                 layout.itemO("mball.hide_metaelems", text="Hide Selected")
1014                 layout.item_booleanO("mball.hide_metaelems", "unselected", True, text="Hide Unselected")
1015
1016 # Edit LATTICE
1017 class VIEW3D_MT_edit_LATTICE(bpy.types.Menu):
1018         __space_type__ = 'VIEW_3D'
1019         __label__ = "Lattice"
1020
1021         def draw(self, context):
1022                 layout = self.layout
1023                 
1024                 settings = context.tool_settings
1025
1026                 layout.itemM("VIEW3D_MT_snap")
1027                 
1028                 layout.itemS()
1029                 
1030                 layout.itemO("lattice.make_regular")
1031                 
1032                 layout.itemS()
1033                 
1034                 layout.itemR(settings, "proportional_editing")
1035                 layout.item_menu_enumR(settings, "proportional_editing_falloff")
1036
1037 # Edit ARMATURE
1038 class VIEW3D_MT_edit_ARMATURE(bpy.types.Menu):
1039         __space_type__ = 'VIEW_3D'
1040         __label__ = "Armature"
1041
1042         def draw(self, context):
1043                 layout = self.layout
1044                 
1045                 edit_object = context.edit_object
1046                 arm = edit_object.data
1047                 
1048                 layout.itemM("VIEW3D_MT_snap")
1049                 layout.itemM("VIEW3D_MT_edit_ARMATURE_roll")
1050                 
1051                 if arm.drawtype == 'ENVELOPE':
1052                         layout.item_enumO("tfm.transform", "mode", 'BONESIZE', text="Scale Envelope Distance")
1053                 else:
1054                         layout.item_enumO("tfm.transform", "mode", 'BONESIZE', text="Scale B-Bone Width")
1055                                 
1056                 layout.itemS()
1057                 
1058                 layout.itemO("armature.extrude")
1059                 
1060                 if arm.x_axis_mirror:
1061                         layout.item_booleanO("armature.extrude", "forked", True, text="Extrude Forked")
1062                 
1063                 layout.itemO("armature.duplicate")
1064                 layout.itemO("armature.merge")
1065                 layout.itemO("armature.fill")
1066                 layout.itemO("armature.delete")
1067                 layout.itemO("armature.separate")
1068
1069                 layout.itemS()
1070
1071                 layout.itemO("armature.subdivide_multi", text="Subdivide")
1072                 
1073                 layout.itemS()
1074                 
1075                 layout.operator_context = "EXEC_AREA"
1076                 layout.item_enumO("armature.autoside_names", "type", 'XAXIS', text="AutoName Left/Right")
1077                 layout.item_enumO("armature.autoside_names", "type", 'YAXIS', text="AutoName Front/Back")
1078                 layout.item_enumO("armature.autoside_names", "type", 'ZAXIS', text="AutoName Top/Bottom")
1079                 layout.itemO("armature.flip_names")
1080
1081                 layout.itemS()
1082                 
1083                 layout.operator_context = "INVOKE_DEFAULT"
1084                 layout.itemO("armature.armature_layers")
1085                 layout.itemO("armature.bone_layers")
1086
1087                 layout.itemS()
1088
1089                 layout.itemM("VIEW3D_MT_edit_ARMATURE_parent")
1090
1091                 layout.itemS()
1092                 
1093                 layout.item_menu_enumO("armature.flags_set", "mode", text="Bone Settings")
1094
1095 class VIEW3D_MT_edit_ARMATURE_parent(bpy.types.Menu):
1096         __space_type__ = 'VIEW_3D'
1097         __label__ = "Parent"
1098
1099         def draw(self, context):
1100                 layout = self.layout
1101                 
1102                 layout.itemO("armature.parent_set", text="Make")
1103                 layout.itemO("armature.parent_clear", text="Clear")
1104
1105 class VIEW3D_MT_edit_ARMATURE_roll(bpy.types.Menu):
1106         __space_type__ = 'VIEW_3D'
1107         __label__ = "Bone Roll"
1108
1109         def draw(self, context):
1110                 layout = self.layout
1111                 
1112                 layout.item_enumO("armature.calculate_roll", "type", 'GLOBALUP', text="Clear Roll (Z-Axis Up)")
1113                 layout.item_enumO("armature.calculate_roll", "type", 'CURSOR', text="Roll to Cursor")
1114                 
1115                 layout.itemS()
1116                 
1117                 layout.item_enumO("tfm.transform", "mode", 'BONE_ROLL', text="Set Roll")
1118
1119 # ********** Panel **********
1120
1121 class VIEW3D_PT_3dview_properties(bpy.types.Panel):
1122         __space_type__ = 'VIEW_3D'
1123         __region_type__ = 'UI'
1124         __label__ = "View"
1125
1126         def poll(self, context):
1127                 view = context.space_data
1128                 return (view)
1129
1130         def draw(self, context):
1131                 layout = self.layout
1132                 
1133                 view = context.space_data
1134                 scene = context.scene
1135                 
1136                 col = layout.column()
1137                 col.itemR(view, "camera")
1138                 col.itemR(view, "lens")
1139                 
1140                 layout.itemL(text="Clip:")
1141                 col = layout.column(align=True)
1142                 col.itemR(view, "clip_start", text="Start")
1143                 col.itemR(view, "clip_end", text="End")
1144                 
1145                 layout.itemL(text="Grid:")
1146                 col = layout.column(align=True)
1147                 col.itemR(view, "grid_lines", text="Lines")
1148                 col.itemR(view, "grid_spacing", text="Spacing")
1149                 col.itemR(view, "grid_subdivisions", text="Subdivisions")
1150                 
1151                 layout.column().itemR(scene, "cursor_location", text="3D Cursor:")
1152                 
1153 class VIEW3D_PT_3dview_display(bpy.types.Panel):
1154         __space_type__ = 'VIEW_3D'
1155         __region_type__ = 'UI'
1156         __label__ = "Display"
1157
1158         def poll(self, context):
1159                 view = context.space_data
1160                 return (view)
1161
1162         def draw(self, context):
1163                 layout = self.layout
1164                 view = context.space_data
1165                 
1166                 col = layout.column()
1167                 col.itemR(view, "display_floor", text="Grid Floor")
1168                 col.itemR(view, "display_x_axis", text="X Axis")
1169                 col.itemR(view, "display_y_axis", text="Y Axis")
1170                 col.itemR(view, "display_z_axis", text="Z Axis")
1171                 col.itemR(view, "outline_selected")
1172                 col.itemR(view, "all_object_centers")
1173                 col.itemR(view, "relationship_lines")
1174                 col.itemR(view, "textured_solid")
1175                 
1176                 layout.itemS()
1177                 
1178                 layout.itemO("screen.region_foursplit")
1179                 
1180                 col = layout.column()
1181                 col.itemR(view, "lock_rotation")
1182                 col.itemR(view, "box_preview")
1183                 col.itemR(view, "box_clip")
1184
1185 class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel):
1186         __space_type__ = 'VIEW_3D'
1187         __region_type__ = 'UI'
1188         __label__ = "Mesh Display"
1189
1190         def poll(self, context):
1191                 editmesh = context.mode == 'EDIT_MESH'
1192                 return (editmesh)
1193
1194         def draw(self, context):
1195                 layout = self.layout
1196
1197                 mesh = context.active_object.data
1198                 
1199                 col = layout.column()
1200                 col.itemL(text="Overlays:")
1201                 col.itemR(mesh, "draw_edges", text="Edges")
1202                 col.itemR(mesh, "draw_faces", text="Faces")
1203                 col.itemR(mesh, "draw_creases", text="Creases")
1204                 col.itemR(mesh, "draw_bevel_weights", text="Bevel Weights")
1205                 col.itemR(mesh, "draw_seams", text="Seams")
1206                 col.itemR(mesh, "draw_sharp", text="Sharp")
1207                 
1208                 col.itemS()
1209                 col.itemL(text="Normals:")
1210                 col.itemR(mesh, "draw_normals", text="Face")
1211                 col.itemR(mesh, "draw_vertex_normals", text="Vertex")
1212                 col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
1213                 
1214                 col.itemS()
1215                 col.itemL(text="Numerics:")
1216                 col.itemR(mesh, "draw_edge_lenght")
1217                 col.itemR(mesh, "draw_edge_angle")
1218                 col.itemR(mesh, "draw_face_area")
1219
1220
1221 class VIEW3D_PT_3dview_curvedisplay(bpy.types.Panel):
1222         __space_type__ = 'VIEW_3D'
1223         __region_type__ = 'UI'
1224         __label__ = "Curve Display"
1225
1226         def poll(self, context):
1227                 editmesh = context.mode == 'EDIT_CURVE'
1228                 return (editmesh)
1229
1230         def draw(self, context):
1231                 layout = self.layout
1232
1233                 curve = context.active_object.data
1234                 
1235                 col = layout.column()
1236                 col.itemL(text="Overlays:")
1237                 col.itemR(curve, "draw_handles", text="Handles")
1238                 col.itemR(curve, "draw_normals", text="Normals")
1239                 col.itemR(context.scene.tool_settings, "normal_size", text="Normal Size")
1240                 
1241         
1242 class VIEW3D_PT_background_image(bpy.types.Panel):
1243         __space_type__ = 'VIEW_3D'
1244         __region_type__ = 'UI'
1245         __label__ = "Background Image"
1246         __default_closed__ = True
1247
1248         def poll(self, context):
1249                 view = context.space_data
1250                 bg = context.space_data.background_image
1251                 return (view)
1252
1253         def draw_header(self, context):
1254                 layout = self.layout
1255                 view = context.space_data
1256
1257                 layout.itemR(view, "display_background_image", text="")
1258
1259         def draw(self, context):
1260                 layout = self.layout
1261                 
1262                 view = context.space_data
1263                 bg = view.background_image
1264
1265                 if bg:
1266                         layout.active = view.display_background_image
1267
1268                         col = layout.column()
1269                         col.itemR(bg, "image", text="")
1270                         #col.itemR(bg, "image_user")
1271                         col.itemR(bg, "size")
1272                         col.itemR(bg, "transparency", slider=True)
1273                         col.itemL(text="Offset:")
1274                         
1275                         col = layout.column(align=True)
1276                         col.itemR(bg, "offset_x", text="X")
1277                         col.itemR(bg, "offset_y", text="Y")
1278
1279 bpy.types.register(VIEW3D_HT_header) # Header
1280
1281 bpy.types.register(VIEW3D_MT_view) #View Menus
1282 bpy.types.register(VIEW3D_MT_view_navigation)
1283 bpy.types.register(VIEW3D_MT_view_align)
1284 bpy.types.register(VIEW3D_MT_view_cameras)
1285
1286 bpy.types.register(VIEW3D_MT_select_OBJECT) # Select Menus
1287 bpy.types.register(VIEW3D_MT_select_POSE)
1288 bpy.types.register(VIEW3D_MT_select_PARTICLE)
1289 bpy.types.register(VIEW3D_MT_select_EDIT_MESH)
1290 bpy.types.register(VIEW3D_MT_select_EDIT_CURVE)
1291 bpy.types.register(VIEW3D_MT_select_EDIT_SURFACE)
1292 bpy.types.register(VIEW3D_MT_select_EDIT_METABALL)
1293 bpy.types.register(VIEW3D_MT_select_EDIT_LATTICE)
1294 bpy.types.register(VIEW3D_MT_select_EDIT_ARMATURE)
1295 bpy.types.register(VIEW3D_MT_select_FACE) # XXX todo
1296
1297 bpy.types.register(VIEW3D_MT_OBJECT) # Object Menu
1298 bpy.types.register(VIEW3D_MT_OBJECT_clear)
1299 bpy.types.register(VIEW3D_MT_OBJECT_parent)
1300 bpy.types.register(VIEW3D_MT_OBJECT_track)
1301 bpy.types.register(VIEW3D_MT_OBJECT_group)
1302 bpy.types.register(VIEW3D_MT_OBJECT_constraints)
1303 bpy.types.register(VIEW3D_MT_OBJECT_showhide)
1304
1305 bpy.types.register(VIEW3D_MT_SCULPT) # Sculpt Menu
1306
1307 bpy.types.register(VIEW3D_MT_PAINT_VERTEX)
1308
1309 bpy.types.register(VIEW3D_MT_PARTICLE) # Particle Menu
1310 bpy.types.register(VIEW3D_MT_PARTICLE_showhide)
1311
1312 bpy.types.register(VIEW3D_MT_POSE) # POSE Menu
1313 bpy.types.register(VIEW3D_MT_POSE_transform)
1314 bpy.types.register(VIEW3D_MT_POSE_pose)
1315 bpy.types.register(VIEW3D_MT_POSE_motion)
1316 bpy.types.register(VIEW3D_MT_POSE_group)
1317 bpy.types.register(VIEW3D_MT_POSE_ik)
1318 bpy.types.register(VIEW3D_MT_POSE_constraints)
1319 bpy.types.register(VIEW3D_MT_POSE_showhide)
1320
1321 bpy.types.register(VIEW3D_MT_snap) # Edit Menus
1322
1323 bpy.types.register(VIEW3D_MT_edit_MESH)
1324 bpy.types.register(VIEW3D_MT_edit_MESH_vertices)
1325 bpy.types.register(VIEW3D_MT_edit_MESH_edges)
1326 bpy.types.register(VIEW3D_MT_edit_MESH_faces)
1327 bpy.types.register(VIEW3D_MT_edit_MESH_normals)
1328 bpy.types.register(VIEW3D_MT_edit_MESH_showhide)
1329
1330 bpy.types.register(VIEW3D_MT_edit_CURVE)
1331 bpy.types.register(VIEW3D_MT_edit_CURVE_ctrlpoints)
1332 bpy.types.register(VIEW3D_MT_edit_CURVE_segments)
1333 bpy.types.register(VIEW3D_MT_edit_CURVE_showhide)
1334
1335 bpy.types.register(VIEW3D_MT_edit_SURFACE)
1336
1337 bpy.types.register(VIEW3D_MT_edit_TEXT)
1338 bpy.types.register(VIEW3D_MT_edit_TEXT_chars)
1339
1340 bpy.types.register(VIEW3D_MT_edit_META)
1341 bpy.types.register(VIEW3D_MT_edit_META_showhide)
1342
1343 bpy.types.register(VIEW3D_MT_edit_LATTICE)
1344
1345 bpy.types.register(VIEW3D_MT_edit_ARMATURE)
1346 bpy.types.register(VIEW3D_MT_edit_ARMATURE_parent)
1347 bpy.types.register(VIEW3D_MT_edit_ARMATURE_roll)
1348
1349 bpy.types.register(VIEW3D_PT_3dview_properties) # Panels
1350 bpy.types.register(VIEW3D_PT_3dview_display)
1351 bpy.types.register(VIEW3D_PT_3dview_meshdisplay)
1352 bpy.types.register(VIEW3D_PT_3dview_curvedisplay)
1353 bpy.types.register(VIEW3D_PT_background_image)