enzyme69 / blendersushi

Blender Sushi related scripts. Mostly about Sverchok, Geometry Nodes, Animation Nodes, and related Python scripts.
242 stars 33 forks source link

LIVENODING Exporting Geometry Nodes Custom Data Into Text Using SV Nodes #1315

Open enzyme69 opened 2 years ago

enzyme69 commented 2 years ago
Screen Shot 2022-03-31 at 11 43 47 am Screen Shot 2022-03-31 at 11 46 29 am
enzyme69 commented 2 years ago

export_PLY_sketchfab_008.blend.zip

import bpy
C = bpy.context

blah = bpy.data.objects['Cube']

# get evaluated data
blaheval = blah.evaluated_get(C.evaluated_depsgraph_get())

for i in blaheval.data.attributes['COL'].data:
    append(i.vector)