Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created October 16, 2015 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/52a84c2a59a90e739491 to your computer and use it in GitHub Desktop.
Save zeffii/52a84c2a59a90e739491 to your computer and use it in GitHub Desktop.
# make your selection
# return to Object Mode
# Run the script
import csv
import bpy
obj = bpy.context.active_object
vertIndexes = [v.index for v in obj.data.vertices if v.select]
with open("output.csv", "w", newline='') as f:
writer = csv.writer(f)
writer.writerow(vertIndexes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment