blender/scripts/modules
Pullusb 08f823dcd8 Grease Pencil: Expose strokes fill_id and hide_stroke attributes to high level python API
Expose grease pencil `fill_id` and `hide_stroke` attributes to high
level python API. This allows to easily get or set those attributes
using the stroke object itself in scripts or interactive console.

#### Usage:
For the example, let's store a drawing (first frame on first layer of
an active GP object):
`drawing = bpy.context.object.data.layers[0].frames[0].drawing`

Using low level API:
`drawing.attributes['fill_id'].data[0].value = 1`
`drawing.attributes['hide_stroke'].data[0].value = True`

Now also possible directly on stroke object with high level API:
`drawing.strokes[0].fill_id = 1`
`drawing.strokes[0].hide_stroke = True`

Pull Request: https://projects.blender.org/blender/blender/pulls/156246
2026-04-08 09:33:40 +02:00
..
_bl_console_utils PyDoc: use :param: instead of :arg: in Sphinx docstrings 2026-02-07 14:30:16 +11:00
_bl_i18n_utils I18n: Fix endonym for Belarusian 2026-02-19 16:39:52 +01:00
_bl_previews_utils Fix #138360: Batch-Generate Previews fails to save 2026-01-18 12:48:39 +01:00
_bl_rna_utils PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_bl_text_utils PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_bl_ui_utils PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_bpy_internal Grease Pencil: Expose strokes fill_id and hide_stroke attributes to high level python API 2026-04-08 09:33:40 +02:00
bl_app_override Cleanup: suppress unused Python warnings 2024-12-03 12:54:13 +11:00
bl_keymap_utils Fix #151085: Grease Pencil keymap naming inconsistency 2025-12-09 12:31:26 +01:00
bpy PyDoc: various improvements to doc-string wording 2026-02-15 11:08:44 +00:00
bpy_extras Cleanup: remove unused imports, argument shadowing, long lines in RST 2026-02-13 19:42:07 +11:00
gpu_extras PyDoc: use Literal[...] types for fixed string enum parameters 2026-02-10 09:51:28 +00:00
_animsys_refactor.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_blendfile_header.py Cleanup: use str.format to format strings in Python 2025-08-12 10:21:38 +10:00
_bpy_restrict_state.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_bpy_types.py PyDoc: fix errors in doc-strings, use type-hint syntax 2026-02-21 10:19:07 +11:00
_console_python.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_console_shell.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_graphviz_export.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
_keyingsets_utils.py Fix: fix b-bone keying set property identifiers 2026-01-12 08:07:07 +01:00
_rna_info.py PyDoc: fix errors in doc-strings, use type-hint syntax 2026-02-21 10:19:07 +11:00
_rna_manual_reference.py Docs: Update RNA to user manual URL mapping 2026-02-28 19:04:32 -05:00
_rna_xml.py PyAPI: make internal modules explicitly "private" 2025-10-13 09:35:09 +00:00
addon_utils.py PyDoc: use :param: instead of :arg: in Sphinx docstrings 2026-02-07 14:30:16 +11:00
bl_app_template_utils.py PyDoc: use :param: instead of :arg: in Sphinx docstrings 2026-02-07 14:30:16 +11:00
blend_render_info.py Cleanup: make the blend file header private 2025-06-28 08:40:31 +10:00
nodeitems_utils.py Cleanup: quiet Python linter warnings 2024-12-11 11:26:24 +11:00
rna_keymap_ui.py Cleanup: tweak multi-line parenthesis for Python scripts 2025-10-12 03:31:31 +00:00
rna_prop_ui.py Fix #155263: "Custom Property Values as Default" raises an exception 2026-03-10 00:14:54 +00:00