Skip to content

Instantly share code, notes, and snippets.

@Santaro255
Created May 11, 2019 15:52
Show Gist options
  • Save Santaro255/3ab8d2bc4d47317814fe604d568fb732 to your computer and use it in GitHub Desktop.
Save Santaro255/3ab8d2bc4d47317814fe604d568fb732 to your computer and use it in GitHub Desktop.
import bpy
csv_file="c:\\tmp\\out.csv"
f=open(csv_file, 'w')
for item in bpy.data.objects:
f.writelines(str(item.name)+', '
+str(item.location[0])+', '
+str(item.location[1])+', '
+str(item.location[2])+';')
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment