Find a file
Pullusb 2c7b705658 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-03-26 11:04:50 +01:00
.gitea CODEOWNERS: Add documentation section 2026-03-25 16:46:54 -04:00
.github
.well-known
assets
build_files
doc
extern
intern Fix: Cycles: Various issues with OpenVDB volume bounds 2026-03-25 23:47:11 +01:00
lib
locale
release
scripts Grease Pencil: Expose strokes fill_id and hide_stroke attributes to high level python API 2026-03-26 11:04:50 +01:00
source Grease Pencil: Replace Default Eraser with last used eraser brush and fallback to Hard 2026-03-26 10:48:31 +01:00
tests VSE: Remove "use linear modifiers" Strip option 2026-03-26 09:38:48 +01:00
tools
.clang-format
.clang-tidy
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
AUTHORS
CMakeLists.txt
COPYING
GNUmakefile
make.bat
pyproject.toml
README.md

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.

Blender screenshot

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.