python, add vertex group to modifier i want to add a vertex group by it's name (vgroup22) to a surface deform modifier.
the code should look kinda like this:
bpy.data.objects['Body.p.2'].modifiers[&quot;Surface Deform&quot;].vertex_group ??????

thx for taking a look
found the solution (blender 2.83.3)
bpy.context.object.modifiers[&quot;Surface Deform&quot;].vertex_group = &quot;vgroup22&quot;

didn't know, that every action is displayed in the &quot;info&quot; window and the code can simply be copied.