daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 20th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top