Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. [obj.matrix_world @ v.co for v in obj.data.vertices]
  2.  
  3. coords = np.empty((len(obj.data.vertices), 3), 'f')
  4. obj.data.vertices.foreach_get('co', np.reshape(coords, len(obj.data.vertices) * 3))
  5.  
  6. np.matrix(obj.matrix_world) @ coords
  7.  
  8. ValueError: shapes (4,4) and (8,3) not aligned: 4 (dim 1) != 8 (dim 0)
  9.  
  10. for co in coords:
  11. np.matrix(obj.matrix_world) @ co
  12.  
  13. ValueError: shapes (4,4) and (3,) not aligned: 4 (dim 1) != 3 (dim 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement