Advertisement
metalx1000

Blender Python get location of all objects

Nov 23rd, 2013
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. import bge
  2.  
  3. scene = bge.logic.getCurrentScene()
  4.  
  5. for i in scene.objects:
  6.     print(i, " position is:");
  7.     print(i.position);
  8.    
  9. #or
  10.  
  11. for i in scene.objects:
  12.     print(i, " x position is: ", i.position.x);
  13.     print(i, " y position is: ", i.position.y);
  14.     print(i, " z position is: ", i.position.z);
  15.     print("===============================");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement