Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bl_info = {
- "name": "Cyclic selection mode",
- "author": "Zuorion",
- "version": (0, 1, 666),
- "blender": (2, 7, 9, 5),
- "location": "",
- "description": "Cyclice through edit selection modes",
- "warning": "",
- "wiki_url": "",
- "tracker_url": "",
- "category": "Mesh"}
- import bpy
- class Cycleselectionmode(bpy.types.Operator):
- bl_idname = "mesh.cycle_selection_mode"
- bl_label = "Cycles Selection modes"
- bl_options = {'REGISTER', 'UNDO'}
- def invoke(self, context, event):
- curselection = bpy.context.scene.tool_settings.mesh_select_mode
- bpy.context.tool_settings.mesh_select_mode = (curselection[2], curselection[0], curselection[1])
- return {'FINISHED'}
- addon_keymaps = []
- def register():
- bpy.utils.register_class(Cycleselectionmode)
- def unregister():
- bpy.utils.unregister_class(Cycleselectionmode)
- if __name__ == "__main__":
- register()
Add Comment
Please, Sign In to add comment