Last active
July 19, 2016 11:57
-
-
Save nutti/e9debe9973681e1fd21c6977c115cc61 to your computer and use it in GitHub Desktop.
Shortcut key test for Copy/Paste UVs on Magic UV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
class MyClassCopy(bpy.types.Operator): | |
bl_idname = "my.own_class_copy" | |
bl_label = "own class copy" | |
def execute(self, context): | |
bpy.ops.uv.muv_cpuv_copy_uv() # CopyUV | |
return {'FINISHED'} | |
if __name__ == "__main__": | |
bpy.utils.register_class(MyClassCopy) | |
wm = bpy.context.window_manager | |
kc = wm.keyconfigs.addon | |
km = kc.keymaps.new(name="3D View", space_type="VIEW_3D") | |
kmi = km.keymap_items.new(MyClassCopy.bl_idname, "C", "PRESS", shift=True, ctrl=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment