0
$\begingroup$

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

$\endgroup$
1
  • $\begingroup$ could you provide your .blend file with your script? Also add screenshots showing the problem. $\endgroup$ – Tak Jan 14 '17 at 12:10
1
$\begingroup$
  1. Run the below script
  2. Select an edge
  3. Hit the spacebar and write "Rip Edge" as shown below

enter image description here

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()
$\endgroup$
11
  • $\begingroup$ It doesn't work. $\endgroup$ – Danyl Bekhoucha Jan 14 '17 at 12:06
  • $\begingroup$ 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? $\endgroup$ – Danyl Bekhoucha Jan 14 '17 at 12:14
  • $\begingroup$ It won't work that way, you need to put it in an operator and call this operator $\endgroup$ – Tak Jan 14 '17 at 12:37
  • $\begingroup$ @DanylBekhoucha answer updated. $\endgroup$ – Tak Jan 14 '17 at 12:54
  • $\begingroup$ Thank you for your script but i want a minimal code to integrate inside my current script. $\endgroup$ – Danyl Bekhoucha Jan 14 '17 at 15:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.