I'm still very new to Blender, but I'm trying to get a custom menu up and running. I followed the video tutorial on Blender Cookie and works great.
I'm trying to create a button that will move and object to the origin.
My code is as followed.
row = layout.row() row.operator("transform.resize", text="Scale") row = layout.row() row.operator("context.active_object.location=(0,0,0)", text="Orgin") row = layout.row() row.operator("transform.translate(value=(0,0,0))", text="Orgin")
The "Scale" button works so I know something somewhat works. The other two buttons do not show up. I was trying to see what move commands work.
I tried the commands independently in the console and they work... just not in button form.