Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import bpy
  2. import bmesh
  3. import math
  4. import mathutils
  5.  
  6. obj = bpy.context.edit_object
  7. me = obj.data
  8.  
  9. bm = bmesh.from_edit_mesh(me)
  10. cursor_location = bpy.context.scene.cursor.location
  11.  
  12. for v in bm.verts:
  13. v.co = cursor_location - v.co
  14. print(v.co)
  15.  
  16. bmesh.update_edit_mesh(me, True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement