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