I got a simple Geometry Nodes setup that takes an existing vertex group and does stuff with it. I'd like to automatically feed it the active vertex group data.
A scripted function returning
bpy.data.objects['Cube'].vertex_groups.active doesn't work because this doesn't seem to return data structured in the way a input field expects, and I'm not sure how the named attributes are structured to try to recreate it.
Alternatively, if I could find a way to assign a drive to a string input I'd be able to retrieve
bpy.data.objects['Cube'].vertex_groups.active.name to then feed it to a Named Attribute node and access the vertex group data. The closest would be using the value input in a Value to String node, but that assumes all VGroups have numbers for names, which isn't the case.