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["Surface Deform"].vertex_group ??????
thx for taking a look
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["Surface Deform"].vertex_group ??????
thx for taking a look
found the solution (blender 2.83.3)
bpy.context.object.modifiers["Surface Deform"].vertex_group = "vgroup22"
didn't know, that every action is displayed in the "info" window and the code can simply be copied.