# What is the python script for the Rip tool

What is the python script to do a rip tool (V key) without moving the components after separating the components.

• could you provide your .blend file with your script? Also add screenshots showing the problem. – Tak Jan 14 '17 at 12:10

1. Run the below script
2. Select an edge
3. Hit the spacebar and write "Rip Edge" as shown below

import bpy
bl_info = {
"name": "Rip Edge",
"category": "Edit",
}

class EdgeRip(bpy.types.Operator):
"""Rip Edge"""
bl_idname = "edit.ripedge"
bl_label = "Rip Edge"
bl_options = {'REGISTER', 'UNDO'}

def execute(self, context):
bpy.ops.mesh.rip('INVOKE_DEFAULT')
return {'FINISHED'}

def register():
bpy.utils.register_class(EdgeRip)

def unregister():
bpy.utils.unregister_class(EdgeRip)

if __name__ == "__main__":
register()

• It doesn't work. – Danyl Bekhoucha Jan 14 '17 at 12:06
• I have just copy/pasted your script with import bpy on top in the text editor and run the script after selecting an edge. Does it work for you? – Danyl Bekhoucha Jan 14 '17 at 12:14
• It won't work that way, you need to put it in an operator and call this operator – Tak Jan 14 '17 at 12:37
• @DanylBekhoucha answer updated. – Tak Jan 14 '17 at 12:54
• Thank you for your script but i want a minimal code to integrate inside my current script. – Danyl Bekhoucha Jan 14 '17 at 15:43