You know, I've never ever written a script that didn't have an error in it, hahaha. The error is... That .group attribute is an integer index into the .vertex_groups collection of the object, not a reference to the vertex-group itself. So it should really be this: vertexGroupsExport = {group.name:[ ] for group in…
I'd prefer to have a single collection of all groups, like this: # Armature Test<br>import bpy<br>import json<br>ob = bpy.context.object<br><br>allVertexGroups = {group.name:[ ] for group in ob.vertex_groups}<br>for v in ob.data.vertices:<br> for g in v.groups:<br> allVertexGroups[g.group.name].append((v.index,…