ba2e567efbe0f8f04dc9c6cdad59d80b1e680af8
Currently there is no python api function to assign/remove vertices to specific vertex group. Traditional `object.vertex_groups[0].add/rna_VertexGroup_vertex_add` didn't work, because Grease Pencil stores deform verts and vertex group on individual drawings. Now intorduced a new function `vertex_group_assign` and `vertex_group_remove` on `Drawing`. Resolves #135281. Resolves #134678. Example (just add GP Suzanne): ``` import bpy C = bpy.context drawing = C.active_object.data.layers['Lines'].current_frame().drawing drawing.vertex_group_assign(vgroup_name="Group", indices_ptr=[2, 6, 10, 18, 19, 20], weight = 0.9) drawing.vertex_group_remove(vgroup_name="Group", indices_ptr=[2, 6, 10]) ``` Pull Request: https://projects.blender.org/blender/blender/pulls/135283
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
