What is the python script to do a rip tool (V key) without moving the components after separating the components.
-
$\begingroup$ could you provide your .blend file with your script? Also add screenshots showing the problem. $\endgroup$ – Tak Jan 14 '17 at 12:10
$\begingroup$
$\endgroup$
- Run the below script
- Select an edge
- 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()
-
-
$\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$ 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