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