So I would like to create custom pie menus. I have followed the tutorial by Sebastian Kónig that seems quite popular... but it's as if he leaves out the portion that tells you how to save it and have it work when you restart Blender.
Being an artist and total non-coder I'm not even sure where to start figuring out why it's not working after a restart.
Could someone please explain to me what I need to do to make this work? or perhaps point me to the section of the manual that covers this?
here is the tutorial I followed... https://vimeo.com/103321600
do I need to check Register? this seems to be greyed out sometimes.. but not others. Do I need to save the script in a specific location? Any help would be greatly appreciated :) cheers
import bpy from bpy.types import Menu # spawn an edit mode selection pie (run while object is in edit mode to get a valid output) class VIEW3D_PIE_template(Menu): # label is displayed at the center of the pie menu. bl_label = "Beddalls Pie Menu" bl_idname = "mesh.beddallpie" def draw(self, context): layout = self.layout pie = layout.menu_pie() # operator_enum will just spread all available options # for the type enum of the operator on the pie pie.operator_enum("mesh.select_mode", "type") pie.operator("mesh.noise") pie.operator("mesh.vertices_smooth") pie.operator("transform.vertex_random") def register(): bpy.utils.register_class(VIEW3D_PIE_template) wm = bpy.context.window_manager km = wm.keyconfigs.addon.keymaps.new(name="Mesh") kmi = km.keymap_items.new("wm.call_menu_pie", "E", "PRESS", shift=True, ctrl=True).properties.name="mesh.beddallpie" def unregister(): bpy.utils.unregister_class(VIEW3D_PIE_template) if __name__ == "__main__": register() bpy.ops.wm.call_menu_pie(name="VIEW3D_PIE_template")
I originally didn't include the code as the code works... what doesn't work is having it available once i restart Blender. Everything works fine until i restart... then it's like the script never existed. I'm missing the knowledge that will make the script still work when I restart Blender, and for a non-coder this info seems rather elusive.