Skip to content
Snippets Groups Projects
Select Git revision
  • 049a5a86edcf78b070b73b141b657825145ae9a1
  • master default protected
  • blender-v3.6-release
  • main
  • blender-v4.1-release
  • blender-v4.0-release
  • blender-v3.3-release
  • asset-shelf
  • blender-v3.5-release
  • brush-assets-project
  • blender-v2.93-release
  • blender-v3.4-release
  • xr-dev
  • bholodeck-v3.3
  • blender-v3.2-release
  • temp-xr-tracker
  • blender-v3.1-release
  • screenshots-manual
  • gltf_vtree
  • blender-v2.83-release
  • blender-v3.0-release
  • v3.6.18
  • v3.6.19
  • v3.6.20
  • v3.6.21
  • v3.6.22
  • v3.6.23
  • v4.1.1
  • v4.1.0
  • v3.6.10
  • v3.6.11
  • v3.6.12
  • v3.6.13
  • v3.6.14
  • v3.6.15
  • v3.6.16
  • v3.6.17
  • v3.6.9
  • v3.3.16
  • v3.6.8
  • v3.3.15
41 results

add_mesh_honeycomb.py

Blame
  • space_view3d_objects_panel.py 2.61 KiB
    # ##### BEGIN GPL LICENSE BLOCK #####
    #
    #  This program is free software; you can redistribute it and/or
    #  modify it under the terms of the GNU General Public License
    #  as published by the Free Software Foundation; either version 2
    #  of the License, or (at your option) any later version.
    #
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with this program; if not, write to the Free Software Foundation,
    #  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    #
    # ##### END GPL LICENSE BLOCK #####
    
    bl_info = {
        "name": "Add Objects Panel",
        "author": "Murat Egretli (Demohero)",
        "version": (1,1),
        "blender": (2, 5, 4),
        "api": 32516,
        "location": "View3D > Toolbar",
        "description": "add objects(mesh, curve etc.) from Toolbar",
        "warning": "",
        "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"\
            "Scripts/",
        "tracker_url": "https://projects.blender.org/tracker/index.php?"\
            "func=detail&aid=22154",
        "category": "3D View"}
    
    
    import bpy
    
    
    class View3DPanel():
        bl_space_type = 'VIEW_3D'
        bl_region_type = 'TOOLS'
        
    
    class VIEW3D_PT_add_menu(View3DPanel,bpy.types.Panel):
        bl_context = "objectmode"
        bl_label = "Add Objects"
        
        def draw(self, context):
            layout = self.layout
    
            layout.menu("INFO_MT_mesh_add", text="Mesh", icon='OUTLINER_OB_MESH')
            layout.menu("INFO_MT_curve_add", text="Curve", icon='OUTLINER_OB_CURVE')
            layout.menu("INFO_MT_surface_add", text="Surface", icon='OUTLINER_OB_SURFACE')
            layout.operator_menu_enum("object.metaball_add", "type", text="Metaball", icon='OUTLINER_OB_META')
            layout.menu("INFO_MT_armature_add", icon='OUTLINER_OB_ARMATURE')
            layout.operator_menu_enum("object.lamp_add", "type", text="Lamp", icon='OUTLINER_OB_LAMP')
            layout.operator_menu_enum("object.effector_add", "type", text="Force Field", icon='OUTLINER_OB_EMPTY')
            layout.operator("object.add", text="Lattice", icon='OUTLINER_OB_LATTICE').type = 'LATTICE'
            layout.operator("object.add", text="Empty", icon='OUTLINER_OB_EMPTY').type = 'EMPTY'
            layout.operator("object.camera_add", text="Camera", icon='OUTLINER_OB_CAMERA')
            layout.operator("object.text_add", text="Text", icon='OUTLINER_OB_FONT')
          
    def register(): 
        pass
        
    def unregister(): 
        pass
    
    if __name__ == "__main__":
        register()