5

I have a GN node tree with an output value as a float.

enter image description here

Blender tells me the path to it, which is great. And i got...if i execute it...an "x" ...umpf.

Hoped for a value. How do i get the value?

Chris
  • 59,454
  • 6
  • 30
  • 84

1 Answers1

8

You need to refer to the object attributes, so if the attribute is a vector you can do:

obj = bpy.context.object.evaluated_get(bpy.context.evaluated_depsgraph_get()).data

obj.attributes[0].data[0].vector

You might need to adjust the indexes for your attributes.

Hezi Shahmoon
  • 350
  • 1
  • 8