I have a GN node tree with an output value as a float.
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?
I have a GN node tree with an output value as a float.
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?
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.