Pratik Borhade
ba2e567efb
Grease Pencil: Drawing API functions to assign/remove vertex group data
...
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
2025-03-18 15:11:09 +01:00
..
2025-02-19 17:11:08 +01:00
2025-03-12 17:19:06 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-02-05 15:45:04 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-02-12 23:01:08 +01:00
2025-02-18 12:43:43 +01:00
2025-01-31 17:03:18 +01:00
2025-02-18 12:43:43 +01:00
2025-03-14 10:55:36 +01:00
2025-02-19 17:11:08 +01:00
2025-02-05 15:45:04 +01:00
2025-02-05 15:45:04 +01:00
2025-02-19 13:04:40 -08:00
2025-02-05 15:45:04 +01:00
2025-01-31 17:03:18 +01:00
2025-03-06 13:04:39 +01:00
2025-03-14 10:55:36 +01:00
2025-02-07 17:47:16 +01:00
2025-03-06 13:04:39 +01:00
2025-03-12 17:19:06 +01:00
2025-02-19 17:11:08 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-02-18 12:43:43 +01:00
2025-01-31 17:03:18 +01:00
2024-12-03 16:23:31 +01:00
2025-02-05 15:45:04 +01:00
2025-03-12 17:19:06 +01:00
2025-03-12 17:19:06 +01:00
2025-02-05 15:45:04 +01:00
2025-02-11 16:14:54 +11:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-03-18 15:11:09 +01:00
2025-03-06 21:19:31 +01:00
2025-03-14 10:55:36 +01:00
2025-03-12 17:19:06 +01:00
2025-02-05 15:45:04 +01:00
2025-03-05 19:34:19 +01:00
2025-02-28 17:14:34 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-02-05 15:45:04 +01:00
2025-02-05 15:45:04 +01:00
2025-01-31 17:03:18 +01:00
2024-06-10 22:34:26 +02:00
2025-02-18 12:43:43 +01:00
2025-02-20 10:37:10 +01:00
2025-02-05 15:45:04 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-02-19 13:44:11 +01:00
2025-03-07 11:24:37 +01:00
2025-02-05 15:45:04 +01:00
2025-02-06 21:38:19 +01:00
2025-01-31 17:03:18 +01:00
2025-02-18 12:43:43 +01:00
2025-03-12 17:19:06 +01:00
2025-03-06 13:04:39 +01:00
2025-02-18 12:43:43 +01:00
2025-02-24 18:52:10 +01:00
2025-02-28 19:07:02 +01:00
2025-03-17 13:49:43 +01:00
2025-02-18 12:43:43 +01:00
2025-02-05 15:45:04 +01:00
2025-03-18 22:39:30 +11:00
2025-01-31 17:03:18 +01:00
2025-02-18 12:43:43 +01:00
2025-03-12 17:19:06 +01:00
2025-03-12 17:19:06 +01:00
2025-02-05 15:45:04 +01:00
2025-01-31 17:03:18 +01:00
2025-03-18 22:39:30 +11:00
2025-03-12 17:19:06 +01:00
2025-02-21 18:50:21 +01:00
2025-03-12 17:19:06 +01:00
2025-03-06 13:04:39 +01:00
2025-03-18 22:39:30 +11:00
2025-01-31 17:03:18 +01:00
2025-03-10 18:11:37 +01:00
2025-03-12 17:19:06 +01:00
2025-03-18 07:12:50 +01:00
2025-01-31 17:03:18 +01:00
2025-01-31 17:03:18 +01:00
2025-02-07 17:47:16 +01:00
2025-01-31 17:03:18 +01:00
2025-03-17 15:37:04 +01:00
2025-01-31 17:03:18 +01:00
2025-01-31 17:03:18 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-02-28 22:12:34 +01:00
2024-03-26 13:07:04 -04:00
2025-02-18 12:43:43 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-03-17 13:54:48 +01:00
2025-01-31 17:03:18 +01:00
2025-02-07 17:47:16 +01:00
2025-03-11 12:36:17 +11:00
2025-02-28 15:45:36 +01:00
2025-01-31 17:03:18 +01:00
2025-02-05 15:45:04 +01:00
2025-03-12 17:19:06 +01:00
2025-01-31 17:03:18 +01:00
2025-03-12 17:19:06 +01:00
2025-02-05 15:45:04 +01:00
2025-03-12 17:19:06 +01:00