I found this tutorial and have been following along trying to create my own Panel in the Toolshelf but mine won't work, for no obvious reason.
I'm using Blender 2.63, and I have also tried the exact same script in Blender 2.58 and 2.56, both having the exact same result. NOTHING.
I've been through the script more times than I can count and I haven't seen any typos or incorrect words, yet it still does nothing. What's worse is I don't get any error messages.
When I click on the 'Run Script' button in the text editor, the only message I get is that I have run the script. In the tool shelf it displays it at the bottom in the same way as it would if you were to add a cube, only with the cube you are given some options such as the location/scale etc, of the cube. It is also displayed in the Info Window as:
bpy.ops.text.run_script()
This is what my code looks like:
import bpy
class customToolshelfPanel(bpy.types.Panel):
bl_space_type = "VIEW_3D"
bl_region_type = "TOOLS"
bl_context = "objectmode"
bl_label = "Custom Toolshelf Panel"
def draw(self, context):
layout = self.layout
col = layout.column(align=True)
col.label(text="Add:")
col.operator("mesh.primitive_plane_add", icon="MESH_PLANE")
col.operator("mesh.primitive_cube_add", icon="MESH_CUBE")
Any help at all would be appreciated, as Blender is giving me no idea at all if something is wrong.