fake-bpy-module 20240210__py3-none-any.whl → 20240326__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- addon_utils/__init__.pyi +54 -11
- animsys_refactor/__init__.pyi +36 -7
- aud/__init__.pyi +307 -321
- bgl/__init__.pyi +2926 -865
- bl_app_override/__init__.pyi +14 -4
- bl_app_override/helpers/__init__.pyi +24 -3
- bl_app_template_utils/__init__.pyi +19 -5
- bl_console_utils/__init__.pyi +0 -1
- bl_console_utils/autocomplete/__init__.pyi +2 -3
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
- bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
- bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
- bl_i18n_utils/__init__.pyi +2 -3
- bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
- bl_i18n_utils/merge_po/__init__.pyi +4 -2
- bl_i18n_utils/settings/__init__.pyi +53 -7
- bl_i18n_utils/utils/__init__.pyi +332 -45
- bl_i18n_utils/utils_cli/__init__.pyi +29 -7
- bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
- bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
- bl_keymap_utils/__init__.pyi +2 -3
- bl_keymap_utils/io/__init__.pyi +44 -10
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
- bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
- bl_keymap_utils/versioning/__init__.pyi +4 -2
- bl_math/__init__.pyi +21 -22
- bl_operators/__init__.pyi +30 -24
- bl_operators/add_mesh_torus/__init__.pyi +171 -38
- bl_operators/anim/__init__.pyi +1065 -227
- bl_operators/assets/__init__.pyi +427 -93
- bl_operators/bmesh/__init__.pyi +0 -1
- bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
- bl_operators/clip/__init__.pyi +1342 -288
- bl_operators/console/__init__.pyi +647 -141
- bl_operators/constraint/__init__.pyi +524 -113
- bl_operators/file/__init__.pyi +396 -85
- bl_operators/freestyle/__init__.pyi +532 -114
- bl_operators/geometry_nodes/__init__.pyi +2412 -597
- bl_operators/image/__init__.pyi +380 -83
- bl_operators/mesh/__init__.pyi +401 -86
- bl_operators/node/__init__.pyi +1756 -385
- bl_operators/object/__init__.pyi +2022 -553
- bl_operators/object_align/__init__.pyi +145 -32
- bl_operators/object_quick_effects/__init__.pyi +555 -125
- bl_operators/object_randomize_transform/__init__.pyi +136 -33
- bl_operators/presets/__init__.pyi +3516 -709
- bl_operators/rigidbody/__init__.pyi +401 -86
- bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
- bl_operators/sequencer/__init__.pyi +731 -150
- bl_operators/spreadsheet/__init__.pyi +145 -31
- bl_operators/userpref/__init__.pyi +3416 -825
- bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
- bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
- bl_operators/uvcalc_transform/__init__.pyi +344 -74
- bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
- bl_operators/view3d/__init__.pyi +697 -147
- bl_operators/wm/__init__.pyi +6287 -1534
- bl_previews_utils/__init__.pyi +0 -1
- bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
- bl_rna_utils/__init__.pyi +0 -1
- bl_rna_utils/data_path/__init__.pyi +12 -3
- bl_text_utils/__init__.pyi +0 -1
- bl_text_utils/external_editor/__init__.pyi +4 -2
- bl_ui/__init__.pyi +567 -170
- bl_ui/anim/__init__.pyi +164 -34
- bl_ui/asset_shelf/__init__.pyi +146 -32
- bl_ui/generic_ui_list/__init__.pyi +471 -100
- bl_ui/node_add_menu/__init__.pyi +196 -41
- bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
- bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
- bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
- bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
- bl_ui/properties_animviz/__init__.pyi +32 -3
- bl_ui/properties_collection/__init__.pyi +787 -180
- bl_ui/properties_constraint/__init__.pyi +28635 -5524
- bl_ui/properties_data_armature/__init__.pyi +1905 -449
- bl_ui/properties_data_bone/__init__.pyi +1560 -337
- bl_ui/properties_data_camera/__init__.pyi +2269 -495
- bl_ui/properties_data_curve/__init__.pyi +2362 -535
- bl_ui/properties_data_curves/__init__.pyi +951 -204
- bl_ui/properties_data_empty/__init__.pyi +317 -70
- bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
- bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
- bl_ui/properties_data_lattice/__init__.pyi +472 -105
- bl_ui/properties_data_light/__init__.pyi +1570 -338
- bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
- bl_ui/properties_data_mesh/__init__.pyi +3205 -768
- bl_ui/properties_data_metaball/__init__.pyi +774 -171
- bl_ui/properties_data_modifier/__init__.pyi +1554 -329
- bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
- bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
- bl_ui/properties_data_speaker/__init__.pyi +782 -169
- bl_ui/properties_data_volume/__init__.pyi +1243 -282
- bl_ui/properties_freestyle/__init__.pyi +4071 -1031
- bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
- bl_ui/properties_mask_common/__init__.pyi +1256 -250
- bl_ui/properties_material/__init__.pyi +2351 -543
- bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
- bl_ui/properties_object/__init__.pyi +2179 -513
- bl_ui/properties_output/__init__.pyi +2956 -706
- bl_ui/properties_paint_common/__init__.pyi +947 -141
- bl_ui/properties_particle/__init__.pyi +8322 -1971
- bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
- bl_ui/properties_physics_common/__init__.pyi +200 -45
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
- bl_ui/properties_physics_field/__init__.pyi +1695 -365
- bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
- bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
- bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
- bl_ui/properties_render/__init__.pyi +8312 -1934
- bl_ui/properties_scene/__init__.pyi +2211 -540
- bl_ui/properties_texture/__init__.pyi +4185 -1014
- bl_ui/properties_view_layer/__init__.pyi +2803 -665
- bl_ui/properties_workspace/__init__.pyi +626 -149
- bl_ui/properties_world/__init__.pyi +1092 -235
- bl_ui/space_clip/__init__.pyi +11475 -2806
- bl_ui/space_console/__init__.pyi +967 -203
- bl_ui/space_dopesheet/__init__.pyi +4260 -967
- bl_ui/space_filebrowser/__init__.pyi +4852 -1188
- bl_ui/space_graph/__init__.pyi +3251 -703
- bl_ui/space_image/__init__.pyi +12218 -2968
- bl_ui/space_info/__init__.pyi +964 -201
- bl_ui/space_nla/__init__.pyi +2756 -585
- bl_ui/space_node/__init__.pyi +5661 -1266
- bl_ui/space_outliner/__init__.pyi +2294 -479
- bl_ui/space_properties/__init__.pyi +417 -93
- bl_ui/space_sequencer/__init__.pyi +12436 -3010
- bl_ui/space_spreadsheet/__init__.pyi +184 -37
- bl_ui/space_statusbar/__init__.pyi +135 -31
- bl_ui/space_text/__init__.pyi +2556 -543
- bl_ui/space_time/__init__.pyi +1151 -244
- bl_ui/space_toolsystem_common/__init__.pyi +368 -67
- bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
- bl_ui/space_topbar/__init__.pyi +4214 -888
- bl_ui/space_userpref/__init__.pyi +13920 -3468
- bl_ui/space_view3d/__init__.pyi +42751 -9613
- bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
- bl_ui/utils/__init__.pyi +42 -5
- bl_ui_utils/__init__.pyi +0 -1
- bl_ui_utils/bug_report_url/__init__.pyi +4 -2
- bl_ui_utils/layout/__init__.pyi +4 -2
- blend_render_info/__init__.pyi +13 -4
- blf/__init__.pyi +15 -18
- bmesh/__init__.pyi +18 -18
- bmesh/geometry/__init__.pyi +5 -6
- bmesh/ops/__init__.pyi +1337 -1158
- bmesh/types/__init__.pyi +464 -374
- bmesh/utils/__init__.pyi +64 -70
- bpy/__init__.pyi +6 -7
- bpy/app/__init__.pyi +36 -38
- bpy/app/handlers/__init__.pyi +37 -38
- bpy/app/icons/__init__.pyi +8 -11
- bpy/app/timers/__init__.pyi +18 -17
- bpy/app/translations/__init__.pyi +32 -30
- bpy/msgbus/__init__.pyi +25 -20
- bpy/ops/__init__.pyi +63 -64
- bpy/ops/action/__init__.pyi +408 -436
- bpy/ops/anim/__init__.pyi +459 -577
- bpy/ops/armature/__init__.pyi +396 -498
- bpy/ops/asset/__init__.pyi +187 -213
- bpy/ops/boid/__init__.pyi +50 -68
- bpy/ops/brush/__init__.pyi +72 -97
- bpy/ops/buttons/__init__.pyi +202 -193
- bpy/ops/cachefile/__init__.pyi +198 -188
- bpy/ops/camera/__init__.pyi +24 -31
- bpy/ops/clip/__init__.pyi +1021 -1082
- bpy/ops/cloth/__init__.pyi +11 -15
- bpy/ops/collection/__init__.pyi +36 -51
- bpy/ops/console/__init__.pyi +155 -209
- bpy/ops/constraint/__init__.pyi +286 -254
- bpy/ops/curve/__init__.pyi +597 -659
- bpy/ops/curves/__init__.pyi +191 -225
- bpy/ops/cycles/__init__.pyi +21 -30
- bpy/ops/dpaint/__init__.pyi +34 -47
- bpy/ops/ed/__init__.pyi +160 -176
- bpy/ops/export_anim/__init__.pyi +51 -34
- bpy/ops/export_mesh/__init__.pyi +47 -45
- bpy/ops/export_scene/__init__.pyi +659 -504
- bpy/ops/file/__init__.pyi +469 -474
- bpy/ops/fluid/__init__.pyi +89 -119
- bpy/ops/font/__init__.pyi +325 -361
- bpy/ops/geometry/__init__.pyi +86 -114
- bpy/ops/gizmogroup/__init__.pyi +22 -28
- bpy/ops/gpencil/__init__.pyi +1900 -1976
- bpy/ops/graph/__init__.pyi +875 -894
- bpy/ops/grease_pencil/__init__.pyi +572 -508
- bpy/ops/image/__init__.pyi +805 -855
- bpy/ops/import_anim/__init__.pyi +66 -46
- bpy/ops/import_curve/__init__.pyi +7 -11
- bpy/ops/import_mesh/__init__.pyi +19 -25
- bpy/ops/import_scene/__init__.pyi +164 -147
- bpy/ops/info/__init__.pyi +88 -85
- bpy/ops/lattice/__init__.pyi +86 -90
- bpy/ops/marker/__init__.pyi +135 -146
- bpy/ops/mask/__init__.pyi +372 -436
- bpy/ops/material/__init__.pyi +18 -25
- bpy/ops/mball/__init__.pyi +93 -99
- bpy/ops/mesh/__init__.pyi +2525 -2664
- bpy/ops/nla/__init__.pyi +398 -455
- bpy/ops/node/__init__.pyi +1015 -1207
- bpy/ops/object/__init__.pyi +3423 -3390
- bpy/ops/outliner/__init__.pyi +667 -685
- bpy/ops/paint/__init__.pyi +719 -672
- bpy/ops/paintcurve/__init__.pyi +64 -85
- bpy/ops/palette/__init__.pyi +48 -67
- bpy/ops/particle/__init__.pyi +323 -367
- bpy/ops/pose/__init__.pyi +569 -474
- bpy/ops/poselib/__init__.pyi +77 -100
- bpy/ops/preferences/__init__.pyi +460 -512
- bpy/ops/ptcache/__init__.pyi +46 -63
- bpy/ops/render/__init__.pyi +121 -155
- bpy/ops/rigidbody/__init__.pyi +148 -143
- bpy/ops/scene/__init__.pyi +336 -380
- bpy/ops/screen/__init__.pyi +454 -530
- bpy/ops/script/__init__.pyi +19 -28
- bpy/ops/sculpt/__init__.pyi +734 -587
- bpy/ops/sculpt_curves/__init__.pyi +51 -56
- bpy/ops/sequencer/__init__.pyi +1617 -1500
- bpy/ops/sound/__init__.pyi +392 -315
- bpy/ops/spreadsheet/__init__.pyi +31 -42
- bpy/ops/surface/__init__.pyi +198 -163
- bpy/ops/text/__init__.pyi +479 -545
- bpy/ops/text_editor/__init__.pyi +11 -15
- bpy/ops/texture/__init__.pyi +26 -36
- bpy/ops/transform/__init__.pyi +825 -941
- bpy/ops/ui/__init__.pyi +246 -295
- bpy/ops/uilist/__init__.pyi +34 -38
- bpy/ops/uv/__init__.pyi +912 -824
- bpy/ops/view2d/__init__.pyi +157 -197
- bpy/ops/view3d/__init__.pyi +777 -878
- bpy/ops/wm/__init__.pyi +4102 -3595
- bpy/ops/workspace/__init__.pyi +42 -58
- bpy/ops/world/__init__.pyi +6 -9
- bpy/path/__init__.pyi +166 -109
- bpy/props/__init__.pyi +478 -395
- bpy/types/__init__.pyi +87194 -81467
- bpy/utils/__init__.pyi +325 -169
- bpy/utils/previews/__init__.pyi +108 -21
- bpy/utils/units/__init__.pyi +37 -39
- bpy_extras/__init__.pyi +4 -9
- bpy_extras/anim_utils/__init__.pyi +25 -55
- bpy_extras/asset_utils/__init__.pyi +3 -13
- bpy_extras/id_map_utils/__init__.pyi +1 -4
- bpy_extras/image_utils/__init__.pyi +33 -23
- bpy_extras/io_utils/__init__.pyi +116 -66
- bpy_extras/keyconfig_utils/__init__.pyi +5 -3
- bpy_extras/mesh_utils/__init__.pyi +42 -34
- bpy_extras/node_utils/__init__.pyi +4 -4
- bpy_extras/object_utils/__init__.pyi +58 -43
- bpy_extras/view3d_utils/__init__.pyi +64 -63
- bpy_restrict_state/__init__.pyi +14 -2
- bpy_types/__init__.pyi +3873 -998
- console_python/__init__.pyi +41 -8
- console_shell/__init__.pyi +24 -6
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
- fake_bpy_module-20240326.dist-info/RECORD +343 -0
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
- freestyle/__init__.pyi +4 -5
- freestyle/chainingiterators/__init__.pyi +229 -73
- freestyle/functions/__init__.pyi +624 -402
- freestyle/predicates/__init__.pyi +381 -169
- freestyle/shaders/__init__.pyi +424 -155
- freestyle/types/__init__.pyi +1572 -726
- freestyle/utils/ContextFunctions/__init__.pyi +54 -43
- freestyle/utils/__init__.pyi +67 -31
- gpu/__init__.pyi +3 -4
- gpu/capabilities/__init__.pyi +57 -37
- gpu/matrix/__init__.pyi +14 -17
- gpu/platform/__init__.pyi +5 -6
- gpu/select/__init__.pyi +2 -5
- gpu/shader/__init__.pyi +14 -12
- gpu/state/__init__.pyi +48 -62
- gpu/texture/__init__.pyi +7 -7
- gpu/types/__init__.pyi +670 -229
- gpu_extras/__init__.pyi +1 -2
- gpu_extras/batch/__init__.pyi +27 -6
- gpu_extras/presets/__init__.pyi +67 -27
- graphviz_export/__init__.pyi +9 -3
- idprop/__init__.pyi +0 -1
- idprop/types/__init__.pyi +42 -13
- imbuf/__init__.pyi +6 -10
- imbuf/types/__init__.pyi +8 -16
- keyingsets_builtins/__init__.pyi +3149 -702
- keyingsets_utils/__init__.pyi +69 -15
- mathutils/__init__.pyi +951 -876
- mathutils/bvhtree/__init__.pyi +47 -48
- mathutils/geometry/__init__.pyi +237 -242
- mathutils/interpolate/__init__.pyi +3 -6
- mathutils/kdtree/__init__.pyi +23 -26
- mathutils/noise/__init__.pyi +50 -51
- nodeitems_builtins/__init__.pyi +50 -11
- nodeitems_utils/__init__.pyi +58 -11
- rna_info/__init__.pyi +230 -27
- rna_keymap_ui/__init__.pyi +29 -7
- rna_prop_ui/__init__.pyi +69 -13
- rna_xml/__init__.pyi +29 -7
- sys_info/__init__.pyi +4 -2
- bpy_extras/bmesh_utils/__init__.pyi +0 -7
- bpy_extras/extensions/__init__.pyi +0 -5
- bpy_extras/extensions/junction_module/__init__.pyi +0 -13
- bpy_extras/node_shader_utils/__init__.pyi +0 -132
- bpy_extras/wm_utils/__init__.pyi +0 -5
- bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
- fake_bpy_module-20240210.dist-info/RECORD +0 -349
- {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
|
@@ -1,283 +1,308 @@
|
|
|
1
|
-
import sys
|
|
2
1
|
import typing
|
|
3
|
-
import bpy.types
|
|
4
2
|
import bpy.ops.transform
|
|
3
|
+
import bpy.types
|
|
5
4
|
|
|
6
5
|
GenericType = typing.TypeVar("GenericType")
|
|
7
6
|
|
|
8
7
|
def brush_stroke(
|
|
9
|
-
override_context: typing.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*,
|
|
15
|
-
stroke: typing.Optional[
|
|
16
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorStrokeElement"]
|
|
17
|
-
] = None,
|
|
18
|
-
mode: typing.Optional[typing.Any] = "NORMAL",
|
|
8
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
9
|
+
execution_context: typing.Union[str, int] = None,
|
|
10
|
+
undo: bool = None,
|
|
11
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
12
|
+
mode: typing.Any = "NORMAL",
|
|
19
13
|
):
|
|
20
14
|
"""Draw a new stroke in the active Grease Pencil object
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
17
|
+
:type execution_context: typing.Union[str, int]
|
|
18
|
+
:type undo: bool
|
|
19
|
+
:param stroke: Stroke
|
|
20
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
21
|
+
:param mode: Stroke Mode, Action taken when a paint stroke is made
|
|
22
|
+
|
|
23
|
+
NORMAL
|
|
24
|
+
Regular -- Apply brush normally.
|
|
25
|
+
|
|
26
|
+
INVERT
|
|
27
|
+
Invert -- Invert action of brush for duration of stroke.
|
|
28
|
+
|
|
29
|
+
SMOOTH
|
|
30
|
+
Smooth -- Switch brush to smooth mode for duration of stroke.
|
|
31
|
+
:type mode: typing.Any
|
|
29
32
|
"""
|
|
30
33
|
|
|
31
34
|
...
|
|
32
35
|
|
|
33
36
|
def caps_set(
|
|
34
|
-
override_context: typing.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
undo: typing.Optional[bool] = None,
|
|
39
|
-
*,
|
|
40
|
-
type: typing.Optional[typing.Any] = "ROUND",
|
|
37
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
38
|
+
execution_context: typing.Union[str, int] = None,
|
|
39
|
+
undo: bool = None,
|
|
40
|
+
type: typing.Any = "ROUND",
|
|
41
41
|
):
|
|
42
42
|
"""Change curve caps mode (rounded or flat)
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
45
|
+
:type execution_context: typing.Union[str, int]
|
|
46
|
+
:type undo: bool
|
|
47
|
+
:param type: Type
|
|
48
|
+
|
|
49
|
+
ROUND
|
|
50
|
+
Rounded -- Set as default rounded.
|
|
51
|
+
|
|
52
|
+
FLAT
|
|
53
|
+
Flat.
|
|
54
|
+
|
|
55
|
+
START
|
|
56
|
+
Toggle Start.
|
|
57
|
+
|
|
58
|
+
END
|
|
59
|
+
Toggle End.
|
|
60
|
+
:type type: typing.Any
|
|
49
61
|
"""
|
|
50
62
|
|
|
51
63
|
...
|
|
52
64
|
|
|
53
65
|
def clean_loose(
|
|
54
|
-
override_context: typing.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
undo: typing.Optional[bool] = None,
|
|
59
|
-
*,
|
|
60
|
-
limit: typing.Optional[typing.Any] = 1,
|
|
66
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
67
|
+
execution_context: typing.Union[str, int] = None,
|
|
68
|
+
undo: bool = None,
|
|
69
|
+
limit: typing.Any = 1,
|
|
61
70
|
):
|
|
62
71
|
"""Remove loose points
|
|
63
72
|
|
|
64
|
-
:type override_context: typing.
|
|
65
|
-
:type execution_context: typing.
|
|
66
|
-
:type undo:
|
|
73
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
74
|
+
:type execution_context: typing.Union[str, int]
|
|
75
|
+
:type undo: bool
|
|
67
76
|
:param limit: Limit, Number of points to consider stroke as loose
|
|
68
|
-
:type limit: typing.
|
|
77
|
+
:type limit: typing.Any
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
...
|
|
81
|
+
|
|
82
|
+
def copy(
|
|
83
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
84
|
+
execution_context: typing.Union[str, int] = None,
|
|
85
|
+
undo: bool = None,
|
|
86
|
+
):
|
|
87
|
+
"""Copy the selected Grease Pencil points or strokes to the internal clipboard
|
|
88
|
+
|
|
89
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
90
|
+
:type execution_context: typing.Union[str, int]
|
|
91
|
+
:type undo: bool
|
|
69
92
|
"""
|
|
70
93
|
|
|
71
94
|
...
|
|
72
95
|
|
|
73
96
|
def cyclical_set(
|
|
74
|
-
override_context: typing.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
undo: typing.Optional[bool] = None,
|
|
79
|
-
*,
|
|
80
|
-
type: typing.Optional[typing.Any] = "TOGGLE",
|
|
97
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
98
|
+
execution_context: typing.Union[str, int] = None,
|
|
99
|
+
undo: bool = None,
|
|
100
|
+
type: typing.Any = "TOGGLE",
|
|
81
101
|
):
|
|
82
102
|
"""Close or open the selected stroke adding a segment from last to first point
|
|
83
103
|
|
|
84
|
-
:type override_context: typing.
|
|
85
|
-
:type execution_context: typing.
|
|
86
|
-
:type undo:
|
|
104
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
105
|
+
:type execution_context: typing.Union[str, int]
|
|
106
|
+
:type undo: bool
|
|
87
107
|
:param type: Type
|
|
88
|
-
:type type: typing.
|
|
108
|
+
:type type: typing.Any
|
|
89
109
|
"""
|
|
90
110
|
|
|
91
111
|
...
|
|
92
112
|
|
|
93
113
|
def delete(
|
|
94
|
-
override_context: typing.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
98
|
-
undo: typing.Optional[bool] = None,
|
|
114
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
115
|
+
execution_context: typing.Union[str, int] = None,
|
|
116
|
+
undo: bool = None,
|
|
99
117
|
):
|
|
100
118
|
"""Delete selected strokes or points
|
|
101
119
|
|
|
102
|
-
:type override_context: typing.
|
|
103
|
-
:type execution_context: typing.
|
|
104
|
-
:type undo:
|
|
120
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
121
|
+
:type execution_context: typing.Union[str, int]
|
|
122
|
+
:type undo: bool
|
|
105
123
|
"""
|
|
106
124
|
|
|
107
125
|
...
|
|
108
126
|
|
|
109
127
|
def delete_frame(
|
|
110
|
-
override_context: typing.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
undo: typing.Optional[bool] = None,
|
|
115
|
-
*,
|
|
116
|
-
type: typing.Optional[typing.Any] = "ACTIVE_FRAME",
|
|
128
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
129
|
+
execution_context: typing.Union[str, int] = None,
|
|
130
|
+
undo: bool = None,
|
|
131
|
+
type: typing.Any = "ACTIVE_FRAME",
|
|
117
132
|
):
|
|
118
133
|
"""Delete Grease Pencil Frame(s)
|
|
119
134
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
135
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
136
|
+
:type execution_context: typing.Union[str, int]
|
|
137
|
+
:type undo: bool
|
|
138
|
+
:param type: Type, Method used for deleting Grease Pencil frames
|
|
139
|
+
|
|
140
|
+
ACTIVE_FRAME
|
|
141
|
+
Active Frame -- Deletes current frame in the active layer.
|
|
142
|
+
|
|
143
|
+
ALL_FRAMES
|
|
144
|
+
All Active Frames -- Delete active frames for all layers.
|
|
145
|
+
:type type: typing.Any
|
|
125
146
|
"""
|
|
126
147
|
|
|
127
148
|
...
|
|
128
149
|
|
|
129
150
|
def dissolve(
|
|
130
|
-
override_context: typing.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
undo: typing.Optional[bool] = None,
|
|
135
|
-
*,
|
|
136
|
-
type: typing.Optional[typing.Any] = "POINTS",
|
|
151
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
152
|
+
execution_context: typing.Union[str, int] = None,
|
|
153
|
+
undo: bool = None,
|
|
154
|
+
type: typing.Any = "POINTS",
|
|
137
155
|
):
|
|
138
156
|
"""Delete selected points without splitting strokes
|
|
139
157
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
159
|
+
:type execution_context: typing.Union[str, int]
|
|
160
|
+
:type undo: bool
|
|
161
|
+
:param type: Type, Method used for dissolving stroke points
|
|
162
|
+
|
|
163
|
+
POINTS
|
|
164
|
+
Dissolve -- Dissolve selected points.
|
|
165
|
+
|
|
166
|
+
BETWEEN
|
|
167
|
+
Dissolve Between -- Dissolve points between selected points.
|
|
168
|
+
|
|
169
|
+
UNSELECT
|
|
170
|
+
Dissolve Unselect -- Dissolve all unselected points.
|
|
171
|
+
:type type: typing.Any
|
|
145
172
|
"""
|
|
146
173
|
|
|
147
174
|
...
|
|
148
175
|
|
|
149
176
|
def draw_mode_toggle(
|
|
150
|
-
override_context: typing.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
154
|
-
undo: typing.Optional[bool] = None,
|
|
177
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
178
|
+
execution_context: typing.Union[str, int] = None,
|
|
179
|
+
undo: bool = None,
|
|
155
180
|
):
|
|
156
181
|
"""Enter/Exit draw mode for grease pencil
|
|
157
182
|
|
|
158
|
-
:type override_context: typing.
|
|
159
|
-
:type execution_context: typing.
|
|
160
|
-
:type undo:
|
|
183
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
184
|
+
:type execution_context: typing.Union[str, int]
|
|
185
|
+
:type undo: bool
|
|
161
186
|
"""
|
|
162
187
|
|
|
163
188
|
...
|
|
164
189
|
|
|
165
190
|
def duplicate(
|
|
166
|
-
override_context: typing.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
170
|
-
undo: typing.Optional[bool] = None,
|
|
191
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
192
|
+
execution_context: typing.Union[str, int] = None,
|
|
193
|
+
undo: bool = None,
|
|
171
194
|
):
|
|
172
195
|
"""Duplicate the selected points
|
|
173
196
|
|
|
174
|
-
:type override_context: typing.
|
|
175
|
-
:type execution_context: typing.
|
|
176
|
-
:type undo:
|
|
197
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
198
|
+
:type execution_context: typing.Union[str, int]
|
|
199
|
+
:type undo: bool
|
|
177
200
|
"""
|
|
178
201
|
|
|
179
202
|
...
|
|
180
203
|
|
|
181
204
|
def duplicate_move(
|
|
182
|
-
override_context: typing.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
*,
|
|
188
|
-
GREASE_PENCIL_OT_duplicate: typing.Optional[typing.Any] = None,
|
|
189
|
-
TRANSFORM_OT_translate: typing.Optional["bpy.ops.transform.translate"] = None,
|
|
205
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
206
|
+
execution_context: typing.Union[str, int] = None,
|
|
207
|
+
undo: bool = None,
|
|
208
|
+
GREASE_PENCIL_OT_duplicate: typing.Any = None,
|
|
209
|
+
TRANSFORM_OT_translate: bpy.ops.transform.translate = None,
|
|
190
210
|
):
|
|
191
211
|
"""Make copies of the selected Grease Pencil strokes and move them
|
|
192
212
|
|
|
193
|
-
:type override_context: typing.
|
|
194
|
-
:type execution_context: typing.
|
|
195
|
-
:type undo:
|
|
213
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
214
|
+
:type execution_context: typing.Union[str, int]
|
|
215
|
+
:type undo: bool
|
|
196
216
|
:param GREASE_PENCIL_OT_duplicate: Duplicate, Duplicate the selected points
|
|
197
|
-
:type GREASE_PENCIL_OT_duplicate: typing.
|
|
217
|
+
:type GREASE_PENCIL_OT_duplicate: typing.Any
|
|
198
218
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
199
|
-
:type TRANSFORM_OT_translate:
|
|
219
|
+
:type TRANSFORM_OT_translate: bpy.ops.transform.translate
|
|
200
220
|
"""
|
|
201
221
|
|
|
202
222
|
...
|
|
203
223
|
|
|
204
224
|
def insert_blank_frame(
|
|
205
|
-
override_context: typing.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
*,
|
|
211
|
-
all_layers: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
212
|
-
duration: typing.Optional[typing.Any] = 0,
|
|
225
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
226
|
+
execution_context: typing.Union[str, int] = None,
|
|
227
|
+
undo: bool = None,
|
|
228
|
+
all_layers: typing.Union[bool, typing.Any] = False,
|
|
229
|
+
duration: typing.Any = 0,
|
|
213
230
|
):
|
|
214
231
|
"""Insert a blank frame on the current scene frame
|
|
215
232
|
|
|
216
|
-
:type override_context: typing.
|
|
217
|
-
:type execution_context: typing.
|
|
218
|
-
:type undo:
|
|
233
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
234
|
+
:type execution_context: typing.Union[str, int]
|
|
235
|
+
:type undo: bool
|
|
219
236
|
:param all_layers: All Layers, Insert a blank frame in all editable layers
|
|
220
|
-
:type all_layers: typing.
|
|
237
|
+
:type all_layers: typing.Union[bool, typing.Any]
|
|
221
238
|
:param duration: Duration
|
|
222
|
-
:type duration: typing.
|
|
239
|
+
:type duration: typing.Any
|
|
223
240
|
"""
|
|
224
241
|
|
|
225
242
|
...
|
|
226
243
|
|
|
227
244
|
def layer_active(
|
|
228
|
-
override_context: typing.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
undo: typing.Optional[bool] = None,
|
|
233
|
-
*,
|
|
234
|
-
layer: typing.Optional[typing.Any] = 0,
|
|
245
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
246
|
+
execution_context: typing.Union[str, int] = None,
|
|
247
|
+
undo: bool = None,
|
|
248
|
+
layer: typing.Any = 0,
|
|
235
249
|
):
|
|
236
250
|
"""Set the active Grease Pencil layer
|
|
237
251
|
|
|
238
|
-
:type override_context: typing.
|
|
239
|
-
:type execution_context: typing.
|
|
240
|
-
:type undo:
|
|
252
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
253
|
+
:type execution_context: typing.Union[str, int]
|
|
254
|
+
:type undo: bool
|
|
241
255
|
:param layer: Grease Pencil Layer
|
|
242
|
-
:type layer: typing.
|
|
256
|
+
:type layer: typing.Any
|
|
243
257
|
"""
|
|
244
258
|
|
|
245
259
|
...
|
|
246
260
|
|
|
247
261
|
def layer_add(
|
|
248
|
-
override_context: typing.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
252
|
-
undo: typing.Optional[bool] = None,
|
|
253
|
-
*,
|
|
262
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
263
|
+
execution_context: typing.Union[str, int] = None,
|
|
264
|
+
undo: bool = None,
|
|
254
265
|
new_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
255
266
|
):
|
|
256
267
|
"""Add a new Grease Pencil layer in the active object
|
|
257
268
|
|
|
258
|
-
:type override_context: typing.
|
|
259
|
-
:type execution_context: typing.
|
|
260
|
-
:type undo:
|
|
269
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
270
|
+
:type execution_context: typing.Union[str, int]
|
|
271
|
+
:type undo: bool
|
|
261
272
|
:param new_layer_name: Name, Name of the new layer
|
|
262
273
|
:type new_layer_name: typing.Union[str, typing.Any]
|
|
263
274
|
"""
|
|
264
275
|
|
|
265
276
|
...
|
|
266
277
|
|
|
278
|
+
def layer_duplicate(
|
|
279
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
280
|
+
execution_context: typing.Union[str, int] = None,
|
|
281
|
+
undo: bool = None,
|
|
282
|
+
empty_keyframes: typing.Union[bool, typing.Any] = False,
|
|
283
|
+
):
|
|
284
|
+
"""Make a copy of the active Grease Pencil layer
|
|
285
|
+
|
|
286
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
287
|
+
:type execution_context: typing.Union[str, int]
|
|
288
|
+
:type undo: bool
|
|
289
|
+
:param empty_keyframes: Empty Keyframes, Add Empty Keyframes
|
|
290
|
+
:type empty_keyframes: typing.Union[bool, typing.Any]
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
...
|
|
294
|
+
|
|
267
295
|
def layer_group_add(
|
|
268
|
-
override_context: typing.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
272
|
-
undo: typing.Optional[bool] = None,
|
|
273
|
-
*,
|
|
296
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
297
|
+
execution_context: typing.Union[str, int] = None,
|
|
298
|
+
undo: bool = None,
|
|
274
299
|
new_layer_group_name: typing.Union[str, typing.Any] = "",
|
|
275
300
|
):
|
|
276
301
|
"""Add a new Grease Pencil layer group in the active object
|
|
277
302
|
|
|
278
|
-
:type override_context: typing.
|
|
279
|
-
:type execution_context: typing.
|
|
280
|
-
:type undo:
|
|
303
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
304
|
+
:type execution_context: typing.Union[str, int]
|
|
305
|
+
:type undo: bool
|
|
281
306
|
:param new_layer_group_name: Name, Name of the new layer group
|
|
282
307
|
:type new_layer_group_name: typing.Union[str, typing.Any]
|
|
283
308
|
"""
|
|
@@ -285,530 +310,583 @@ def layer_group_add(
|
|
|
285
310
|
...
|
|
286
311
|
|
|
287
312
|
def layer_hide(
|
|
288
|
-
override_context: typing.
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
undo: typing.Optional[bool] = None,
|
|
293
|
-
*,
|
|
294
|
-
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
313
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
314
|
+
execution_context: typing.Union[str, int] = None,
|
|
315
|
+
undo: bool = None,
|
|
316
|
+
unselected: typing.Union[bool, typing.Any] = False,
|
|
295
317
|
):
|
|
296
318
|
"""Hide selected/unselected Grease Pencil layers
|
|
297
319
|
|
|
298
|
-
:type override_context: typing.
|
|
299
|
-
:type execution_context: typing.
|
|
300
|
-
:type undo:
|
|
320
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
321
|
+
:type execution_context: typing.Union[str, int]
|
|
322
|
+
:type undo: bool
|
|
301
323
|
:param unselected: Unselected, Hide unselected rather than selected layers
|
|
302
|
-
:type unselected: typing.
|
|
324
|
+
:type unselected: typing.Union[bool, typing.Any]
|
|
303
325
|
"""
|
|
304
326
|
|
|
305
327
|
...
|
|
306
328
|
|
|
307
329
|
def layer_isolate(
|
|
308
|
-
override_context: typing.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
undo: typing.Optional[bool] = None,
|
|
313
|
-
*,
|
|
314
|
-
affect_visibility: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
330
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
331
|
+
execution_context: typing.Union[str, int] = None,
|
|
332
|
+
undo: bool = None,
|
|
333
|
+
affect_visibility: typing.Union[bool, typing.Any] = False,
|
|
315
334
|
):
|
|
316
335
|
"""Make only active layer visible/editable
|
|
317
336
|
|
|
318
|
-
:type override_context: typing.
|
|
319
|
-
:type execution_context: typing.
|
|
320
|
-
:type undo:
|
|
337
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
338
|
+
:type execution_context: typing.Union[str, int]
|
|
339
|
+
:type undo: bool
|
|
321
340
|
:param affect_visibility: Affect Visibility, Also affect the visibility
|
|
322
|
-
:type affect_visibility: typing.
|
|
341
|
+
:type affect_visibility: typing.Union[bool, typing.Any]
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
...
|
|
345
|
+
|
|
346
|
+
def layer_lock_all(
|
|
347
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
348
|
+
execution_context: typing.Union[str, int] = None,
|
|
349
|
+
undo: bool = None,
|
|
350
|
+
lock: typing.Union[bool, typing.Any] = True,
|
|
351
|
+
):
|
|
352
|
+
"""Lock all Grease Pencil layers to prevent them from being accidentally modified
|
|
353
|
+
|
|
354
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
355
|
+
:type execution_context: typing.Union[str, int]
|
|
356
|
+
:type undo: bool
|
|
357
|
+
:param lock: Lock Value, Lock/Unlock all layers
|
|
358
|
+
:type lock: typing.Union[bool, typing.Any]
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
...
|
|
362
|
+
|
|
363
|
+
def layer_mask_add(
|
|
364
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
365
|
+
execution_context: typing.Union[str, int] = None,
|
|
366
|
+
undo: bool = None,
|
|
367
|
+
name: typing.Union[str, typing.Any] = "",
|
|
368
|
+
):
|
|
369
|
+
"""Add new layer as masking
|
|
370
|
+
|
|
371
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
372
|
+
:type execution_context: typing.Union[str, int]
|
|
373
|
+
:type undo: bool
|
|
374
|
+
:param name: Layer, Name of the layer
|
|
375
|
+
:type name: typing.Union[str, typing.Any]
|
|
376
|
+
"""
|
|
377
|
+
|
|
378
|
+
...
|
|
379
|
+
|
|
380
|
+
def layer_mask_remove(
|
|
381
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
382
|
+
execution_context: typing.Union[str, int] = None,
|
|
383
|
+
undo: bool = None,
|
|
384
|
+
):
|
|
385
|
+
"""Remove Layer Mask
|
|
386
|
+
|
|
387
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
388
|
+
:type execution_context: typing.Union[str, int]
|
|
389
|
+
:type undo: bool
|
|
390
|
+
"""
|
|
391
|
+
|
|
392
|
+
...
|
|
393
|
+
|
|
394
|
+
def layer_mask_reorder(
|
|
395
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
396
|
+
execution_context: typing.Union[str, int] = None,
|
|
397
|
+
undo: bool = None,
|
|
398
|
+
direction: typing.Any = "UP",
|
|
399
|
+
):
|
|
400
|
+
"""Reorder the active Grease Pencil mask layer up/down in the list
|
|
401
|
+
|
|
402
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
403
|
+
:type execution_context: typing.Union[str, int]
|
|
404
|
+
:type undo: bool
|
|
405
|
+
:param direction: Direction
|
|
406
|
+
:type direction: typing.Any
|
|
323
407
|
"""
|
|
324
408
|
|
|
325
409
|
...
|
|
326
410
|
|
|
327
411
|
def layer_remove(
|
|
328
|
-
override_context: typing.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
332
|
-
undo: typing.Optional[bool] = None,
|
|
412
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
413
|
+
execution_context: typing.Union[str, int] = None,
|
|
414
|
+
undo: bool = None,
|
|
333
415
|
):
|
|
334
416
|
"""Remove the active Grease Pencil layer
|
|
335
417
|
|
|
336
|
-
:type override_context: typing.
|
|
337
|
-
:type execution_context: typing.
|
|
338
|
-
:type undo:
|
|
418
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
419
|
+
:type execution_context: typing.Union[str, int]
|
|
420
|
+
:type undo: bool
|
|
339
421
|
"""
|
|
340
422
|
|
|
341
423
|
...
|
|
342
424
|
|
|
343
425
|
def layer_reorder(
|
|
344
|
-
override_context: typing.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
348
|
-
undo: typing.Optional[bool] = None,
|
|
349
|
-
*,
|
|
426
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
427
|
+
execution_context: typing.Union[str, int] = None,
|
|
428
|
+
undo: bool = None,
|
|
350
429
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
351
|
-
location: typing.
|
|
430
|
+
location: typing.Any = "ABOVE",
|
|
352
431
|
):
|
|
353
432
|
"""Reorder the active Grease Pencil layer
|
|
354
433
|
|
|
355
|
-
:type override_context: typing.
|
|
356
|
-
:type execution_context: typing.
|
|
357
|
-
:type undo:
|
|
434
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
435
|
+
:type execution_context: typing.Union[str, int]
|
|
436
|
+
:type undo: bool
|
|
358
437
|
:param target_layer_name: Target Name, Name of the target layer
|
|
359
438
|
:type target_layer_name: typing.Union[str, typing.Any]
|
|
360
439
|
:param location: Location
|
|
361
|
-
:type location: typing.
|
|
440
|
+
:type location: typing.Any
|
|
362
441
|
"""
|
|
363
442
|
|
|
364
443
|
...
|
|
365
444
|
|
|
366
445
|
def layer_reveal(
|
|
367
|
-
override_context: typing.
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
371
|
-
undo: typing.Optional[bool] = None,
|
|
446
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
447
|
+
execution_context: typing.Union[str, int] = None,
|
|
448
|
+
undo: bool = None,
|
|
372
449
|
):
|
|
373
450
|
"""Show all Grease Pencil layers
|
|
374
451
|
|
|
375
|
-
:type override_context: typing.
|
|
376
|
-
:type execution_context: typing.
|
|
377
|
-
:type undo:
|
|
452
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
453
|
+
:type execution_context: typing.Union[str, int]
|
|
454
|
+
:type undo: bool
|
|
378
455
|
"""
|
|
379
456
|
|
|
380
457
|
...
|
|
381
458
|
|
|
382
459
|
def material_copy_to_object(
|
|
383
|
-
override_context: typing.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
undo: typing.Optional[bool] = None,
|
|
388
|
-
*,
|
|
389
|
-
only_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
460
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
461
|
+
execution_context: typing.Union[str, int] = None,
|
|
462
|
+
undo: bool = None,
|
|
463
|
+
only_active: typing.Union[bool, typing.Any] = True,
|
|
390
464
|
):
|
|
391
465
|
"""Append Materials of the active Grease Pencil to other object
|
|
392
466
|
|
|
393
|
-
:type override_context: typing.
|
|
394
|
-
:type execution_context: typing.
|
|
395
|
-
:type undo:
|
|
467
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
468
|
+
:type execution_context: typing.Union[str, int]
|
|
469
|
+
:type undo: bool
|
|
396
470
|
:param only_active: Only Active, Append only active material, uncheck to append all materials
|
|
397
|
-
:type only_active: typing.
|
|
471
|
+
:type only_active: typing.Union[bool, typing.Any]
|
|
398
472
|
"""
|
|
399
473
|
|
|
400
474
|
...
|
|
401
475
|
|
|
402
476
|
def material_hide(
|
|
403
|
-
override_context: typing.
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
undo: typing.Optional[bool] = None,
|
|
408
|
-
*,
|
|
409
|
-
invert: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
477
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
478
|
+
execution_context: typing.Union[str, int] = None,
|
|
479
|
+
undo: bool = None,
|
|
480
|
+
invert: typing.Union[bool, typing.Any] = False,
|
|
410
481
|
):
|
|
411
482
|
"""Hide active/inactive Grease Pencil material(s)
|
|
412
483
|
|
|
413
|
-
:type override_context: typing.
|
|
414
|
-
:type execution_context: typing.
|
|
415
|
-
:type undo:
|
|
484
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
485
|
+
:type execution_context: typing.Union[str, int]
|
|
486
|
+
:type undo: bool
|
|
416
487
|
:param invert: Invert, Hide inactive materials instead of the active one
|
|
417
|
-
:type invert: typing.
|
|
488
|
+
:type invert: typing.Union[bool, typing.Any]
|
|
418
489
|
"""
|
|
419
490
|
|
|
420
491
|
...
|
|
421
492
|
|
|
422
493
|
def material_lock_all(
|
|
423
|
-
override_context: typing.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
427
|
-
undo: typing.Optional[bool] = None,
|
|
494
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
495
|
+
execution_context: typing.Union[str, int] = None,
|
|
496
|
+
undo: bool = None,
|
|
428
497
|
):
|
|
429
498
|
"""Lock all Grease Pencil materials to prevent them from being accidentally modified
|
|
430
499
|
|
|
431
|
-
:type override_context: typing.
|
|
432
|
-
:type execution_context: typing.
|
|
433
|
-
:type undo:
|
|
500
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
501
|
+
:type execution_context: typing.Union[str, int]
|
|
502
|
+
:type undo: bool
|
|
434
503
|
"""
|
|
435
504
|
|
|
436
505
|
...
|
|
437
506
|
|
|
438
507
|
def material_lock_unselected(
|
|
439
|
-
override_context: typing.
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
443
|
-
undo: typing.Optional[bool] = None,
|
|
508
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
509
|
+
execution_context: typing.Union[str, int] = None,
|
|
510
|
+
undo: bool = None,
|
|
444
511
|
):
|
|
445
512
|
"""Lock any material not used in any selected stroke
|
|
446
513
|
|
|
447
|
-
:type override_context: typing.
|
|
448
|
-
:type execution_context: typing.
|
|
449
|
-
:type undo:
|
|
514
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
515
|
+
:type execution_context: typing.Union[str, int]
|
|
516
|
+
:type undo: bool
|
|
450
517
|
"""
|
|
451
518
|
|
|
452
519
|
...
|
|
453
520
|
|
|
454
521
|
def material_lock_unused(
|
|
455
|
-
override_context: typing.
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
459
|
-
undo: typing.Optional[bool] = None,
|
|
522
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
523
|
+
execution_context: typing.Union[str, int] = None,
|
|
524
|
+
undo: bool = None,
|
|
460
525
|
):
|
|
461
526
|
"""Lock and hide any material not used
|
|
462
527
|
|
|
463
|
-
:type override_context: typing.
|
|
464
|
-
:type execution_context: typing.
|
|
465
|
-
:type undo:
|
|
528
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
529
|
+
:type execution_context: typing.Union[str, int]
|
|
530
|
+
:type undo: bool
|
|
466
531
|
"""
|
|
467
532
|
|
|
468
533
|
...
|
|
469
534
|
|
|
470
535
|
def material_reveal(
|
|
471
|
-
override_context: typing.
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
475
|
-
undo: typing.Optional[bool] = None,
|
|
536
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
537
|
+
execution_context: typing.Union[str, int] = None,
|
|
538
|
+
undo: bool = None,
|
|
476
539
|
):
|
|
477
540
|
"""Unhide all hidden Grease Pencil materials
|
|
478
541
|
|
|
479
|
-
:type override_context: typing.
|
|
480
|
-
:type execution_context: typing.
|
|
481
|
-
:type undo:
|
|
542
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
543
|
+
:type execution_context: typing.Union[str, int]
|
|
544
|
+
:type undo: bool
|
|
545
|
+
"""
|
|
546
|
+
|
|
547
|
+
...
|
|
548
|
+
|
|
549
|
+
def material_select(
|
|
550
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
551
|
+
execution_context: typing.Union[str, int] = None,
|
|
552
|
+
undo: bool = None,
|
|
553
|
+
deselect: typing.Union[bool, typing.Any] = False,
|
|
554
|
+
):
|
|
555
|
+
"""Select/Deselect all Grease Pencil strokes using current material
|
|
556
|
+
|
|
557
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
558
|
+
:type execution_context: typing.Union[str, int]
|
|
559
|
+
:type undo: bool
|
|
560
|
+
:param deselect: Deselect, Unselect strokes
|
|
561
|
+
:type deselect: typing.Union[bool, typing.Any]
|
|
482
562
|
"""
|
|
483
563
|
|
|
484
564
|
...
|
|
485
565
|
|
|
486
566
|
def material_unlock_all(
|
|
487
|
-
override_context: typing.
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
491
|
-
undo: typing.Optional[bool] = None,
|
|
567
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
568
|
+
execution_context: typing.Union[str, int] = None,
|
|
569
|
+
undo: bool = None,
|
|
492
570
|
):
|
|
493
571
|
"""Unlock all Grease Pencil materials so that they can be edited
|
|
494
572
|
|
|
495
|
-
:type override_context: typing.
|
|
496
|
-
:type execution_context: typing.
|
|
497
|
-
:type undo:
|
|
573
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
574
|
+
:type execution_context: typing.Union[str, int]
|
|
575
|
+
:type undo: bool
|
|
498
576
|
"""
|
|
499
577
|
|
|
500
578
|
...
|
|
501
579
|
|
|
502
580
|
def move_to_layer(
|
|
503
|
-
override_context: typing.
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
507
|
-
undo: typing.Optional[bool] = None,
|
|
508
|
-
*,
|
|
581
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
582
|
+
execution_context: typing.Union[str, int] = None,
|
|
583
|
+
undo: bool = None,
|
|
509
584
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
510
|
-
add_new_layer: typing.
|
|
585
|
+
add_new_layer: typing.Union[bool, typing.Any] = False,
|
|
511
586
|
):
|
|
512
587
|
"""Move selected strokes to another layer
|
|
513
588
|
|
|
514
|
-
:type override_context: typing.
|
|
515
|
-
:type execution_context: typing.
|
|
516
|
-
:type undo:
|
|
589
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
590
|
+
:type execution_context: typing.Union[str, int]
|
|
591
|
+
:type undo: bool
|
|
517
592
|
:param target_layer_name: Name, Target Grease Pencil Layer
|
|
518
593
|
:type target_layer_name: typing.Union[str, typing.Any]
|
|
519
594
|
:param add_new_layer: New Layer, Move selection to a new layer
|
|
520
|
-
:type add_new_layer: typing.
|
|
595
|
+
:type add_new_layer: typing.Union[bool, typing.Any]
|
|
596
|
+
"""
|
|
597
|
+
|
|
598
|
+
...
|
|
599
|
+
|
|
600
|
+
def paste(
|
|
601
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
602
|
+
execution_context: typing.Union[str, int] = None,
|
|
603
|
+
undo: bool = None,
|
|
604
|
+
paste_back: typing.Union[bool, typing.Any] = False,
|
|
605
|
+
):
|
|
606
|
+
"""Paste Grease Pencil points or strokes from the internal clipboard to the active layer
|
|
607
|
+
|
|
608
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
609
|
+
:type execution_context: typing.Union[str, int]
|
|
610
|
+
:type undo: bool
|
|
611
|
+
:param paste_back: Paste on Back, Add pasted strokes behind all strokes
|
|
612
|
+
:type paste_back: typing.Union[bool, typing.Any]
|
|
521
613
|
"""
|
|
522
614
|
|
|
523
615
|
...
|
|
524
616
|
|
|
525
617
|
def reorder(
|
|
526
|
-
override_context: typing.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
undo: typing.Optional[bool] = None,
|
|
531
|
-
*,
|
|
532
|
-
direction: typing.Optional[typing.Any] = "TOP",
|
|
618
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
619
|
+
execution_context: typing.Union[str, int] = None,
|
|
620
|
+
undo: bool = None,
|
|
621
|
+
direction: typing.Any = "TOP",
|
|
533
622
|
):
|
|
534
623
|
"""Change the display order of the selected strokes
|
|
535
624
|
|
|
536
|
-
:type override_context: typing.
|
|
537
|
-
:type execution_context: typing.
|
|
538
|
-
:type undo:
|
|
625
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
626
|
+
:type execution_context: typing.Union[str, int]
|
|
627
|
+
:type undo: bool
|
|
539
628
|
:param direction: Direction
|
|
540
|
-
:type direction: typing.
|
|
629
|
+
:type direction: typing.Any
|
|
541
630
|
"""
|
|
542
631
|
|
|
543
632
|
...
|
|
544
633
|
|
|
545
634
|
def select_all(
|
|
546
|
-
override_context: typing.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
undo: typing.Optional[bool] = None,
|
|
551
|
-
*,
|
|
552
|
-
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
635
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
636
|
+
execution_context: typing.Union[str, int] = None,
|
|
637
|
+
undo: bool = None,
|
|
638
|
+
action: typing.Any = "TOGGLE",
|
|
553
639
|
):
|
|
554
640
|
"""(De)select all visible strokes
|
|
555
641
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
642
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
643
|
+
:type execution_context: typing.Union[str, int]
|
|
644
|
+
:type undo: bool
|
|
645
|
+
:param action: Action, Selection action to execute
|
|
646
|
+
|
|
647
|
+
TOGGLE
|
|
648
|
+
Toggle -- Toggle selection for all elements.
|
|
649
|
+
|
|
650
|
+
SELECT
|
|
651
|
+
Select -- Select all elements.
|
|
652
|
+
|
|
653
|
+
DESELECT
|
|
654
|
+
Deselect -- Deselect all elements.
|
|
655
|
+
|
|
656
|
+
INVERT
|
|
657
|
+
Invert -- Invert selection of all elements.
|
|
658
|
+
:type action: typing.Any
|
|
561
659
|
"""
|
|
562
660
|
|
|
563
661
|
...
|
|
564
662
|
|
|
565
663
|
def select_alternate(
|
|
566
|
-
override_context: typing.
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
undo: typing.Optional[bool] = None,
|
|
571
|
-
*,
|
|
572
|
-
deselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
664
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
665
|
+
execution_context: typing.Union[str, int] = None,
|
|
666
|
+
undo: bool = None,
|
|
667
|
+
deselect_ends: typing.Union[bool, typing.Any] = False,
|
|
573
668
|
):
|
|
574
669
|
"""Select alternated points in strokes with already selected points
|
|
575
670
|
|
|
576
|
-
:type override_context: typing.
|
|
577
|
-
:type execution_context: typing.
|
|
578
|
-
:type undo:
|
|
671
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
672
|
+
:type execution_context: typing.Union[str, int]
|
|
673
|
+
:type undo: bool
|
|
579
674
|
:param deselect_ends: Deselect Ends, (De)select the first and last point of each stroke
|
|
580
|
-
:type deselect_ends: typing.
|
|
675
|
+
:type deselect_ends: typing.Union[bool, typing.Any]
|
|
581
676
|
"""
|
|
582
677
|
|
|
583
678
|
...
|
|
584
679
|
|
|
585
680
|
def select_ends(
|
|
586
|
-
override_context: typing.
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
*,
|
|
592
|
-
amount_start: typing.Optional[typing.Any] = 0,
|
|
593
|
-
amount_end: typing.Optional[typing.Any] = 1,
|
|
681
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
682
|
+
execution_context: typing.Union[str, int] = None,
|
|
683
|
+
undo: bool = None,
|
|
684
|
+
amount_start: typing.Any = 0,
|
|
685
|
+
amount_end: typing.Any = 1,
|
|
594
686
|
):
|
|
595
687
|
"""Select end points of strokes
|
|
596
688
|
|
|
597
|
-
:type override_context: typing.
|
|
598
|
-
:type execution_context: typing.
|
|
599
|
-
:type undo:
|
|
689
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
690
|
+
:type execution_context: typing.Union[str, int]
|
|
691
|
+
:type undo: bool
|
|
600
692
|
:param amount_start: Amount Start, Number of points to select from the start
|
|
601
|
-
:type amount_start: typing.
|
|
693
|
+
:type amount_start: typing.Any
|
|
602
694
|
:param amount_end: Amount End, Number of points to select from the end
|
|
603
|
-
:type amount_end: typing.
|
|
695
|
+
:type amount_end: typing.Any
|
|
604
696
|
"""
|
|
605
697
|
|
|
606
698
|
...
|
|
607
699
|
|
|
608
700
|
def select_less(
|
|
609
|
-
override_context: typing.
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
613
|
-
undo: typing.Optional[bool] = None,
|
|
701
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
702
|
+
execution_context: typing.Union[str, int] = None,
|
|
703
|
+
undo: bool = None,
|
|
614
704
|
):
|
|
615
705
|
"""Shrink the selection by one point
|
|
616
706
|
|
|
617
|
-
:type override_context: typing.
|
|
618
|
-
:type execution_context: typing.
|
|
619
|
-
:type undo:
|
|
707
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
708
|
+
:type execution_context: typing.Union[str, int]
|
|
709
|
+
:type undo: bool
|
|
620
710
|
"""
|
|
621
711
|
|
|
622
712
|
...
|
|
623
713
|
|
|
624
714
|
def select_linked(
|
|
625
|
-
override_context: typing.
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
629
|
-
undo: typing.Optional[bool] = None,
|
|
715
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
716
|
+
execution_context: typing.Union[str, int] = None,
|
|
717
|
+
undo: bool = None,
|
|
630
718
|
):
|
|
631
719
|
"""Select all points in curves with any point selection
|
|
632
720
|
|
|
633
|
-
:type override_context: typing.
|
|
634
|
-
:type execution_context: typing.
|
|
635
|
-
:type undo:
|
|
721
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
722
|
+
:type execution_context: typing.Union[str, int]
|
|
723
|
+
:type undo: bool
|
|
636
724
|
"""
|
|
637
725
|
|
|
638
726
|
...
|
|
639
727
|
|
|
640
728
|
def select_more(
|
|
641
|
-
override_context: typing.
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
645
|
-
undo: typing.Optional[bool] = None,
|
|
729
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
730
|
+
execution_context: typing.Union[str, int] = None,
|
|
731
|
+
undo: bool = None,
|
|
646
732
|
):
|
|
647
733
|
"""Grow the selection by one point
|
|
648
734
|
|
|
649
|
-
:type override_context: typing.
|
|
650
|
-
:type execution_context: typing.
|
|
651
|
-
:type undo:
|
|
735
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
736
|
+
:type execution_context: typing.Union[str, int]
|
|
737
|
+
:type undo: bool
|
|
652
738
|
"""
|
|
653
739
|
|
|
654
740
|
...
|
|
655
741
|
|
|
656
742
|
def select_random(
|
|
657
|
-
override_context: typing.
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
ratio: typing.Optional[typing.Any] = 0.5,
|
|
664
|
-
seed: typing.Optional[typing.Any] = 0,
|
|
665
|
-
action: typing.Optional[typing.Any] = "SELECT",
|
|
743
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
744
|
+
execution_context: typing.Union[str, int] = None,
|
|
745
|
+
undo: bool = None,
|
|
746
|
+
ratio: typing.Any = 0.5,
|
|
747
|
+
seed: typing.Any = 0,
|
|
748
|
+
action: typing.Any = "SELECT",
|
|
666
749
|
):
|
|
667
750
|
"""Selects random points from the current strokes selection
|
|
668
751
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
752
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
753
|
+
:type execution_context: typing.Union[str, int]
|
|
754
|
+
:type undo: bool
|
|
755
|
+
:param ratio: Ratio, Portion of items to select randomly
|
|
756
|
+
:type ratio: typing.Any
|
|
757
|
+
:param seed: Random Seed, Seed for the random number generator
|
|
758
|
+
:type seed: typing.Any
|
|
759
|
+
:param action: Action, Selection action to execute
|
|
760
|
+
|
|
761
|
+
SELECT
|
|
762
|
+
Select -- Select all elements.
|
|
763
|
+
|
|
764
|
+
DESELECT
|
|
765
|
+
Deselect -- Deselect all elements.
|
|
766
|
+
:type action: typing.Any
|
|
678
767
|
"""
|
|
679
768
|
|
|
680
769
|
...
|
|
681
770
|
|
|
682
771
|
def separate(
|
|
683
|
-
override_context: typing.
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
undo: typing.Optional[bool] = None,
|
|
688
|
-
*,
|
|
689
|
-
mode: typing.Optional[typing.Any] = "SELECTED",
|
|
772
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
773
|
+
execution_context: typing.Union[str, int] = None,
|
|
774
|
+
undo: bool = None,
|
|
775
|
+
mode: typing.Any = "SELECTED",
|
|
690
776
|
):
|
|
691
777
|
"""Separate the selected geometry into a new grease pencil object
|
|
692
778
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
779
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
780
|
+
:type execution_context: typing.Union[str, int]
|
|
781
|
+
:type undo: bool
|
|
782
|
+
:param mode: Mode
|
|
783
|
+
|
|
784
|
+
SELECTED
|
|
785
|
+
Selection -- Separate selected geometry.
|
|
786
|
+
|
|
787
|
+
MATERIAL
|
|
788
|
+
By Material -- Separate by material.
|
|
789
|
+
|
|
790
|
+
LAYER
|
|
791
|
+
By Layer -- Separate by layer.
|
|
792
|
+
:type mode: typing.Any
|
|
698
793
|
"""
|
|
699
794
|
|
|
700
795
|
...
|
|
701
796
|
|
|
702
797
|
def set_active_material(
|
|
703
|
-
override_context: typing.
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
707
|
-
undo: typing.Optional[bool] = None,
|
|
798
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
799
|
+
execution_context: typing.Union[str, int] = None,
|
|
800
|
+
undo: bool = None,
|
|
708
801
|
):
|
|
709
802
|
"""Set the selected stroke material as the active material
|
|
710
803
|
|
|
711
|
-
:type override_context: typing.
|
|
712
|
-
:type execution_context: typing.
|
|
713
|
-
:type undo:
|
|
804
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
805
|
+
:type execution_context: typing.Union[str, int]
|
|
806
|
+
:type undo: bool
|
|
714
807
|
"""
|
|
715
808
|
|
|
716
809
|
...
|
|
717
810
|
|
|
718
811
|
def set_material(
|
|
719
|
-
override_context: typing.
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
undo: typing.Optional[bool] = None,
|
|
724
|
-
*,
|
|
725
|
-
slot: typing.Optional[typing.Union[str, int, typing.Any]] = "DEFAULT",
|
|
812
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
813
|
+
execution_context: typing.Union[str, int] = None,
|
|
814
|
+
undo: bool = None,
|
|
815
|
+
slot: typing.Union[str, int, typing.Any] = "DEFAULT",
|
|
726
816
|
):
|
|
727
817
|
"""Set active material
|
|
728
818
|
|
|
729
|
-
:type override_context: typing.
|
|
730
|
-
:type execution_context: typing.
|
|
731
|
-
:type undo:
|
|
819
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
820
|
+
:type execution_context: typing.Union[str, int]
|
|
821
|
+
:type undo: bool
|
|
732
822
|
:param slot: Material Slot
|
|
733
|
-
:type slot: typing.
|
|
823
|
+
:type slot: typing.Union[str, int, typing.Any]
|
|
734
824
|
"""
|
|
735
825
|
|
|
736
826
|
...
|
|
737
827
|
|
|
738
828
|
def set_selection_mode(
|
|
739
|
-
override_context: typing.
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
undo: typing.Optional[bool] = None,
|
|
744
|
-
*,
|
|
745
|
-
mode: typing.Optional[typing.Union[str, int]] = "POINT",
|
|
829
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
830
|
+
execution_context: typing.Union[str, int] = None,
|
|
831
|
+
undo: bool = None,
|
|
832
|
+
mode: typing.Any = "POINT",
|
|
746
833
|
):
|
|
747
834
|
"""Change the selection mode for Grease Pencil strokes
|
|
748
835
|
|
|
749
|
-
:type override_context: typing.
|
|
750
|
-
:type execution_context: typing.
|
|
751
|
-
:type undo:
|
|
836
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
837
|
+
:type execution_context: typing.Union[str, int]
|
|
838
|
+
:type undo: bool
|
|
752
839
|
:param mode: Mode
|
|
753
|
-
:type mode: typing.
|
|
840
|
+
:type mode: typing.Any
|
|
754
841
|
"""
|
|
755
842
|
|
|
756
843
|
...
|
|
757
844
|
|
|
758
845
|
def set_uniform_opacity(
|
|
759
|
-
override_context: typing.
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
undo: typing.Optional[bool] = None,
|
|
764
|
-
*,
|
|
765
|
-
opacity: typing.Optional[typing.Any] = 1.0,
|
|
846
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
847
|
+
execution_context: typing.Union[str, int] = None,
|
|
848
|
+
undo: bool = None,
|
|
849
|
+
opacity: typing.Any = 1.0,
|
|
766
850
|
):
|
|
767
851
|
"""Set all stroke points to same opacity
|
|
768
852
|
|
|
769
|
-
:type override_context: typing.
|
|
770
|
-
:type execution_context: typing.
|
|
771
|
-
:type undo:
|
|
853
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
854
|
+
:type execution_context: typing.Union[str, int]
|
|
855
|
+
:type undo: bool
|
|
772
856
|
:param opacity: Opacity
|
|
773
|
-
:type opacity: typing.
|
|
857
|
+
:type opacity: typing.Any
|
|
774
858
|
"""
|
|
775
859
|
|
|
776
860
|
...
|
|
777
861
|
|
|
778
862
|
def set_uniform_thickness(
|
|
779
|
-
override_context: typing.
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
undo: typing.Optional[bool] = None,
|
|
784
|
-
*,
|
|
785
|
-
thickness: typing.Optional[typing.Any] = 0.1,
|
|
863
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
864
|
+
execution_context: typing.Union[str, int] = None,
|
|
865
|
+
undo: bool = None,
|
|
866
|
+
thickness: typing.Any = 0.1,
|
|
786
867
|
):
|
|
787
868
|
"""Set all stroke points to same thickness
|
|
788
869
|
|
|
789
|
-
:type override_context: typing.
|
|
790
|
-
:type execution_context: typing.
|
|
791
|
-
:type undo:
|
|
870
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
871
|
+
:type execution_context: typing.Union[str, int]
|
|
872
|
+
:type undo: bool
|
|
792
873
|
:param thickness: Thickness, Thickness
|
|
793
|
-
:type thickness: typing.
|
|
874
|
+
:type thickness: typing.Any
|
|
794
875
|
"""
|
|
795
876
|
|
|
796
877
|
...
|
|
797
878
|
|
|
798
879
|
def stroke_material_set(
|
|
799
|
-
override_context: typing.
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
803
|
-
undo: typing.Optional[bool] = None,
|
|
804
|
-
*,
|
|
880
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
881
|
+
execution_context: typing.Union[str, int] = None,
|
|
882
|
+
undo: bool = None,
|
|
805
883
|
material: typing.Union[str, typing.Any] = "",
|
|
806
884
|
):
|
|
807
885
|
"""Assign the active material slot to the selected strokes
|
|
808
886
|
|
|
809
|
-
:type override_context: typing.
|
|
810
|
-
:type execution_context: typing.
|
|
811
|
-
:type undo:
|
|
887
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
888
|
+
:type execution_context: typing.Union[str, int]
|
|
889
|
+
:type undo: bool
|
|
812
890
|
:param material: Material, Name of the material
|
|
813
891
|
:type material: typing.Union[str, typing.Any]
|
|
814
892
|
"""
|
|
@@ -816,121 +894,107 @@ def stroke_material_set(
|
|
|
816
894
|
...
|
|
817
895
|
|
|
818
896
|
def stroke_simplify(
|
|
819
|
-
override_context: typing.
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
undo: typing.Optional[bool] = None,
|
|
824
|
-
*,
|
|
825
|
-
factor: typing.Optional[typing.Any] = 0.01,
|
|
897
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
898
|
+
execution_context: typing.Union[str, int] = None,
|
|
899
|
+
undo: bool = None,
|
|
900
|
+
factor: typing.Any = 0.01,
|
|
826
901
|
):
|
|
827
902
|
"""Simplify selected strokes
|
|
828
903
|
|
|
829
|
-
:type override_context: typing.
|
|
830
|
-
:type execution_context: typing.
|
|
831
|
-
:type undo:
|
|
904
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
905
|
+
:type execution_context: typing.Union[str, int]
|
|
906
|
+
:type undo: bool
|
|
832
907
|
:param factor: Factor
|
|
833
|
-
:type factor: typing.
|
|
908
|
+
:type factor: typing.Any
|
|
834
909
|
"""
|
|
835
910
|
|
|
836
911
|
...
|
|
837
912
|
|
|
838
913
|
def stroke_smooth(
|
|
839
|
-
override_context: typing.
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
smooth_position: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
850
|
-
smooth_radius: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
851
|
-
smooth_opacity: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
914
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
915
|
+
execution_context: typing.Union[str, int] = None,
|
|
916
|
+
undo: bool = None,
|
|
917
|
+
iterations: typing.Any = 10,
|
|
918
|
+
factor: typing.Any = 1.0,
|
|
919
|
+
smooth_ends: typing.Union[bool, typing.Any] = False,
|
|
920
|
+
keep_shape: typing.Union[bool, typing.Any] = False,
|
|
921
|
+
smooth_position: typing.Union[bool, typing.Any] = True,
|
|
922
|
+
smooth_radius: typing.Union[bool, typing.Any] = True,
|
|
923
|
+
smooth_opacity: typing.Union[bool, typing.Any] = False,
|
|
852
924
|
):
|
|
853
925
|
"""Smooth selected strokes
|
|
854
926
|
|
|
855
|
-
:type override_context: typing.
|
|
856
|
-
:type execution_context: typing.
|
|
857
|
-
:type undo:
|
|
927
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
928
|
+
:type execution_context: typing.Union[str, int]
|
|
929
|
+
:type undo: bool
|
|
858
930
|
:param iterations: Iterations
|
|
859
|
-
:type iterations: typing.
|
|
931
|
+
:type iterations: typing.Any
|
|
860
932
|
:param factor: Factor
|
|
861
|
-
:type factor: typing.
|
|
933
|
+
:type factor: typing.Any
|
|
862
934
|
:param smooth_ends: Smooth Endpoints
|
|
863
|
-
:type smooth_ends: typing.
|
|
935
|
+
:type smooth_ends: typing.Union[bool, typing.Any]
|
|
864
936
|
:param keep_shape: Keep Shape
|
|
865
|
-
:type keep_shape: typing.
|
|
937
|
+
:type keep_shape: typing.Union[bool, typing.Any]
|
|
866
938
|
:param smooth_position: Position
|
|
867
|
-
:type smooth_position: typing.
|
|
939
|
+
:type smooth_position: typing.Union[bool, typing.Any]
|
|
868
940
|
:param smooth_radius: Radius
|
|
869
|
-
:type smooth_radius: typing.
|
|
941
|
+
:type smooth_radius: typing.Union[bool, typing.Any]
|
|
870
942
|
:param smooth_opacity: Opacity
|
|
871
|
-
:type smooth_opacity: typing.
|
|
943
|
+
:type smooth_opacity: typing.Union[bool, typing.Any]
|
|
872
944
|
"""
|
|
873
945
|
|
|
874
946
|
...
|
|
875
947
|
|
|
876
948
|
def stroke_subdivide(
|
|
877
|
-
override_context: typing.
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
*,
|
|
883
|
-
number_cuts: typing.Optional[typing.Any] = 1,
|
|
884
|
-
only_selected: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
949
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
950
|
+
execution_context: typing.Union[str, int] = None,
|
|
951
|
+
undo: bool = None,
|
|
952
|
+
number_cuts: typing.Any = 1,
|
|
953
|
+
only_selected: typing.Union[bool, typing.Any] = True,
|
|
885
954
|
):
|
|
886
955
|
"""Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
887
956
|
|
|
888
|
-
:type override_context: typing.
|
|
889
|
-
:type execution_context: typing.
|
|
890
|
-
:type undo:
|
|
957
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
958
|
+
:type execution_context: typing.Union[str, int]
|
|
959
|
+
:type undo: bool
|
|
891
960
|
:param number_cuts: Number of Cuts
|
|
892
|
-
:type number_cuts: typing.
|
|
961
|
+
:type number_cuts: typing.Any
|
|
893
962
|
:param only_selected: Selected Points, Smooth only selected points in the stroke
|
|
894
|
-
:type only_selected: typing.
|
|
963
|
+
:type only_selected: typing.Union[bool, typing.Any]
|
|
895
964
|
"""
|
|
896
965
|
|
|
897
966
|
...
|
|
898
967
|
|
|
899
968
|
def stroke_subdivide_smooth(
|
|
900
|
-
override_context: typing.
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
*,
|
|
906
|
-
GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any] = None,
|
|
907
|
-
GREASE_PENCIL_OT_stroke_smooth: typing.Optional[typing.Any] = None,
|
|
969
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
970
|
+
execution_context: typing.Union[str, int] = None,
|
|
971
|
+
undo: bool = None,
|
|
972
|
+
GREASE_PENCIL_OT_stroke_subdivide: typing.Any = None,
|
|
973
|
+
GREASE_PENCIL_OT_stroke_smooth: typing.Any = None,
|
|
908
974
|
):
|
|
909
975
|
"""Subdivide strokes and smooth them
|
|
910
976
|
|
|
911
|
-
:type override_context: typing.
|
|
912
|
-
:type execution_context: typing.
|
|
913
|
-
:type undo:
|
|
977
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
978
|
+
:type execution_context: typing.Union[str, int]
|
|
979
|
+
:type undo: bool
|
|
914
980
|
:param GREASE_PENCIL_OT_stroke_subdivide: Subdivide Stroke, Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
915
|
-
:type GREASE_PENCIL_OT_stroke_subdivide: typing.
|
|
981
|
+
:type GREASE_PENCIL_OT_stroke_subdivide: typing.Any
|
|
916
982
|
:param GREASE_PENCIL_OT_stroke_smooth: Smooth Stroke, Smooth selected strokes
|
|
917
|
-
:type GREASE_PENCIL_OT_stroke_smooth: typing.
|
|
983
|
+
:type GREASE_PENCIL_OT_stroke_smooth: typing.Any
|
|
918
984
|
"""
|
|
919
985
|
|
|
920
986
|
...
|
|
921
987
|
|
|
922
988
|
def stroke_switch_direction(
|
|
923
|
-
override_context: typing.
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
927
|
-
undo: typing.Optional[bool] = None,
|
|
989
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
990
|
+
execution_context: typing.Union[str, int] = None,
|
|
991
|
+
undo: bool = None,
|
|
928
992
|
):
|
|
929
993
|
"""Change direction of the points of the selected strokes
|
|
930
994
|
|
|
931
|
-
:type override_context: typing.
|
|
932
|
-
:type execution_context: typing.
|
|
933
|
-
:type undo:
|
|
995
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
996
|
+
:type execution_context: typing.Union[str, int]
|
|
997
|
+
:type undo: bool
|
|
934
998
|
"""
|
|
935
999
|
|
|
936
1000
|
...
|