adding or filling export to csv/excel fill test
Asked
Active
Viewed 706 times
1 Answers
1
Run this from the GUI, change your file output location from my directory to whatever you want to call it, and select the correct object for csv_obj
import bpy
import csv
csv_obj = bpy.data.objects['Cube']
out_list = []
for i, vert in enumerate(csv_obj.data.vertices):
out_list.append(vert.co)
print(out_list)
file = open('/home/harrison/Documents/blender_stack.csv', 'w+', newline='')
with file:
write = csv.writer(file)
write.writerows(out_list)
```
WhisperingShiba
- 300
- 2
- 9
import csvand pass in the list of vertices you get and specify the disk location you want the csv file. – WhisperingShiba Apr 17 '22 at 16:29