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.
- 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
bpy/ops/gpencil/__init__.pyi
CHANGED
|
@@ -4,47 +4,52 @@ import bpy.types
|
|
|
4
4
|
|
|
5
5
|
GenericType = typing.TypeVar("GenericType")
|
|
6
6
|
|
|
7
|
-
def active_frame_delete(
|
|
7
|
+
def active_frame_delete(
|
|
8
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
9
|
+
execution_context: typing.Union[str, int] = None,
|
|
10
|
+
undo: bool = None,
|
|
11
|
+
):
|
|
8
12
|
"""Delete the active frame for the active Grease Pencil Layer
|
|
9
13
|
|
|
10
|
-
:type override_context: typing.
|
|
11
|
-
:type execution_context: typing.
|
|
12
|
-
:type undo:
|
|
14
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
15
|
+
:type execution_context: typing.Union[str, int]
|
|
16
|
+
:type undo: bool
|
|
13
17
|
"""
|
|
14
18
|
|
|
15
19
|
...
|
|
16
20
|
|
|
17
|
-
def active_frames_delete_all(
|
|
21
|
+
def active_frames_delete_all(
|
|
22
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
23
|
+
execution_context: typing.Union[str, int] = None,
|
|
24
|
+
undo: bool = None,
|
|
25
|
+
):
|
|
18
26
|
"""Delete the active frame(s) of all editable Grease Pencil layers
|
|
19
27
|
|
|
20
|
-
:type override_context: typing.
|
|
21
|
-
:type execution_context: typing.
|
|
22
|
-
:type undo:
|
|
28
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
29
|
+
:type execution_context: typing.Union[str, int]
|
|
30
|
+
:type undo: bool
|
|
23
31
|
"""
|
|
24
32
|
|
|
25
33
|
...
|
|
26
34
|
|
|
27
35
|
def annotate(
|
|
28
|
-
override_context=None,
|
|
29
|
-
execution_context=None,
|
|
30
|
-
undo=None,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorStrokeElement"]
|
|
40
|
-
] = None,
|
|
41
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
36
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
37
|
+
execution_context: typing.Union[str, int] = None,
|
|
38
|
+
undo: bool = None,
|
|
39
|
+
mode: typing.Any = "DRAW",
|
|
40
|
+
arrowstyle_start: typing.Any = "NONE",
|
|
41
|
+
arrowstyle_end: typing.Any = "NONE",
|
|
42
|
+
use_stabilizer: typing.Union[bool, typing.Any] = False,
|
|
43
|
+
stabilizer_factor: typing.Any = 0.75,
|
|
44
|
+
stabilizer_radius: typing.Any = 35,
|
|
45
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
46
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
42
47
|
):
|
|
43
48
|
"""Make annotations on the active data
|
|
44
49
|
|
|
45
|
-
:type override_context: typing.
|
|
46
|
-
:type execution_context: typing.
|
|
47
|
-
:type undo:
|
|
50
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
51
|
+
:type execution_context: typing.Union[str, int]
|
|
52
|
+
:type undo: bool
|
|
48
53
|
:param mode: Mode, Way to interpret mouse movements
|
|
49
54
|
|
|
50
55
|
DRAW
|
|
@@ -58,7 +63,7 @@ def annotate(
|
|
|
58
63
|
|
|
59
64
|
ERASER
|
|
60
65
|
Eraser -- Erase Annotation strokes.
|
|
61
|
-
:type mode: typing.
|
|
66
|
+
:type mode: typing.Any
|
|
62
67
|
:param arrowstyle_start: Start Arrow Style, Stroke start style
|
|
63
68
|
|
|
64
69
|
NONE
|
|
@@ -75,7 +80,7 @@ def annotate(
|
|
|
75
80
|
|
|
76
81
|
DIAMOND
|
|
77
82
|
Square -- Use square style.
|
|
78
|
-
:type arrowstyle_start: typing.
|
|
83
|
+
:type arrowstyle_start: typing.Any
|
|
79
84
|
:param arrowstyle_end: End Arrow Style, Stroke end style
|
|
80
85
|
|
|
81
86
|
NONE
|
|
@@ -92,70 +97,75 @@ def annotate(
|
|
|
92
97
|
|
|
93
98
|
DIAMOND
|
|
94
99
|
Square -- Use square style.
|
|
95
|
-
:type arrowstyle_end: typing.
|
|
100
|
+
:type arrowstyle_end: typing.Any
|
|
96
101
|
:param use_stabilizer: Stabilize Stroke, Helper to draw smooth and clean lines. Press Shift for an invert effect (even if this option is not active)
|
|
97
|
-
:type use_stabilizer: typing.
|
|
102
|
+
:type use_stabilizer: typing.Union[bool, typing.Any]
|
|
98
103
|
:param stabilizer_factor: Stabilizer Stroke Factor, Higher values gives a smoother stroke
|
|
99
|
-
:type stabilizer_factor: typing.
|
|
104
|
+
:type stabilizer_factor: typing.Any
|
|
100
105
|
:param stabilizer_radius: Stabilizer Stroke Radius, Minimum distance from last point before stroke continues
|
|
101
|
-
:type stabilizer_radius: typing.
|
|
106
|
+
:type stabilizer_radius: typing.Any
|
|
102
107
|
:param stroke: Stroke
|
|
103
|
-
:type stroke:
|
|
108
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
104
109
|
:param wait_for_input: Wait for Input, Wait for first click instead of painting immediately
|
|
105
|
-
:type wait_for_input: typing.
|
|
110
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
106
111
|
"""
|
|
107
112
|
|
|
108
113
|
...
|
|
109
114
|
|
|
110
115
|
def annotation_active_frame_delete(
|
|
111
|
-
override_context
|
|
116
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
117
|
+
execution_context: typing.Union[str, int] = None,
|
|
118
|
+
undo: bool = None,
|
|
112
119
|
):
|
|
113
120
|
"""Delete the active frame for the active Annotation Layer
|
|
114
121
|
|
|
115
|
-
:type override_context: typing.
|
|
116
|
-
:type execution_context: typing.
|
|
117
|
-
:type undo:
|
|
122
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
123
|
+
:type execution_context: typing.Union[str, int]
|
|
124
|
+
:type undo: bool
|
|
118
125
|
"""
|
|
119
126
|
|
|
120
127
|
...
|
|
121
128
|
|
|
122
|
-
def annotation_add(
|
|
129
|
+
def annotation_add(
|
|
130
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
131
|
+
execution_context: typing.Union[str, int] = None,
|
|
132
|
+
undo: bool = None,
|
|
133
|
+
):
|
|
123
134
|
"""Add new Annotation data-block
|
|
124
135
|
|
|
125
|
-
:type override_context: typing.
|
|
126
|
-
:type execution_context: typing.
|
|
127
|
-
:type undo:
|
|
136
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
137
|
+
:type execution_context: typing.Union[str, int]
|
|
138
|
+
:type undo: bool
|
|
128
139
|
"""
|
|
129
140
|
|
|
130
141
|
...
|
|
131
142
|
|
|
132
143
|
def bake_grease_pencil_animation(
|
|
133
|
-
override_context=None,
|
|
134
|
-
execution_context=None,
|
|
135
|
-
undo=None,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
project_type: typing.Optional[typing.Any] = "KEEP",
|
|
144
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
145
|
+
execution_context: typing.Union[str, int] = None,
|
|
146
|
+
undo: bool = None,
|
|
147
|
+
frame_start: typing.Any = 1,
|
|
148
|
+
frame_end: typing.Any = 250,
|
|
149
|
+
step: typing.Any = 1,
|
|
150
|
+
only_selected: typing.Union[bool, typing.Any] = False,
|
|
151
|
+
frame_target: typing.Any = 1,
|
|
152
|
+
project_type: typing.Any = "KEEP",
|
|
143
153
|
):
|
|
144
154
|
"""Bake grease pencil object transform to grease pencil keyframes
|
|
145
155
|
|
|
146
|
-
:type override_context: typing.
|
|
147
|
-
:type execution_context: typing.
|
|
148
|
-
:type undo:
|
|
156
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
157
|
+
:type execution_context: typing.Union[str, int]
|
|
158
|
+
:type undo: bool
|
|
149
159
|
:param frame_start: Start Frame, The start frame
|
|
150
|
-
:type frame_start: typing.
|
|
160
|
+
:type frame_start: typing.Any
|
|
151
161
|
:param frame_end: End Frame, The end frame of animation
|
|
152
|
-
:type frame_end: typing.
|
|
162
|
+
:type frame_end: typing.Any
|
|
153
163
|
:param step: Step, Step between generated frames
|
|
154
|
-
:type step: typing.
|
|
164
|
+
:type step: typing.Any
|
|
155
165
|
:param only_selected: Only Selected Keyframes, Convert only selected keyframes
|
|
156
|
-
:type only_selected: typing.
|
|
166
|
+
:type only_selected: typing.Union[bool, typing.Any]
|
|
157
167
|
:param frame_target: Target Frame, Destination frame
|
|
158
|
-
:type frame_target: typing.
|
|
168
|
+
:type frame_target: typing.Any
|
|
159
169
|
:param project_type: Projection Type
|
|
160
170
|
|
|
161
171
|
KEEP
|
|
@@ -175,56 +185,55 @@ def bake_grease_pencil_animation(
|
|
|
175
185
|
|
|
176
186
|
CURSOR
|
|
177
187
|
Cursor -- Reproject the strokes using the orientation of 3D cursor.
|
|
178
|
-
:type project_type: typing.
|
|
188
|
+
:type project_type: typing.Any
|
|
179
189
|
"""
|
|
180
190
|
|
|
181
191
|
...
|
|
182
192
|
|
|
183
193
|
def bake_mesh_animation(
|
|
184
|
-
override_context=None,
|
|
185
|
-
execution_context=None,
|
|
186
|
-
undo=None,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
project_type: typing.Optional[typing.Any] = "VIEW",
|
|
194
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
195
|
+
execution_context: typing.Union[str, int] = None,
|
|
196
|
+
undo: bool = None,
|
|
197
|
+
target: typing.Any = "NEW",
|
|
198
|
+
frame_start: typing.Any = 1,
|
|
199
|
+
frame_end: typing.Any = 250,
|
|
200
|
+
step: typing.Any = 1,
|
|
201
|
+
thickness: typing.Any = 1,
|
|
202
|
+
angle: typing.Any = 1.22173,
|
|
203
|
+
offset: typing.Any = 0.001,
|
|
204
|
+
seams: typing.Union[bool, typing.Any] = False,
|
|
205
|
+
faces: typing.Union[bool, typing.Any] = True,
|
|
206
|
+
only_selected: typing.Union[bool, typing.Any] = False,
|
|
207
|
+
frame_target: typing.Any = 1,
|
|
208
|
+
project_type: typing.Any = "VIEW",
|
|
200
209
|
):
|
|
201
210
|
"""Bake mesh animation to grease pencil strokes
|
|
202
211
|
|
|
203
|
-
:type override_context: typing.
|
|
204
|
-
:type execution_context: typing.
|
|
205
|
-
:type undo:
|
|
212
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
213
|
+
:type execution_context: typing.Union[str, int]
|
|
214
|
+
:type undo: bool
|
|
206
215
|
:param target: Target Object, Target grease pencil
|
|
207
|
-
:type target: typing.
|
|
216
|
+
:type target: typing.Any
|
|
208
217
|
:param frame_start: Start Frame, The start frame
|
|
209
|
-
:type frame_start: typing.
|
|
218
|
+
:type frame_start: typing.Any
|
|
210
219
|
:param frame_end: End Frame, The end frame of animation
|
|
211
|
-
:type frame_end: typing.
|
|
220
|
+
:type frame_end: typing.Any
|
|
212
221
|
:param step: Step, Step between generated frames
|
|
213
|
-
:type step: typing.
|
|
222
|
+
:type step: typing.Any
|
|
214
223
|
:param thickness: Thickness
|
|
215
|
-
:type thickness: typing.
|
|
224
|
+
:type thickness: typing.Any
|
|
216
225
|
:param angle: Threshold Angle, Threshold to determine ends of the strokes
|
|
217
|
-
:type angle: typing.
|
|
226
|
+
:type angle: typing.Any
|
|
218
227
|
:param offset: Stroke Offset, Offset strokes from fill
|
|
219
|
-
:type offset: typing.
|
|
228
|
+
:type offset: typing.Any
|
|
220
229
|
:param seams: Only Seam Edges, Convert only seam edges
|
|
221
|
-
:type seams: typing.
|
|
230
|
+
:type seams: typing.Union[bool, typing.Any]
|
|
222
231
|
:param faces: Export Faces, Export faces as filled strokes
|
|
223
|
-
:type faces: typing.
|
|
232
|
+
:type faces: typing.Union[bool, typing.Any]
|
|
224
233
|
:param only_selected: Only Selected Keyframes, Convert only selected keyframes
|
|
225
|
-
:type only_selected: typing.
|
|
234
|
+
:type only_selected: typing.Union[bool, typing.Any]
|
|
226
235
|
:param frame_target: Target Frame, Destination frame
|
|
227
|
-
:type frame_target: typing.
|
|
236
|
+
:type frame_target: typing.Any
|
|
228
237
|
:param project_type: Projection Type
|
|
229
238
|
|
|
230
239
|
KEEP
|
|
@@ -244,75 +253,81 @@ def bake_mesh_animation(
|
|
|
244
253
|
|
|
245
254
|
CURSOR
|
|
246
255
|
Cursor -- Reproject the strokes using the orientation of 3D cursor.
|
|
247
|
-
:type project_type: typing.
|
|
256
|
+
:type project_type: typing.Any
|
|
248
257
|
"""
|
|
249
258
|
|
|
250
259
|
...
|
|
251
260
|
|
|
252
261
|
def blank_frame_add(
|
|
253
|
-
override_context=None,
|
|
254
|
-
execution_context=None,
|
|
255
|
-
undo=None,
|
|
256
|
-
|
|
257
|
-
all_layers: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
262
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
263
|
+
execution_context: typing.Union[str, int] = None,
|
|
264
|
+
undo: bool = None,
|
|
265
|
+
all_layers: typing.Union[bool, typing.Any] = False,
|
|
258
266
|
):
|
|
259
267
|
"""Insert a blank frame on the current frame (all subsequently existing frames, if any, are shifted right by one frame)
|
|
260
268
|
|
|
261
|
-
:type override_context: typing.
|
|
262
|
-
:type execution_context: typing.
|
|
263
|
-
:type undo:
|
|
269
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
270
|
+
:type execution_context: typing.Union[str, int]
|
|
271
|
+
:type undo: bool
|
|
264
272
|
:param all_layers: All Layers, Create blank frame in all layers, not only active
|
|
265
|
-
:type all_layers: typing.
|
|
273
|
+
:type all_layers: typing.Union[bool, typing.Any]
|
|
266
274
|
"""
|
|
267
275
|
|
|
268
276
|
...
|
|
269
277
|
|
|
270
|
-
def brush_reset(
|
|
278
|
+
def brush_reset(
|
|
279
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
280
|
+
execution_context: typing.Union[str, int] = None,
|
|
281
|
+
undo: bool = None,
|
|
282
|
+
):
|
|
271
283
|
"""Reset brush to default parameters
|
|
272
284
|
|
|
273
|
-
:type override_context: typing.
|
|
274
|
-
:type execution_context: typing.
|
|
275
|
-
:type undo:
|
|
285
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
286
|
+
:type execution_context: typing.Union[str, int]
|
|
287
|
+
:type undo: bool
|
|
276
288
|
"""
|
|
277
289
|
|
|
278
290
|
...
|
|
279
291
|
|
|
280
|
-
def brush_reset_all(
|
|
292
|
+
def brush_reset_all(
|
|
293
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
294
|
+
execution_context: typing.Union[str, int] = None,
|
|
295
|
+
undo: bool = None,
|
|
296
|
+
):
|
|
281
297
|
"""Delete all mode brushes and recreate a default set
|
|
282
298
|
|
|
283
|
-
:type override_context: typing.
|
|
284
|
-
:type execution_context: typing.
|
|
285
|
-
:type undo:
|
|
299
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
300
|
+
:type execution_context: typing.Union[str, int]
|
|
301
|
+
:type undo: bool
|
|
286
302
|
"""
|
|
287
303
|
|
|
288
304
|
...
|
|
289
305
|
|
|
290
306
|
def convert(
|
|
291
|
-
override_context=None,
|
|
292
|
-
execution_context=None,
|
|
293
|
-
undo=None,
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
use_timing_data: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
307
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
308
|
+
execution_context: typing.Union[str, int] = None,
|
|
309
|
+
undo: bool = None,
|
|
310
|
+
type: typing.Any = "PATH",
|
|
311
|
+
bevel_depth: typing.Any = 0.0,
|
|
312
|
+
bevel_resolution: typing.Any = 0,
|
|
313
|
+
use_normalize_weights: typing.Union[bool, typing.Any] = True,
|
|
314
|
+
radius_multiplier: typing.Any = 1.0,
|
|
315
|
+
use_link_strokes: typing.Union[bool, typing.Any] = False,
|
|
316
|
+
timing_mode: typing.Any = "FULL",
|
|
317
|
+
frame_range: typing.Any = 100,
|
|
318
|
+
start_frame: typing.Any = 1,
|
|
319
|
+
use_realtime: typing.Union[bool, typing.Any] = False,
|
|
320
|
+
end_frame: typing.Any = 250,
|
|
321
|
+
gap_duration: typing.Any = 0.0,
|
|
322
|
+
gap_randomness: typing.Any = 0.0,
|
|
323
|
+
seed: typing.Any = 0,
|
|
324
|
+
use_timing_data: typing.Union[bool, typing.Any] = False,
|
|
310
325
|
):
|
|
311
326
|
"""Convert the active Grease Pencil layer to a new Curve Object
|
|
312
327
|
|
|
313
|
-
:type override_context: typing.
|
|
314
|
-
:type execution_context: typing.
|
|
315
|
-
:type undo:
|
|
328
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
329
|
+
:type execution_context: typing.Union[str, int]
|
|
330
|
+
:type undo: bool
|
|
316
331
|
:param type: Type, Which type of curve to convert to
|
|
317
332
|
|
|
318
333
|
PATH
|
|
@@ -323,17 +338,17 @@ def convert(
|
|
|
323
338
|
|
|
324
339
|
POLY
|
|
325
340
|
Polygon Curve -- Bézier curve with straight-line segments (vector handles).
|
|
326
|
-
:type type: typing.
|
|
341
|
+
:type type: typing.Any
|
|
327
342
|
:param bevel_depth: Bevel Depth
|
|
328
|
-
:type bevel_depth: typing.
|
|
343
|
+
:type bevel_depth: typing.Any
|
|
329
344
|
:param bevel_resolution: Bevel Resolution, Bevel resolution when depth is non-zero
|
|
330
|
-
:type bevel_resolution: typing.
|
|
345
|
+
:type bevel_resolution: typing.Any
|
|
331
346
|
:param use_normalize_weights: Normalize Weight, Normalize weight (set from stroke width)
|
|
332
|
-
:type use_normalize_weights: typing.
|
|
347
|
+
:type use_normalize_weights: typing.Union[bool, typing.Any]
|
|
333
348
|
:param radius_multiplier: Radius Factor, Multiplier for the points' radii (set from stroke width)
|
|
334
|
-
:type radius_multiplier: typing.
|
|
349
|
+
:type radius_multiplier: typing.Any
|
|
335
350
|
:param use_link_strokes: Link Strokes, Whether to link strokes with zero-radius sections of curves
|
|
336
|
-
:type use_link_strokes: typing.
|
|
351
|
+
:type use_link_strokes: typing.Union[bool, typing.Any]
|
|
337
352
|
:param timing_mode: Timing Mode, How to use timing data stored in strokes
|
|
338
353
|
|
|
339
354
|
NONE
|
|
@@ -347,77 +362,83 @@ def convert(
|
|
|
347
362
|
|
|
348
363
|
CUSTOMGAP
|
|
349
364
|
Custom Gaps -- Use the original timing, but with custom gap lengths (in frames).
|
|
350
|
-
:type timing_mode: typing.
|
|
365
|
+
:type timing_mode: typing.Any
|
|
351
366
|
:param frame_range: Frame Range, The duration of evaluation of the path control curve
|
|
352
|
-
:type frame_range: typing.
|
|
367
|
+
:type frame_range: typing.Any
|
|
353
368
|
:param start_frame: Start Frame, The start frame of the path control curve
|
|
354
|
-
:type start_frame: typing.
|
|
369
|
+
:type start_frame: typing.Any
|
|
355
370
|
:param use_realtime: Realtime, Whether the path control curve reproduces the drawing in realtime, starting from Start Frame
|
|
356
|
-
:type use_realtime: typing.
|
|
371
|
+
:type use_realtime: typing.Union[bool, typing.Any]
|
|
357
372
|
:param end_frame: End Frame, The end frame of the path control curve (if Realtime is not set)
|
|
358
|
-
:type end_frame: typing.
|
|
373
|
+
:type end_frame: typing.Any
|
|
359
374
|
:param gap_duration: Gap Duration, Custom Gap mode: (Average) length of gaps, in frames (Note: Realtime value, will be scaled if Realtime is not set)
|
|
360
|
-
:type gap_duration: typing.
|
|
375
|
+
:type gap_duration: typing.Any
|
|
361
376
|
:param gap_randomness: Gap Randomness, Custom Gap mode: Number of frames that gap lengths can vary
|
|
362
|
-
:type gap_randomness: typing.
|
|
377
|
+
:type gap_randomness: typing.Any
|
|
363
378
|
:param seed: Random Seed, Custom Gap mode: Random generator seed
|
|
364
|
-
:type seed: typing.
|
|
379
|
+
:type seed: typing.Any
|
|
365
380
|
:param use_timing_data: Has Valid Timing, Whether the converted Grease Pencil layer has valid timing data (internal use)
|
|
366
|
-
:type use_timing_data: typing.
|
|
381
|
+
:type use_timing_data: typing.Union[bool, typing.Any]
|
|
367
382
|
"""
|
|
368
383
|
|
|
369
384
|
...
|
|
370
385
|
|
|
371
386
|
def convert_old_files(
|
|
372
|
-
override_context=None,
|
|
373
|
-
execution_context=None,
|
|
374
|
-
undo=None,
|
|
375
|
-
|
|
376
|
-
annotation: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
387
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
388
|
+
execution_context: typing.Union[str, int] = None,
|
|
389
|
+
undo: bool = None,
|
|
390
|
+
annotation: typing.Union[bool, typing.Any] = False,
|
|
377
391
|
):
|
|
378
392
|
"""Convert 2.7x grease pencil files to 2.80
|
|
379
393
|
|
|
380
|
-
:type override_context: typing.
|
|
381
|
-
:type execution_context: typing.
|
|
382
|
-
:type undo:
|
|
394
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
395
|
+
:type execution_context: typing.Union[str, int]
|
|
396
|
+
:type undo: bool
|
|
383
397
|
:param annotation: Annotation, Convert to Annotations
|
|
384
|
-
:type annotation: typing.
|
|
398
|
+
:type annotation: typing.Union[bool, typing.Any]
|
|
385
399
|
"""
|
|
386
400
|
|
|
387
401
|
...
|
|
388
402
|
|
|
389
|
-
def copy(
|
|
403
|
+
def copy(
|
|
404
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
405
|
+
execution_context: typing.Union[str, int] = None,
|
|
406
|
+
undo: bool = None,
|
|
407
|
+
):
|
|
390
408
|
"""Copy selected Grease Pencil points and strokes
|
|
391
409
|
|
|
392
|
-
:type override_context: typing.
|
|
393
|
-
:type execution_context: typing.
|
|
394
|
-
:type undo:
|
|
410
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
411
|
+
:type execution_context: typing.Union[str, int]
|
|
412
|
+
:type undo: bool
|
|
395
413
|
"""
|
|
396
414
|
|
|
397
415
|
...
|
|
398
416
|
|
|
399
|
-
def data_unlink(
|
|
417
|
+
def data_unlink(
|
|
418
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
419
|
+
execution_context: typing.Union[str, int] = None,
|
|
420
|
+
undo: bool = None,
|
|
421
|
+
):
|
|
400
422
|
"""Unlink active Annotation data-block
|
|
401
423
|
|
|
402
|
-
:type override_context: typing.
|
|
403
|
-
:type execution_context: typing.
|
|
404
|
-
:type undo:
|
|
424
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
425
|
+
:type execution_context: typing.Union[str, int]
|
|
426
|
+
:type undo: bool
|
|
405
427
|
"""
|
|
406
428
|
|
|
407
429
|
...
|
|
408
430
|
|
|
409
431
|
def delete(
|
|
410
|
-
override_context=None,
|
|
411
|
-
execution_context=None,
|
|
412
|
-
undo=None,
|
|
413
|
-
|
|
414
|
-
type: typing.Optional[typing.Any] = "POINTS",
|
|
432
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
433
|
+
execution_context: typing.Union[str, int] = None,
|
|
434
|
+
undo: bool = None,
|
|
435
|
+
type: typing.Any = "POINTS",
|
|
415
436
|
):
|
|
416
437
|
"""Delete selected Grease Pencil strokes, vertices, or frames
|
|
417
438
|
|
|
418
|
-
:type override_context: typing.
|
|
419
|
-
:type execution_context: typing.
|
|
420
|
-
:type undo:
|
|
439
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
440
|
+
:type execution_context: typing.Union[str, int]
|
|
441
|
+
:type undo: bool
|
|
421
442
|
:param type: Type, Method used for deleting Grease Pencil data
|
|
422
443
|
|
|
423
444
|
POINTS
|
|
@@ -428,23 +449,22 @@ def delete(
|
|
|
428
449
|
|
|
429
450
|
FRAME
|
|
430
451
|
Frame -- Delete active frame.
|
|
431
|
-
:type type: typing.
|
|
452
|
+
:type type: typing.Any
|
|
432
453
|
"""
|
|
433
454
|
|
|
434
455
|
...
|
|
435
456
|
|
|
436
457
|
def dissolve(
|
|
437
|
-
override_context=None,
|
|
438
|
-
execution_context=None,
|
|
439
|
-
undo=None,
|
|
440
|
-
|
|
441
|
-
type: typing.Optional[typing.Any] = "POINTS",
|
|
458
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
459
|
+
execution_context: typing.Union[str, int] = None,
|
|
460
|
+
undo: bool = None,
|
|
461
|
+
type: typing.Any = "POINTS",
|
|
442
462
|
):
|
|
443
463
|
"""Delete selected points without splitting strokes
|
|
444
464
|
|
|
445
|
-
:type override_context: typing.
|
|
446
|
-
:type execution_context: typing.
|
|
447
|
-
:type undo:
|
|
465
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
466
|
+
:type execution_context: typing.Union[str, int]
|
|
467
|
+
:type undo: bool
|
|
448
468
|
:param type: Type, Method used for dissolving stroke points
|
|
449
469
|
|
|
450
470
|
POINTS
|
|
@@ -455,31 +475,28 @@ def dissolve(
|
|
|
455
475
|
|
|
456
476
|
UNSELECT
|
|
457
477
|
Dissolve Unselect -- Dissolve all unselected points.
|
|
458
|
-
:type type: typing.
|
|
478
|
+
:type type: typing.Any
|
|
459
479
|
"""
|
|
460
480
|
|
|
461
481
|
...
|
|
462
482
|
|
|
463
483
|
def draw(
|
|
464
|
-
override_context=None,
|
|
465
|
-
execution_context=None,
|
|
466
|
-
undo=None,
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
] =
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
disable_fill: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
475
|
-
disable_stabilizer: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
476
|
-
guide_last_angle: typing.Optional[typing.Any] = 0.0,
|
|
484
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
485
|
+
execution_context: typing.Union[str, int] = None,
|
|
486
|
+
undo: bool = None,
|
|
487
|
+
mode: typing.Any = "DRAW",
|
|
488
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
489
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
490
|
+
disable_straight: typing.Union[bool, typing.Any] = False,
|
|
491
|
+
disable_fill: typing.Union[bool, typing.Any] = False,
|
|
492
|
+
disable_stabilizer: typing.Union[bool, typing.Any] = False,
|
|
493
|
+
guide_last_angle: typing.Any = 0.0,
|
|
477
494
|
):
|
|
478
495
|
"""Draw a new stroke in the active Grease Pencil object
|
|
479
496
|
|
|
480
|
-
:type override_context: typing.
|
|
481
|
-
:type execution_context: typing.
|
|
482
|
-
:type undo:
|
|
497
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
498
|
+
:type execution_context: typing.Union[str, int]
|
|
499
|
+
:type undo: bool
|
|
483
500
|
:param mode: Mode, Way to interpret mouse movements
|
|
484
501
|
|
|
485
502
|
DRAW
|
|
@@ -490,172 +507,173 @@ def draw(
|
|
|
490
507
|
|
|
491
508
|
ERASER
|
|
492
509
|
Eraser -- Erase Grease Pencil strokes.
|
|
493
|
-
:type mode: typing.
|
|
510
|
+
:type mode: typing.Any
|
|
494
511
|
:param stroke: Stroke
|
|
495
|
-
:type stroke:
|
|
512
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
496
513
|
:param wait_for_input: Wait for Input, Wait for first click instead of painting immediately
|
|
497
|
-
:type wait_for_input: typing.
|
|
514
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
498
515
|
:param disable_straight: No Straight lines, Disable key for straight lines
|
|
499
|
-
:type disable_straight: typing.
|
|
516
|
+
:type disable_straight: typing.Union[bool, typing.Any]
|
|
500
517
|
:param disable_fill: No Fill Areas, Disable fill to use stroke as fill boundary
|
|
501
|
-
:type disable_fill: typing.
|
|
518
|
+
:type disable_fill: typing.Union[bool, typing.Any]
|
|
502
519
|
:param disable_stabilizer: No Stabilizer
|
|
503
|
-
:type disable_stabilizer: typing.
|
|
520
|
+
:type disable_stabilizer: typing.Union[bool, typing.Any]
|
|
504
521
|
:param guide_last_angle: Angle, Speed guide angle
|
|
505
|
-
:type guide_last_angle: typing.
|
|
522
|
+
:type guide_last_angle: typing.Any
|
|
506
523
|
"""
|
|
507
524
|
|
|
508
525
|
...
|
|
509
526
|
|
|
510
|
-
def duplicate(
|
|
527
|
+
def duplicate(
|
|
528
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
529
|
+
execution_context: typing.Union[str, int] = None,
|
|
530
|
+
undo: bool = None,
|
|
531
|
+
):
|
|
511
532
|
"""Duplicate the selected Grease Pencil strokes
|
|
512
533
|
|
|
513
|
-
:type override_context: typing.
|
|
514
|
-
:type execution_context: typing.
|
|
515
|
-
:type undo:
|
|
534
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
535
|
+
:type execution_context: typing.Union[str, int]
|
|
536
|
+
:type undo: bool
|
|
516
537
|
"""
|
|
517
538
|
|
|
518
539
|
...
|
|
519
540
|
|
|
520
541
|
def duplicate_move(
|
|
521
|
-
override_context=None,
|
|
522
|
-
execution_context=None,
|
|
523
|
-
undo=None,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
TRANSFORM_OT_translate: typing.Optional["bpy.ops.transform.translate"] = None,
|
|
542
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
543
|
+
execution_context: typing.Union[str, int] = None,
|
|
544
|
+
undo: bool = None,
|
|
545
|
+
GPENCIL_OT_duplicate: duplicate = None,
|
|
546
|
+
TRANSFORM_OT_translate: bpy.ops.transform.translate = None,
|
|
527
547
|
):
|
|
528
548
|
"""Make copies of the selected Grease Pencil strokes and move them
|
|
529
549
|
|
|
530
|
-
:type override_context: typing.
|
|
531
|
-
:type execution_context: typing.
|
|
532
|
-
:type undo:
|
|
550
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
551
|
+
:type execution_context: typing.Union[str, int]
|
|
552
|
+
:type undo: bool
|
|
533
553
|
:param GPENCIL_OT_duplicate: Duplicate Strokes, Duplicate the selected Grease Pencil strokes
|
|
534
|
-
:type GPENCIL_OT_duplicate:
|
|
554
|
+
:type GPENCIL_OT_duplicate: duplicate
|
|
535
555
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
536
|
-
:type TRANSFORM_OT_translate:
|
|
556
|
+
:type TRANSFORM_OT_translate: bpy.ops.transform.translate
|
|
537
557
|
"""
|
|
538
558
|
|
|
539
559
|
...
|
|
540
560
|
|
|
541
561
|
def editmode_toggle(
|
|
542
|
-
override_context=None,
|
|
543
|
-
execution_context=None,
|
|
544
|
-
undo=None,
|
|
545
|
-
|
|
546
|
-
back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
562
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
563
|
+
execution_context: typing.Union[str, int] = None,
|
|
564
|
+
undo: bool = None,
|
|
565
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
547
566
|
):
|
|
548
567
|
"""Enter/Exit edit mode for Grease Pencil strokes
|
|
549
568
|
|
|
550
|
-
:type override_context: typing.
|
|
551
|
-
:type execution_context: typing.
|
|
552
|
-
:type undo:
|
|
569
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
570
|
+
:type execution_context: typing.Union[str, int]
|
|
571
|
+
:type undo: bool
|
|
553
572
|
:param back: Return to Previous Mode, Return to previous mode
|
|
554
|
-
:type back: typing.
|
|
573
|
+
:type back: typing.Union[bool, typing.Any]
|
|
555
574
|
"""
|
|
556
575
|
|
|
557
576
|
...
|
|
558
577
|
|
|
559
578
|
def extract_palette_vertex(
|
|
560
|
-
override_context=None,
|
|
561
|
-
execution_context=None,
|
|
562
|
-
undo=None,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
threshold: typing.Optional[typing.Any] = 1,
|
|
579
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
580
|
+
execution_context: typing.Union[str, int] = None,
|
|
581
|
+
undo: bool = None,
|
|
582
|
+
selected: typing.Union[bool, typing.Any] = False,
|
|
583
|
+
threshold: typing.Any = 1,
|
|
566
584
|
):
|
|
567
585
|
"""Extract all colors used in Grease Pencil Vertex and create a Palette
|
|
568
586
|
|
|
569
|
-
:type override_context: typing.
|
|
570
|
-
:type execution_context: typing.
|
|
571
|
-
:type undo:
|
|
587
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
588
|
+
:type execution_context: typing.Union[str, int]
|
|
589
|
+
:type undo: bool
|
|
572
590
|
:param selected: Only Selected, Convert only selected strokes
|
|
573
|
-
:type selected: typing.
|
|
591
|
+
:type selected: typing.Union[bool, typing.Any]
|
|
574
592
|
:param threshold: Threshold
|
|
575
|
-
:type threshold: typing.
|
|
593
|
+
:type threshold: typing.Any
|
|
576
594
|
"""
|
|
577
595
|
|
|
578
596
|
...
|
|
579
597
|
|
|
580
|
-
def extrude(
|
|
598
|
+
def extrude(
|
|
599
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
600
|
+
execution_context: typing.Union[str, int] = None,
|
|
601
|
+
undo: bool = None,
|
|
602
|
+
):
|
|
581
603
|
"""Extrude the selected Grease Pencil points
|
|
582
604
|
|
|
583
|
-
:type override_context: typing.
|
|
584
|
-
:type execution_context: typing.
|
|
585
|
-
:type undo:
|
|
605
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
606
|
+
:type execution_context: typing.Union[str, int]
|
|
607
|
+
:type undo: bool
|
|
586
608
|
"""
|
|
587
609
|
|
|
588
610
|
...
|
|
589
611
|
|
|
590
612
|
def extrude_move(
|
|
591
|
-
override_context=None,
|
|
592
|
-
execution_context=None,
|
|
593
|
-
undo=None,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
TRANSFORM_OT_translate: typing.Optional["bpy.ops.transform.translate"] = None,
|
|
613
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
614
|
+
execution_context: typing.Union[str, int] = None,
|
|
615
|
+
undo: bool = None,
|
|
616
|
+
GPENCIL_OT_extrude: extrude = None,
|
|
617
|
+
TRANSFORM_OT_translate: bpy.ops.transform.translate = None,
|
|
597
618
|
):
|
|
598
619
|
"""Extrude selected points and move them
|
|
599
620
|
|
|
600
|
-
:type override_context: typing.
|
|
601
|
-
:type execution_context: typing.
|
|
602
|
-
:type undo:
|
|
621
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
622
|
+
:type execution_context: typing.Union[str, int]
|
|
623
|
+
:type undo: bool
|
|
603
624
|
:param GPENCIL_OT_extrude: Extrude Stroke Points, Extrude the selected Grease Pencil points
|
|
604
|
-
:type GPENCIL_OT_extrude:
|
|
625
|
+
:type GPENCIL_OT_extrude: extrude
|
|
605
626
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
606
|
-
:type TRANSFORM_OT_translate:
|
|
627
|
+
:type TRANSFORM_OT_translate: bpy.ops.transform.translate
|
|
607
628
|
"""
|
|
608
629
|
|
|
609
630
|
...
|
|
610
631
|
|
|
611
632
|
def fill(
|
|
612
|
-
override_context=None,
|
|
613
|
-
execution_context=None,
|
|
614
|
-
undo=None,
|
|
615
|
-
|
|
616
|
-
on_back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
633
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
634
|
+
execution_context: typing.Union[str, int] = None,
|
|
635
|
+
undo: bool = None,
|
|
636
|
+
on_back: typing.Union[bool, typing.Any] = False,
|
|
617
637
|
):
|
|
618
638
|
"""Fill with color the shape formed by strokes
|
|
619
639
|
|
|
620
|
-
:type override_context: typing.
|
|
621
|
-
:type execution_context: typing.
|
|
622
|
-
:type undo:
|
|
640
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
641
|
+
:type execution_context: typing.Union[str, int]
|
|
642
|
+
:type undo: bool
|
|
623
643
|
:param on_back: Draw on Back, Send new stroke to back
|
|
624
|
-
:type on_back: typing.
|
|
644
|
+
:type on_back: typing.Union[bool, typing.Any]
|
|
625
645
|
"""
|
|
626
646
|
|
|
627
647
|
...
|
|
628
648
|
|
|
629
649
|
def frame_clean_duplicate(
|
|
630
|
-
override_context=None,
|
|
631
|
-
execution_context=None,
|
|
632
|
-
undo=None,
|
|
633
|
-
|
|
634
|
-
type: typing.Optional[typing.Any] = "ALL",
|
|
650
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
651
|
+
execution_context: typing.Union[str, int] = None,
|
|
652
|
+
undo: bool = None,
|
|
653
|
+
type: typing.Any = "ALL",
|
|
635
654
|
):
|
|
636
655
|
"""Remove duplicate keyframes
|
|
637
656
|
|
|
638
|
-
:type override_context: typing.
|
|
639
|
-
:type execution_context: typing.
|
|
640
|
-
:type undo:
|
|
657
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
658
|
+
:type execution_context: typing.Union[str, int]
|
|
659
|
+
:type undo: bool
|
|
641
660
|
:param type: Type
|
|
642
|
-
:type type: typing.
|
|
661
|
+
:type type: typing.Any
|
|
643
662
|
"""
|
|
644
663
|
|
|
645
664
|
...
|
|
646
665
|
|
|
647
666
|
def frame_clean_fill(
|
|
648
|
-
override_context=None,
|
|
649
|
-
execution_context=None,
|
|
650
|
-
undo=None,
|
|
651
|
-
|
|
652
|
-
mode: typing.Optional[typing.Any] = "ACTIVE",
|
|
667
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
668
|
+
execution_context: typing.Union[str, int] = None,
|
|
669
|
+
undo: bool = None,
|
|
670
|
+
mode: typing.Any = "ACTIVE",
|
|
653
671
|
):
|
|
654
672
|
"""Remove 'no fill' boundary strokes
|
|
655
673
|
|
|
656
|
-
:type override_context: typing.
|
|
657
|
-
:type execution_context: typing.
|
|
658
|
-
:type undo:
|
|
674
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
675
|
+
:type execution_context: typing.Union[str, int]
|
|
676
|
+
:type undo: bool
|
|
659
677
|
:param mode: Mode
|
|
660
678
|
|
|
661
679
|
ACTIVE
|
|
@@ -663,41 +681,39 @@ def frame_clean_fill(
|
|
|
663
681
|
|
|
664
682
|
ALL
|
|
665
683
|
All Frames -- Clean all frames in all layers.
|
|
666
|
-
:type mode: typing.
|
|
684
|
+
:type mode: typing.Any
|
|
667
685
|
"""
|
|
668
686
|
|
|
669
687
|
...
|
|
670
688
|
|
|
671
689
|
def frame_clean_loose(
|
|
672
|
-
override_context=None,
|
|
673
|
-
execution_context=None,
|
|
674
|
-
undo=None,
|
|
675
|
-
|
|
676
|
-
limit: typing.Optional[typing.Any] = 1,
|
|
690
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
691
|
+
execution_context: typing.Union[str, int] = None,
|
|
692
|
+
undo: bool = None,
|
|
693
|
+
limit: typing.Any = 1,
|
|
677
694
|
):
|
|
678
695
|
"""Remove loose points
|
|
679
696
|
|
|
680
|
-
:type override_context: typing.
|
|
681
|
-
:type execution_context: typing.
|
|
682
|
-
:type undo:
|
|
697
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
698
|
+
:type execution_context: typing.Union[str, int]
|
|
699
|
+
:type undo: bool
|
|
683
700
|
:param limit: Limit, Number of points to consider stroke as loose
|
|
684
|
-
:type limit: typing.
|
|
701
|
+
:type limit: typing.Any
|
|
685
702
|
"""
|
|
686
703
|
|
|
687
704
|
...
|
|
688
705
|
|
|
689
706
|
def frame_duplicate(
|
|
690
|
-
override_context=None,
|
|
691
|
-
execution_context=None,
|
|
692
|
-
undo=None,
|
|
693
|
-
|
|
694
|
-
mode: typing.Optional[typing.Any] = "ACTIVE",
|
|
707
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
708
|
+
execution_context: typing.Union[str, int] = None,
|
|
709
|
+
undo: bool = None,
|
|
710
|
+
mode: typing.Any = "ACTIVE",
|
|
695
711
|
):
|
|
696
712
|
"""Make a copy of the active Grease Pencil Frame
|
|
697
713
|
|
|
698
|
-
:type override_context: typing.
|
|
699
|
-
:type execution_context: typing.
|
|
700
|
-
:type undo:
|
|
714
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
715
|
+
:type execution_context: typing.Union[str, int]
|
|
716
|
+
:type undo: bool
|
|
701
717
|
:param mode: Mode
|
|
702
718
|
|
|
703
719
|
ACTIVE
|
|
@@ -705,184 +721,182 @@ def frame_duplicate(
|
|
|
705
721
|
|
|
706
722
|
ALL
|
|
707
723
|
All -- Duplicate active frames in all layers.
|
|
708
|
-
:type mode: typing.
|
|
724
|
+
:type mode: typing.Any
|
|
709
725
|
"""
|
|
710
726
|
|
|
711
727
|
...
|
|
712
728
|
|
|
713
729
|
def generate_weights(
|
|
714
|
-
override_context=None,
|
|
715
|
-
execution_context=None,
|
|
716
|
-
undo=None,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
decay: typing.Optional[typing.Any] = 0.8,
|
|
730
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
731
|
+
execution_context: typing.Union[str, int] = None,
|
|
732
|
+
undo: bool = None,
|
|
733
|
+
mode: typing.Any = "NAME",
|
|
734
|
+
armature: typing.Union[str, int, typing.Any] = "DEFAULT",
|
|
735
|
+
ratio: typing.Any = 0.1,
|
|
736
|
+
decay: typing.Any = 0.8,
|
|
722
737
|
):
|
|
723
738
|
"""Generate automatic weights for armatures (requires armature modifier)
|
|
724
739
|
|
|
725
|
-
:type override_context: typing.
|
|
726
|
-
:type execution_context: typing.
|
|
727
|
-
:type undo:
|
|
740
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
741
|
+
:type execution_context: typing.Union[str, int]
|
|
742
|
+
:type undo: bool
|
|
728
743
|
:param mode: Mode
|
|
729
|
-
:type mode: typing.
|
|
744
|
+
:type mode: typing.Any
|
|
730
745
|
:param armature: Armature, Armature to use
|
|
731
|
-
:type armature: typing.
|
|
746
|
+
:type armature: typing.Union[str, int, typing.Any]
|
|
732
747
|
:param ratio: Ratio, Ratio between bone length and influence radius
|
|
733
|
-
:type ratio: typing.
|
|
748
|
+
:type ratio: typing.Any
|
|
734
749
|
:param decay: Decay, Factor to reduce influence depending of distance to bone axis
|
|
735
|
-
:type decay: typing.
|
|
750
|
+
:type decay: typing.Any
|
|
736
751
|
"""
|
|
737
752
|
|
|
738
753
|
...
|
|
739
754
|
|
|
740
755
|
def guide_rotate(
|
|
741
|
-
override_context=None,
|
|
742
|
-
execution_context=None,
|
|
743
|
-
undo=None,
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
angle: typing.Optional[typing.Any] = 0.0,
|
|
756
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
757
|
+
execution_context: typing.Union[str, int] = None,
|
|
758
|
+
undo: bool = None,
|
|
759
|
+
increment: typing.Union[bool, typing.Any] = True,
|
|
760
|
+
angle: typing.Any = 0.0,
|
|
747
761
|
):
|
|
748
762
|
"""Rotate guide angle
|
|
749
763
|
|
|
750
|
-
:type override_context: typing.
|
|
751
|
-
:type execution_context: typing.
|
|
752
|
-
:type undo:
|
|
764
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
765
|
+
:type execution_context: typing.Union[str, int]
|
|
766
|
+
:type undo: bool
|
|
753
767
|
:param increment: Increment, Increment angle
|
|
754
|
-
:type increment: typing.
|
|
768
|
+
:type increment: typing.Union[bool, typing.Any]
|
|
755
769
|
:param angle: Angle, Guide angle
|
|
756
|
-
:type angle: typing.
|
|
770
|
+
:type angle: typing.Any
|
|
757
771
|
"""
|
|
758
772
|
|
|
759
773
|
...
|
|
760
774
|
|
|
761
775
|
def hide(
|
|
762
|
-
override_context=None,
|
|
763
|
-
execution_context=None,
|
|
764
|
-
undo=None,
|
|
765
|
-
|
|
766
|
-
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
776
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
777
|
+
execution_context: typing.Union[str, int] = None,
|
|
778
|
+
undo: bool = None,
|
|
779
|
+
unselected: typing.Union[bool, typing.Any] = False,
|
|
767
780
|
):
|
|
768
781
|
"""Hide selected/unselected Grease Pencil layers
|
|
769
782
|
|
|
770
|
-
:type override_context: typing.
|
|
771
|
-
:type execution_context: typing.
|
|
772
|
-
:type undo:
|
|
783
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
784
|
+
:type execution_context: typing.Union[str, int]
|
|
785
|
+
:type undo: bool
|
|
773
786
|
:param unselected: Unselected, Hide unselected rather than selected layers
|
|
774
|
-
:type unselected: typing.
|
|
787
|
+
:type unselected: typing.Union[bool, typing.Any]
|
|
775
788
|
"""
|
|
776
789
|
|
|
777
790
|
...
|
|
778
791
|
|
|
779
792
|
def image_to_grease_pencil(
|
|
780
|
-
override_context=None,
|
|
781
|
-
execution_context=None,
|
|
782
|
-
undo=None,
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
mask: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
793
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
794
|
+
execution_context: typing.Union[str, int] = None,
|
|
795
|
+
undo: bool = None,
|
|
796
|
+
size: typing.Any = 0.005,
|
|
797
|
+
mask: typing.Union[bool, typing.Any] = False,
|
|
786
798
|
):
|
|
787
799
|
"""Generate a Grease Pencil Object using Image as source
|
|
788
800
|
|
|
789
|
-
:type override_context: typing.
|
|
790
|
-
:type execution_context: typing.
|
|
791
|
-
:type undo:
|
|
801
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
802
|
+
:type execution_context: typing.Union[str, int]
|
|
803
|
+
:type undo: bool
|
|
792
804
|
:param size: Point Size, Size used for grease pencil points
|
|
793
|
-
:type size: typing.
|
|
805
|
+
:type size: typing.Any
|
|
794
806
|
:param mask: Generate Mask, Create an inverted image for masking using alpha channel
|
|
795
|
-
:type mask: typing.
|
|
807
|
+
:type mask: typing.Union[bool, typing.Any]
|
|
796
808
|
"""
|
|
797
809
|
|
|
798
810
|
...
|
|
799
811
|
|
|
800
812
|
def interpolate(
|
|
801
|
-
override_context=None,
|
|
802
|
-
execution_context=None,
|
|
803
|
-
undo=None,
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
release_confirm: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
813
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
814
|
+
execution_context: typing.Union[str, int] = None,
|
|
815
|
+
undo: bool = None,
|
|
816
|
+
shift: typing.Any = 0.0,
|
|
817
|
+
layers: typing.Any = "ACTIVE",
|
|
818
|
+
interpolate_selected_only: typing.Union[bool, typing.Any] = False,
|
|
819
|
+
exclude_breakdowns: typing.Union[bool, typing.Any] = False,
|
|
820
|
+
flip: typing.Any = "AUTO",
|
|
821
|
+
smooth_steps: typing.Any = 1,
|
|
822
|
+
smooth_factor: typing.Any = 0.0,
|
|
823
|
+
release_confirm: typing.Union[bool, typing.Any] = False,
|
|
813
824
|
):
|
|
814
825
|
"""Interpolate grease pencil strokes between frames
|
|
815
826
|
|
|
816
|
-
:type override_context: typing.
|
|
817
|
-
:type execution_context: typing.
|
|
818
|
-
:type undo:
|
|
827
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
828
|
+
:type execution_context: typing.Union[str, int]
|
|
829
|
+
:type undo: bool
|
|
819
830
|
:param shift: Shift, Bias factor for which frame has more influence on the interpolated strokes
|
|
820
|
-
:type shift: typing.
|
|
831
|
+
:type shift: typing.Any
|
|
821
832
|
:param layers: Layer, Layers included in the interpolation
|
|
822
|
-
:type layers: typing.
|
|
833
|
+
:type layers: typing.Any
|
|
823
834
|
:param interpolate_selected_only: Only Selected, Interpolate only selected strokes
|
|
824
|
-
:type interpolate_selected_only: typing.
|
|
835
|
+
:type interpolate_selected_only: typing.Union[bool, typing.Any]
|
|
825
836
|
:param exclude_breakdowns: Exclude Breakdowns, Exclude existing Breakdowns keyframes as interpolation extremes
|
|
826
|
-
:type exclude_breakdowns: typing.
|
|
837
|
+
:type exclude_breakdowns: typing.Union[bool, typing.Any]
|
|
827
838
|
:param flip: Flip Mode, Invert destination stroke to match start and end with source stroke
|
|
828
|
-
:type flip: typing.
|
|
839
|
+
:type flip: typing.Any
|
|
829
840
|
:param smooth_steps: Iterations, Number of times to smooth newly created strokes
|
|
830
|
-
:type smooth_steps: typing.
|
|
841
|
+
:type smooth_steps: typing.Any
|
|
831
842
|
:param smooth_factor: Smooth, Amount of smoothing to apply to interpolated strokes, to reduce jitter/noise
|
|
832
|
-
:type smooth_factor: typing.
|
|
843
|
+
:type smooth_factor: typing.Any
|
|
833
844
|
:param release_confirm: Confirm on Release
|
|
834
|
-
:type release_confirm: typing.
|
|
845
|
+
:type release_confirm: typing.Union[bool, typing.Any]
|
|
835
846
|
"""
|
|
836
847
|
|
|
837
848
|
...
|
|
838
849
|
|
|
839
|
-
def interpolate_reverse(
|
|
850
|
+
def interpolate_reverse(
|
|
851
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
852
|
+
execution_context: typing.Union[str, int] = None,
|
|
853
|
+
undo: bool = None,
|
|
854
|
+
):
|
|
840
855
|
"""Remove breakdown frames generated by interpolating between two Grease Pencil frames
|
|
841
856
|
|
|
842
|
-
:type override_context: typing.
|
|
843
|
-
:type execution_context: typing.
|
|
844
|
-
:type undo:
|
|
857
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
858
|
+
:type execution_context: typing.Union[str, int]
|
|
859
|
+
:type undo: bool
|
|
845
860
|
"""
|
|
846
861
|
|
|
847
862
|
...
|
|
848
863
|
|
|
849
864
|
def interpolate_sequence(
|
|
850
|
-
override_context=None,
|
|
851
|
-
execution_context=None,
|
|
852
|
-
undo=None,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
period: typing.Optional[typing.Any] = 0.15,
|
|
865
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
866
|
+
execution_context: typing.Union[str, int] = None,
|
|
867
|
+
undo: bool = None,
|
|
868
|
+
step: typing.Any = 1,
|
|
869
|
+
layers: typing.Any = "ACTIVE",
|
|
870
|
+
interpolate_selected_only: typing.Union[bool, typing.Any] = False,
|
|
871
|
+
exclude_breakdowns: typing.Union[bool, typing.Any] = False,
|
|
872
|
+
flip: typing.Any = "AUTO",
|
|
873
|
+
smooth_steps: typing.Any = 1,
|
|
874
|
+
smooth_factor: typing.Any = 0.0,
|
|
875
|
+
type: typing.Any = "LINEAR",
|
|
876
|
+
easing: typing.Any = "AUTO",
|
|
877
|
+
back: typing.Any = 1.702,
|
|
878
|
+
amplitude: typing.Any = 0.15,
|
|
879
|
+
period: typing.Any = 0.15,
|
|
866
880
|
):
|
|
867
881
|
"""Generate 'in-betweens' to smoothly interpolate between Grease Pencil frames
|
|
868
882
|
|
|
869
|
-
:type override_context: typing.
|
|
870
|
-
:type execution_context: typing.
|
|
871
|
-
:type undo:
|
|
883
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
884
|
+
:type execution_context: typing.Union[str, int]
|
|
885
|
+
:type undo: bool
|
|
872
886
|
:param step: Step, Number of frames between generated interpolated frames
|
|
873
|
-
:type step: typing.
|
|
887
|
+
:type step: typing.Any
|
|
874
888
|
:param layers: Layer, Layers included in the interpolation
|
|
875
|
-
:type layers: typing.
|
|
889
|
+
:type layers: typing.Any
|
|
876
890
|
:param interpolate_selected_only: Only Selected, Interpolate only selected strokes
|
|
877
|
-
:type interpolate_selected_only: typing.
|
|
891
|
+
:type interpolate_selected_only: typing.Union[bool, typing.Any]
|
|
878
892
|
:param exclude_breakdowns: Exclude Breakdowns, Exclude existing Breakdowns keyframes as interpolation extremes
|
|
879
|
-
:type exclude_breakdowns: typing.
|
|
893
|
+
:type exclude_breakdowns: typing.Union[bool, typing.Any]
|
|
880
894
|
:param flip: Flip Mode, Invert destination stroke to match start and end with source stroke
|
|
881
|
-
:type flip: typing.
|
|
895
|
+
:type flip: typing.Any
|
|
882
896
|
:param smooth_steps: Iterations, Number of times to smooth newly created strokes
|
|
883
|
-
:type smooth_steps: typing.
|
|
897
|
+
:type smooth_steps: typing.Any
|
|
884
898
|
:param smooth_factor: Smooth, Amount of smoothing to apply to interpolated strokes, to reduce jitter/noise
|
|
885
|
-
:type smooth_factor: typing.
|
|
899
|
+
:type smooth_factor: typing.Any
|
|
886
900
|
:param type: Type, Interpolation method to use the next time 'Interpolate Sequence' is run
|
|
887
901
|
|
|
888
902
|
LINEAR
|
|
@@ -920,7 +934,7 @@ def interpolate_sequence(
|
|
|
920
934
|
|
|
921
935
|
ELASTIC
|
|
922
936
|
Elastic -- Exponentially decaying sine wave, like an elastic band.
|
|
923
|
-
:type type: typing.
|
|
937
|
+
:type type: typing.Any
|
|
924
938
|
:param easing: Easing, Which ends of the segment between the preceding and following grease pencil frames easing interpolation is applied to
|
|
925
939
|
|
|
926
940
|
AUTO
|
|
@@ -934,181 +948,181 @@ def interpolate_sequence(
|
|
|
934
948
|
|
|
935
949
|
EASE_IN_OUT
|
|
936
950
|
Ease In and Out -- Segment between both keyframes.
|
|
937
|
-
:type easing: typing.
|
|
951
|
+
:type easing: typing.Any
|
|
938
952
|
:param back: Back, Amount of overshoot for 'back' easing
|
|
939
|
-
:type back: typing.
|
|
953
|
+
:type back: typing.Any
|
|
940
954
|
:param amplitude: Amplitude, Amount to boost elastic bounces for 'elastic' easing
|
|
941
|
-
:type amplitude: typing.
|
|
955
|
+
:type amplitude: typing.Any
|
|
942
956
|
:param period: Period, Time between bounces for elastic easing
|
|
943
|
-
:type period: typing.
|
|
957
|
+
:type period: typing.Any
|
|
944
958
|
"""
|
|
945
959
|
|
|
946
960
|
...
|
|
947
961
|
|
|
948
962
|
def layer_active(
|
|
949
|
-
override_context=None,
|
|
950
|
-
execution_context=None,
|
|
951
|
-
undo=None,
|
|
952
|
-
|
|
953
|
-
layer: typing.Optional[typing.Any] = 0,
|
|
963
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
964
|
+
execution_context: typing.Union[str, int] = None,
|
|
965
|
+
undo: bool = None,
|
|
966
|
+
layer: typing.Any = 0,
|
|
954
967
|
):
|
|
955
968
|
"""Active Grease Pencil layer
|
|
956
969
|
|
|
957
|
-
:type override_context: typing.
|
|
958
|
-
:type execution_context: typing.
|
|
959
|
-
:type undo:
|
|
970
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
971
|
+
:type execution_context: typing.Union[str, int]
|
|
972
|
+
:type undo: bool
|
|
960
973
|
:param layer: Grease Pencil Layer
|
|
961
|
-
:type layer: typing.
|
|
974
|
+
:type layer: typing.Any
|
|
962
975
|
"""
|
|
963
976
|
|
|
964
977
|
...
|
|
965
978
|
|
|
966
979
|
def layer_add(
|
|
967
|
-
override_context=None,
|
|
968
|
-
execution_context=None,
|
|
969
|
-
undo=None,
|
|
970
|
-
|
|
971
|
-
layer: typing.Optional[typing.Any] = 0,
|
|
980
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
981
|
+
execution_context: typing.Union[str, int] = None,
|
|
982
|
+
undo: bool = None,
|
|
983
|
+
layer: typing.Any = 0,
|
|
972
984
|
new_layer_name: typing.Union[str, typing.Any] = "",
|
|
973
985
|
):
|
|
974
986
|
"""Add new layer or note for the active data-block
|
|
975
987
|
|
|
976
|
-
:type override_context: typing.
|
|
977
|
-
:type execution_context: typing.
|
|
978
|
-
:type undo:
|
|
988
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
989
|
+
:type execution_context: typing.Union[str, int]
|
|
990
|
+
:type undo: bool
|
|
979
991
|
:param layer: Grease Pencil Layer
|
|
980
|
-
:type layer: typing.
|
|
992
|
+
:type layer: typing.Any
|
|
981
993
|
:param new_layer_name: Name, Name of the newly added layer
|
|
982
994
|
:type new_layer_name: typing.Union[str, typing.Any]
|
|
983
995
|
"""
|
|
984
996
|
|
|
985
997
|
...
|
|
986
998
|
|
|
987
|
-
def layer_annotation_add(
|
|
999
|
+
def layer_annotation_add(
|
|
1000
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1001
|
+
execution_context: typing.Union[str, int] = None,
|
|
1002
|
+
undo: bool = None,
|
|
1003
|
+
):
|
|
988
1004
|
"""Add new Annotation layer or note for the active data-block
|
|
989
1005
|
|
|
990
|
-
:type override_context: typing.
|
|
991
|
-
:type execution_context: typing.
|
|
992
|
-
:type undo:
|
|
1006
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1007
|
+
:type execution_context: typing.Union[str, int]
|
|
1008
|
+
:type undo: bool
|
|
993
1009
|
"""
|
|
994
1010
|
|
|
995
1011
|
...
|
|
996
1012
|
|
|
997
1013
|
def layer_annotation_move(
|
|
998
|
-
override_context=None,
|
|
999
|
-
execution_context=None,
|
|
1000
|
-
undo=None,
|
|
1001
|
-
|
|
1002
|
-
type: typing.Optional[typing.Any] = "UP",
|
|
1014
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1015
|
+
execution_context: typing.Union[str, int] = None,
|
|
1016
|
+
undo: bool = None,
|
|
1017
|
+
type: typing.Any = "UP",
|
|
1003
1018
|
):
|
|
1004
1019
|
"""Move the active Annotation layer up/down in the list
|
|
1005
1020
|
|
|
1006
|
-
:type override_context: typing.
|
|
1007
|
-
:type execution_context: typing.
|
|
1008
|
-
:type undo:
|
|
1021
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1022
|
+
:type execution_context: typing.Union[str, int]
|
|
1023
|
+
:type undo: bool
|
|
1009
1024
|
:param type: Type
|
|
1010
|
-
:type type: typing.
|
|
1025
|
+
:type type: typing.Any
|
|
1011
1026
|
"""
|
|
1012
1027
|
|
|
1013
1028
|
...
|
|
1014
1029
|
|
|
1015
|
-
def layer_annotation_remove(
|
|
1030
|
+
def layer_annotation_remove(
|
|
1031
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1032
|
+
execution_context: typing.Union[str, int] = None,
|
|
1033
|
+
undo: bool = None,
|
|
1034
|
+
):
|
|
1016
1035
|
"""Remove active Annotation layer
|
|
1017
1036
|
|
|
1018
|
-
:type override_context: typing.
|
|
1019
|
-
:type execution_context: typing.
|
|
1020
|
-
:type undo:
|
|
1037
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1038
|
+
:type execution_context: typing.Union[str, int]
|
|
1039
|
+
:type undo: bool
|
|
1021
1040
|
"""
|
|
1022
1041
|
|
|
1023
1042
|
...
|
|
1024
1043
|
|
|
1025
1044
|
def layer_change(
|
|
1026
|
-
override_context=None,
|
|
1027
|
-
execution_context=None,
|
|
1028
|
-
undo=None,
|
|
1029
|
-
|
|
1030
|
-
layer: typing.Optional[typing.Union[int, str, typing.Any]] = "DEFAULT",
|
|
1045
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1046
|
+
execution_context: typing.Union[str, int] = None,
|
|
1047
|
+
undo: bool = None,
|
|
1048
|
+
layer: typing.Union[str, int, typing.Any] = "DEFAULT",
|
|
1031
1049
|
):
|
|
1032
1050
|
"""Change active Grease Pencil layer
|
|
1033
1051
|
|
|
1034
|
-
:type override_context: typing.
|
|
1035
|
-
:type execution_context: typing.
|
|
1036
|
-
:type undo:
|
|
1052
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1053
|
+
:type execution_context: typing.Union[str, int]
|
|
1054
|
+
:type undo: bool
|
|
1037
1055
|
:param layer: Grease Pencil Layer
|
|
1038
|
-
:type layer: typing.
|
|
1056
|
+
:type layer: typing.Union[str, int, typing.Any]
|
|
1039
1057
|
"""
|
|
1040
1058
|
|
|
1041
1059
|
...
|
|
1042
1060
|
|
|
1043
1061
|
def layer_duplicate(
|
|
1044
|
-
override_context=None,
|
|
1045
|
-
execution_context=None,
|
|
1046
|
-
undo=None,
|
|
1047
|
-
|
|
1048
|
-
mode: typing.Optional[typing.Any] = "ALL",
|
|
1062
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1063
|
+
execution_context: typing.Union[str, int] = None,
|
|
1064
|
+
undo: bool = None,
|
|
1065
|
+
mode: typing.Any = "ALL",
|
|
1049
1066
|
):
|
|
1050
1067
|
"""Make a copy of the active Grease Pencil layer
|
|
1051
1068
|
|
|
1052
|
-
:type override_context: typing.
|
|
1053
|
-
:type execution_context: typing.
|
|
1054
|
-
:type undo:
|
|
1069
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1070
|
+
:type execution_context: typing.Union[str, int]
|
|
1071
|
+
:type undo: bool
|
|
1055
1072
|
:param mode: Mode
|
|
1056
|
-
:type mode: typing.
|
|
1073
|
+
:type mode: typing.Any
|
|
1057
1074
|
"""
|
|
1058
1075
|
|
|
1059
1076
|
...
|
|
1060
1077
|
|
|
1061
1078
|
def layer_duplicate_object(
|
|
1062
|
-
override_context=None,
|
|
1063
|
-
execution_context=None,
|
|
1064
|
-
undo=None,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
only_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1079
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1080
|
+
execution_context: typing.Union[str, int] = None,
|
|
1081
|
+
undo: bool = None,
|
|
1082
|
+
mode: typing.Any = "ALL",
|
|
1083
|
+
only_active: typing.Union[bool, typing.Any] = True,
|
|
1068
1084
|
):
|
|
1069
1085
|
"""Make a copy of the active Grease Pencil layer to selected object
|
|
1070
1086
|
|
|
1071
|
-
:type override_context: typing.
|
|
1072
|
-
:type execution_context: typing.
|
|
1073
|
-
:type undo:
|
|
1087
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1088
|
+
:type execution_context: typing.Union[str, int]
|
|
1089
|
+
:type undo: bool
|
|
1074
1090
|
:param mode: Mode
|
|
1075
|
-
:type mode: typing.
|
|
1091
|
+
:type mode: typing.Any
|
|
1076
1092
|
:param only_active: Only Active, Copy only active Layer, uncheck to append all layers
|
|
1077
|
-
:type only_active: typing.
|
|
1093
|
+
:type only_active: typing.Union[bool, typing.Any]
|
|
1078
1094
|
"""
|
|
1079
1095
|
|
|
1080
1096
|
...
|
|
1081
1097
|
|
|
1082
1098
|
def layer_isolate(
|
|
1083
|
-
override_context=None,
|
|
1084
|
-
execution_context=None,
|
|
1085
|
-
undo=None,
|
|
1086
|
-
|
|
1087
|
-
affect_visibility: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1099
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1100
|
+
execution_context: typing.Union[str, int] = None,
|
|
1101
|
+
undo: bool = None,
|
|
1102
|
+
affect_visibility: typing.Union[bool, typing.Any] = False,
|
|
1088
1103
|
):
|
|
1089
1104
|
"""Toggle whether the active layer is the only one that can be edited and/or visible
|
|
1090
1105
|
|
|
1091
|
-
:type override_context: typing.
|
|
1092
|
-
:type execution_context: typing.
|
|
1093
|
-
:type undo:
|
|
1106
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1107
|
+
:type execution_context: typing.Union[str, int]
|
|
1108
|
+
:type undo: bool
|
|
1094
1109
|
:param affect_visibility: Affect Visibility, In addition to toggling the editability, also affect the visibility
|
|
1095
|
-
:type affect_visibility: typing.
|
|
1110
|
+
:type affect_visibility: typing.Union[bool, typing.Any]
|
|
1096
1111
|
"""
|
|
1097
1112
|
|
|
1098
1113
|
...
|
|
1099
1114
|
|
|
1100
1115
|
def layer_mask_add(
|
|
1101
|
-
override_context=None,
|
|
1102
|
-
execution_context=None,
|
|
1103
|
-
undo=None,
|
|
1104
|
-
*,
|
|
1116
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1117
|
+
execution_context: typing.Union[str, int] = None,
|
|
1118
|
+
undo: bool = None,
|
|
1105
1119
|
name: typing.Union[str, typing.Any] = "",
|
|
1106
1120
|
):
|
|
1107
1121
|
"""Add new layer as masking
|
|
1108
1122
|
|
|
1109
|
-
:type override_context: typing.
|
|
1110
|
-
:type execution_context: typing.
|
|
1111
|
-
:type undo:
|
|
1123
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1124
|
+
:type execution_context: typing.Union[str, int]
|
|
1125
|
+
:type undo: bool
|
|
1112
1126
|
:param name: Layer, Name of the layer
|
|
1113
1127
|
:type name: typing.Union[str, typing.Any]
|
|
1114
1128
|
"""
|
|
@@ -1116,45 +1130,47 @@ def layer_mask_add(
|
|
|
1116
1130
|
...
|
|
1117
1131
|
|
|
1118
1132
|
def layer_mask_move(
|
|
1119
|
-
override_context=None,
|
|
1120
|
-
execution_context=None,
|
|
1121
|
-
undo=None,
|
|
1122
|
-
|
|
1123
|
-
type: typing.Optional[typing.Any] = "UP",
|
|
1133
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1134
|
+
execution_context: typing.Union[str, int] = None,
|
|
1135
|
+
undo: bool = None,
|
|
1136
|
+
type: typing.Any = "UP",
|
|
1124
1137
|
):
|
|
1125
1138
|
"""Move the active Grease Pencil mask layer up/down in the list
|
|
1126
1139
|
|
|
1127
|
-
:type override_context: typing.
|
|
1128
|
-
:type execution_context: typing.
|
|
1129
|
-
:type undo:
|
|
1140
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1141
|
+
:type execution_context: typing.Union[str, int]
|
|
1142
|
+
:type undo: bool
|
|
1130
1143
|
:param type: Type
|
|
1131
|
-
:type type: typing.
|
|
1144
|
+
:type type: typing.Any
|
|
1132
1145
|
"""
|
|
1133
1146
|
|
|
1134
1147
|
...
|
|
1135
1148
|
|
|
1136
|
-
def layer_mask_remove(
|
|
1149
|
+
def layer_mask_remove(
|
|
1150
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1151
|
+
execution_context: typing.Union[str, int] = None,
|
|
1152
|
+
undo: bool = None,
|
|
1153
|
+
):
|
|
1137
1154
|
"""Remove Layer Mask
|
|
1138
1155
|
|
|
1139
|
-
:type override_context: typing.
|
|
1140
|
-
:type execution_context: typing.
|
|
1141
|
-
:type undo:
|
|
1156
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1157
|
+
:type execution_context: typing.Union[str, int]
|
|
1158
|
+
:type undo: bool
|
|
1142
1159
|
"""
|
|
1143
1160
|
|
|
1144
1161
|
...
|
|
1145
1162
|
|
|
1146
1163
|
def layer_merge(
|
|
1147
|
-
override_context=None,
|
|
1148
|
-
execution_context=None,
|
|
1149
|
-
undo=None,
|
|
1150
|
-
|
|
1151
|
-
mode: typing.Optional[typing.Any] = "ACTIVE",
|
|
1164
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1165
|
+
execution_context: typing.Union[str, int] = None,
|
|
1166
|
+
undo: bool = None,
|
|
1167
|
+
mode: typing.Any = "ACTIVE",
|
|
1152
1168
|
):
|
|
1153
1169
|
"""Combine Layers
|
|
1154
1170
|
|
|
1155
|
-
:type override_context: typing.
|
|
1156
|
-
:type execution_context: typing.
|
|
1157
|
-
:type undo:
|
|
1171
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1172
|
+
:type execution_context: typing.Union[str, int]
|
|
1173
|
+
:type undo: bool
|
|
1158
1174
|
:param mode: Mode
|
|
1159
1175
|
|
|
1160
1176
|
ACTIVE
|
|
@@ -1162,231 +1178,251 @@ def layer_merge(
|
|
|
1162
1178
|
|
|
1163
1179
|
ALL
|
|
1164
1180
|
All -- Combine all layers into the active layer.
|
|
1165
|
-
:type mode: typing.
|
|
1181
|
+
:type mode: typing.Any
|
|
1166
1182
|
"""
|
|
1167
1183
|
|
|
1168
1184
|
...
|
|
1169
1185
|
|
|
1170
1186
|
def layer_move(
|
|
1171
|
-
override_context=None,
|
|
1172
|
-
execution_context=None,
|
|
1173
|
-
undo=None,
|
|
1174
|
-
|
|
1175
|
-
type: typing.Optional[typing.Any] = "UP",
|
|
1187
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1188
|
+
execution_context: typing.Union[str, int] = None,
|
|
1189
|
+
undo: bool = None,
|
|
1190
|
+
type: typing.Any = "UP",
|
|
1176
1191
|
):
|
|
1177
1192
|
"""Move the active Grease Pencil layer up/down in the list
|
|
1178
1193
|
|
|
1179
|
-
:type override_context: typing.
|
|
1180
|
-
:type execution_context: typing.
|
|
1181
|
-
:type undo:
|
|
1194
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1195
|
+
:type execution_context: typing.Union[str, int]
|
|
1196
|
+
:type undo: bool
|
|
1182
1197
|
:param type: Type
|
|
1183
|
-
:type type: typing.
|
|
1198
|
+
:type type: typing.Any
|
|
1184
1199
|
"""
|
|
1185
1200
|
|
|
1186
1201
|
...
|
|
1187
1202
|
|
|
1188
|
-
def layer_remove(
|
|
1203
|
+
def layer_remove(
|
|
1204
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1205
|
+
execution_context: typing.Union[str, int] = None,
|
|
1206
|
+
undo: bool = None,
|
|
1207
|
+
):
|
|
1189
1208
|
"""Remove active Grease Pencil layer
|
|
1190
1209
|
|
|
1191
|
-
:type override_context: typing.
|
|
1192
|
-
:type execution_context: typing.
|
|
1193
|
-
:type undo:
|
|
1210
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1211
|
+
:type execution_context: typing.Union[str, int]
|
|
1212
|
+
:type undo: bool
|
|
1194
1213
|
"""
|
|
1195
1214
|
|
|
1196
1215
|
...
|
|
1197
1216
|
|
|
1198
|
-
def lock_all(
|
|
1217
|
+
def lock_all(
|
|
1218
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1219
|
+
execution_context: typing.Union[str, int] = None,
|
|
1220
|
+
undo: bool = None,
|
|
1221
|
+
):
|
|
1199
1222
|
"""Lock all Grease Pencil layers to prevent them from being accidentally modified
|
|
1200
1223
|
|
|
1201
|
-
:type override_context: typing.
|
|
1202
|
-
:type execution_context: typing.
|
|
1203
|
-
:type undo:
|
|
1224
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1225
|
+
:type execution_context: typing.Union[str, int]
|
|
1226
|
+
:type undo: bool
|
|
1204
1227
|
"""
|
|
1205
1228
|
|
|
1206
1229
|
...
|
|
1207
1230
|
|
|
1208
|
-
def lock_layer(
|
|
1231
|
+
def lock_layer(
|
|
1232
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1233
|
+
execution_context: typing.Union[str, int] = None,
|
|
1234
|
+
undo: bool = None,
|
|
1235
|
+
):
|
|
1209
1236
|
"""Lock and hide any color not used in any layer
|
|
1210
1237
|
|
|
1211
|
-
:type override_context: typing.
|
|
1212
|
-
:type execution_context: typing.
|
|
1213
|
-
:type undo:
|
|
1238
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1239
|
+
:type execution_context: typing.Union[str, int]
|
|
1240
|
+
:type undo: bool
|
|
1214
1241
|
"""
|
|
1215
1242
|
|
|
1216
1243
|
...
|
|
1217
1244
|
|
|
1218
1245
|
def material_hide(
|
|
1219
|
-
override_context=None,
|
|
1220
|
-
execution_context=None,
|
|
1221
|
-
undo=None,
|
|
1222
|
-
|
|
1223
|
-
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1246
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1247
|
+
execution_context: typing.Union[str, int] = None,
|
|
1248
|
+
undo: bool = None,
|
|
1249
|
+
unselected: typing.Union[bool, typing.Any] = False,
|
|
1224
1250
|
):
|
|
1225
1251
|
"""Hide selected/unselected Grease Pencil materials
|
|
1226
1252
|
|
|
1227
|
-
:type override_context: typing.
|
|
1228
|
-
:type execution_context: typing.
|
|
1229
|
-
:type undo:
|
|
1253
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1254
|
+
:type execution_context: typing.Union[str, int]
|
|
1255
|
+
:type undo: bool
|
|
1230
1256
|
:param unselected: Unselected, Hide unselected rather than selected colors
|
|
1231
|
-
:type unselected: typing.
|
|
1257
|
+
:type unselected: typing.Union[bool, typing.Any]
|
|
1232
1258
|
"""
|
|
1233
1259
|
|
|
1234
1260
|
...
|
|
1235
1261
|
|
|
1236
1262
|
def material_isolate(
|
|
1237
|
-
override_context=None,
|
|
1238
|
-
execution_context=None,
|
|
1239
|
-
undo=None,
|
|
1240
|
-
|
|
1241
|
-
affect_visibility: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1263
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1264
|
+
execution_context: typing.Union[str, int] = None,
|
|
1265
|
+
undo: bool = None,
|
|
1266
|
+
affect_visibility: typing.Union[bool, typing.Any] = False,
|
|
1242
1267
|
):
|
|
1243
1268
|
"""Toggle whether the active material is the only one that is editable and/or visible
|
|
1244
1269
|
|
|
1245
|
-
:type override_context: typing.
|
|
1246
|
-
:type execution_context: typing.
|
|
1247
|
-
:type undo:
|
|
1270
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1271
|
+
:type execution_context: typing.Union[str, int]
|
|
1272
|
+
:type undo: bool
|
|
1248
1273
|
:param affect_visibility: Affect Visibility, In addition to toggling the editability, also affect the visibility
|
|
1249
|
-
:type affect_visibility: typing.
|
|
1274
|
+
:type affect_visibility: typing.Union[bool, typing.Any]
|
|
1250
1275
|
"""
|
|
1251
1276
|
|
|
1252
1277
|
...
|
|
1253
1278
|
|
|
1254
|
-
def material_lock_all(
|
|
1279
|
+
def material_lock_all(
|
|
1280
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1281
|
+
execution_context: typing.Union[str, int] = None,
|
|
1282
|
+
undo: bool = None,
|
|
1283
|
+
):
|
|
1255
1284
|
"""Lock all Grease Pencil materials to prevent them from being accidentally modified
|
|
1256
1285
|
|
|
1257
|
-
:type override_context: typing.
|
|
1258
|
-
:type execution_context: typing.
|
|
1259
|
-
:type undo:
|
|
1286
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1287
|
+
:type execution_context: typing.Union[str, int]
|
|
1288
|
+
:type undo: bool
|
|
1260
1289
|
"""
|
|
1261
1290
|
|
|
1262
1291
|
...
|
|
1263
1292
|
|
|
1264
|
-
def material_lock_unused(
|
|
1293
|
+
def material_lock_unused(
|
|
1294
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1295
|
+
execution_context: typing.Union[str, int] = None,
|
|
1296
|
+
undo: bool = None,
|
|
1297
|
+
):
|
|
1265
1298
|
"""Lock any material not used in any selected stroke
|
|
1266
1299
|
|
|
1267
|
-
:type override_context: typing.
|
|
1268
|
-
:type execution_context: typing.
|
|
1269
|
-
:type undo:
|
|
1300
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1301
|
+
:type execution_context: typing.Union[str, int]
|
|
1302
|
+
:type undo: bool
|
|
1270
1303
|
"""
|
|
1271
1304
|
|
|
1272
1305
|
...
|
|
1273
1306
|
|
|
1274
|
-
def material_reveal(
|
|
1307
|
+
def material_reveal(
|
|
1308
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1309
|
+
execution_context: typing.Union[str, int] = None,
|
|
1310
|
+
undo: bool = None,
|
|
1311
|
+
):
|
|
1275
1312
|
"""Unhide all hidden Grease Pencil materials
|
|
1276
1313
|
|
|
1277
|
-
:type override_context: typing.
|
|
1278
|
-
:type execution_context: typing.
|
|
1279
|
-
:type undo:
|
|
1314
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1315
|
+
:type execution_context: typing.Union[str, int]
|
|
1316
|
+
:type undo: bool
|
|
1280
1317
|
"""
|
|
1281
1318
|
|
|
1282
1319
|
...
|
|
1283
1320
|
|
|
1284
1321
|
def material_select(
|
|
1285
|
-
override_context=None,
|
|
1286
|
-
execution_context=None,
|
|
1287
|
-
undo=None,
|
|
1288
|
-
|
|
1289
|
-
deselect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1322
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1323
|
+
execution_context: typing.Union[str, int] = None,
|
|
1324
|
+
undo: bool = None,
|
|
1325
|
+
deselect: typing.Union[bool, typing.Any] = False,
|
|
1290
1326
|
):
|
|
1291
1327
|
"""Select/Deselect all Grease Pencil strokes using current material
|
|
1292
1328
|
|
|
1293
|
-
:type override_context: typing.
|
|
1294
|
-
:type execution_context: typing.
|
|
1295
|
-
:type undo:
|
|
1329
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1330
|
+
:type execution_context: typing.Union[str, int]
|
|
1331
|
+
:type undo: bool
|
|
1296
1332
|
:param deselect: Deselect, Unselect strokes
|
|
1297
|
-
:type deselect: typing.
|
|
1333
|
+
:type deselect: typing.Union[bool, typing.Any]
|
|
1298
1334
|
"""
|
|
1299
1335
|
|
|
1300
1336
|
...
|
|
1301
1337
|
|
|
1302
1338
|
def material_set(
|
|
1303
|
-
override_context=None,
|
|
1304
|
-
execution_context=None,
|
|
1305
|
-
undo=None,
|
|
1306
|
-
|
|
1307
|
-
slot: typing.Optional[typing.Union[int, str, typing.Any]] = "DEFAULT",
|
|
1339
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1340
|
+
execution_context: typing.Union[str, int] = None,
|
|
1341
|
+
undo: bool = None,
|
|
1342
|
+
slot: typing.Union[str, int, typing.Any] = "DEFAULT",
|
|
1308
1343
|
):
|
|
1309
1344
|
"""Set active material
|
|
1310
1345
|
|
|
1311
|
-
:type override_context: typing.
|
|
1312
|
-
:type execution_context: typing.
|
|
1313
|
-
:type undo:
|
|
1346
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1347
|
+
:type execution_context: typing.Union[str, int]
|
|
1348
|
+
:type undo: bool
|
|
1314
1349
|
:param slot: Material Slot
|
|
1315
|
-
:type slot: typing.
|
|
1350
|
+
:type slot: typing.Union[str, int, typing.Any]
|
|
1316
1351
|
"""
|
|
1317
1352
|
|
|
1318
1353
|
...
|
|
1319
1354
|
|
|
1320
1355
|
def material_to_vertex_color(
|
|
1321
|
-
override_context=None,
|
|
1322
|
-
execution_context=None,
|
|
1323
|
-
undo=None,
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
threshold: typing.Optional[typing.Any] = 3,
|
|
1356
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1357
|
+
execution_context: typing.Union[str, int] = None,
|
|
1358
|
+
undo: bool = None,
|
|
1359
|
+
remove: typing.Union[bool, typing.Any] = True,
|
|
1360
|
+
palette: typing.Union[bool, typing.Any] = True,
|
|
1361
|
+
selected: typing.Union[bool, typing.Any] = False,
|
|
1362
|
+
threshold: typing.Any = 3,
|
|
1329
1363
|
):
|
|
1330
1364
|
"""Replace materials in strokes with Vertex Color
|
|
1331
1365
|
|
|
1332
|
-
:type override_context: typing.
|
|
1333
|
-
:type execution_context: typing.
|
|
1334
|
-
:type undo:
|
|
1366
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1367
|
+
:type execution_context: typing.Union[str, int]
|
|
1368
|
+
:type undo: bool
|
|
1335
1369
|
:param remove: Remove Unused Materials, Remove any unused material after the conversion
|
|
1336
|
-
:type remove: typing.
|
|
1370
|
+
:type remove: typing.Union[bool, typing.Any]
|
|
1337
1371
|
:param palette: Create Palette, Create a new palette with colors
|
|
1338
|
-
:type palette: typing.
|
|
1372
|
+
:type palette: typing.Union[bool, typing.Any]
|
|
1339
1373
|
:param selected: Only Selected, Convert only selected strokes
|
|
1340
|
-
:type selected: typing.
|
|
1374
|
+
:type selected: typing.Union[bool, typing.Any]
|
|
1341
1375
|
:param threshold: Threshold
|
|
1342
|
-
:type threshold: typing.
|
|
1376
|
+
:type threshold: typing.Any
|
|
1343
1377
|
"""
|
|
1344
1378
|
|
|
1345
1379
|
...
|
|
1346
1380
|
|
|
1347
|
-
def material_unlock_all(
|
|
1381
|
+
def material_unlock_all(
|
|
1382
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1383
|
+
execution_context: typing.Union[str, int] = None,
|
|
1384
|
+
undo: bool = None,
|
|
1385
|
+
):
|
|
1348
1386
|
"""Unlock all Grease Pencil materials so that they can be edited
|
|
1349
1387
|
|
|
1350
|
-
:type override_context: typing.
|
|
1351
|
-
:type execution_context: typing.
|
|
1352
|
-
:type undo:
|
|
1388
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1389
|
+
:type execution_context: typing.Union[str, int]
|
|
1390
|
+
:type undo: bool
|
|
1353
1391
|
"""
|
|
1354
1392
|
|
|
1355
1393
|
...
|
|
1356
1394
|
|
|
1357
1395
|
def materials_copy_to_object(
|
|
1358
|
-
override_context=None,
|
|
1359
|
-
execution_context=None,
|
|
1360
|
-
undo=None,
|
|
1361
|
-
|
|
1362
|
-
only_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1396
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1397
|
+
execution_context: typing.Union[str, int] = None,
|
|
1398
|
+
undo: bool = None,
|
|
1399
|
+
only_active: typing.Union[bool, typing.Any] = True,
|
|
1363
1400
|
):
|
|
1364
1401
|
"""Append Materials of the active Grease Pencil to other object
|
|
1365
1402
|
|
|
1366
|
-
:type override_context: typing.
|
|
1367
|
-
:type execution_context: typing.
|
|
1368
|
-
:type undo:
|
|
1403
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1404
|
+
:type execution_context: typing.Union[str, int]
|
|
1405
|
+
:type undo: bool
|
|
1369
1406
|
:param only_active: Only Active, Append only active material, uncheck to append all materials
|
|
1370
|
-
:type only_active: typing.
|
|
1407
|
+
:type only_active: typing.Union[bool, typing.Any]
|
|
1371
1408
|
"""
|
|
1372
1409
|
|
|
1373
1410
|
...
|
|
1374
1411
|
|
|
1375
1412
|
def move_to_layer(
|
|
1376
|
-
override_context=None,
|
|
1377
|
-
execution_context=None,
|
|
1378
|
-
undo=None,
|
|
1379
|
-
|
|
1380
|
-
layer: typing.Optional[typing.Any] = 0,
|
|
1413
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1414
|
+
execution_context: typing.Union[str, int] = None,
|
|
1415
|
+
undo: bool = None,
|
|
1416
|
+
layer: typing.Any = 0,
|
|
1381
1417
|
new_layer_name: typing.Union[str, typing.Any] = "",
|
|
1382
1418
|
):
|
|
1383
1419
|
"""Move selected strokes to another layer
|
|
1384
1420
|
|
|
1385
|
-
:type override_context: typing.
|
|
1386
|
-
:type execution_context: typing.
|
|
1387
|
-
:type undo:
|
|
1421
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1422
|
+
:type execution_context: typing.Union[str, int]
|
|
1423
|
+
:type undo: bool
|
|
1388
1424
|
:param layer: Grease Pencil Layer
|
|
1389
|
-
:type layer: typing.
|
|
1425
|
+
:type layer: typing.Any
|
|
1390
1426
|
:param new_layer_name: Name, Name of the newly added layer
|
|
1391
1427
|
:type new_layer_name: typing.Union[str, typing.Any]
|
|
1392
1428
|
"""
|
|
@@ -1394,203 +1430,199 @@ def move_to_layer(
|
|
|
1394
1430
|
...
|
|
1395
1431
|
|
|
1396
1432
|
def paintmode_toggle(
|
|
1397
|
-
override_context=None,
|
|
1398
|
-
execution_context=None,
|
|
1399
|
-
undo=None,
|
|
1400
|
-
|
|
1401
|
-
back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1433
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1434
|
+
execution_context: typing.Union[str, int] = None,
|
|
1435
|
+
undo: bool = None,
|
|
1436
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
1402
1437
|
):
|
|
1403
1438
|
"""Enter/Exit paint mode for Grease Pencil strokes
|
|
1404
1439
|
|
|
1405
|
-
:type override_context: typing.
|
|
1406
|
-
:type execution_context: typing.
|
|
1407
|
-
:type undo:
|
|
1440
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1441
|
+
:type execution_context: typing.Union[str, int]
|
|
1442
|
+
:type undo: bool
|
|
1408
1443
|
:param back: Return to Previous Mode, Return to previous mode
|
|
1409
|
-
:type back: typing.
|
|
1444
|
+
:type back: typing.Union[bool, typing.Any]
|
|
1410
1445
|
"""
|
|
1411
1446
|
|
|
1412
1447
|
...
|
|
1413
1448
|
|
|
1414
1449
|
def paste(
|
|
1415
|
-
override_context=None,
|
|
1416
|
-
execution_context=None,
|
|
1417
|
-
undo=None,
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
paste_back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1450
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1451
|
+
execution_context: typing.Union[str, int] = None,
|
|
1452
|
+
undo: bool = None,
|
|
1453
|
+
type: typing.Any = "ACTIVE",
|
|
1454
|
+
paste_back: typing.Union[bool, typing.Any] = False,
|
|
1421
1455
|
):
|
|
1422
1456
|
"""Paste previously copied strokes to active layer or to original layer
|
|
1423
1457
|
|
|
1424
|
-
:type override_context: typing.
|
|
1425
|
-
:type execution_context: typing.
|
|
1426
|
-
:type undo:
|
|
1458
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1459
|
+
:type execution_context: typing.Union[str, int]
|
|
1460
|
+
:type undo: bool
|
|
1427
1461
|
:param type: Type
|
|
1428
|
-
:type type: typing.
|
|
1462
|
+
:type type: typing.Any
|
|
1429
1463
|
:param paste_back: Paste on Back, Add pasted strokes behind all strokes
|
|
1430
|
-
:type paste_back: typing.
|
|
1464
|
+
:type paste_back: typing.Union[bool, typing.Any]
|
|
1431
1465
|
"""
|
|
1432
1466
|
|
|
1433
1467
|
...
|
|
1434
1468
|
|
|
1435
1469
|
def primitive_box(
|
|
1436
|
-
override_context=None,
|
|
1437
|
-
execution_context=None,
|
|
1438
|
-
undo=None,
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1470
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1471
|
+
execution_context: typing.Union[str, int] = None,
|
|
1472
|
+
undo: bool = None,
|
|
1473
|
+
subdivision: typing.Any = 3,
|
|
1474
|
+
edges: typing.Any = 1,
|
|
1475
|
+
type: typing.Any = "BOX",
|
|
1476
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1444
1477
|
):
|
|
1445
1478
|
"""Create predefined grease pencil stroke box shapes
|
|
1446
1479
|
|
|
1447
|
-
:type override_context: typing.
|
|
1448
|
-
:type execution_context: typing.
|
|
1449
|
-
:type undo:
|
|
1480
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1481
|
+
:type execution_context: typing.Union[str, int]
|
|
1482
|
+
:type undo: bool
|
|
1450
1483
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
1451
|
-
:type subdivision: typing.
|
|
1484
|
+
:type subdivision: typing.Any
|
|
1452
1485
|
:param edges: Edges, Number of points per segment
|
|
1453
|
-
:type edges: typing.
|
|
1486
|
+
:type edges: typing.Any
|
|
1454
1487
|
:param type: Type, Type of shape
|
|
1455
|
-
:type type: typing.
|
|
1488
|
+
:type type: typing.Any
|
|
1456
1489
|
:param wait_for_input: Wait for Input
|
|
1457
|
-
:type wait_for_input: typing.
|
|
1490
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1458
1491
|
"""
|
|
1459
1492
|
|
|
1460
1493
|
...
|
|
1461
1494
|
|
|
1462
1495
|
def primitive_circle(
|
|
1463
|
-
override_context=None,
|
|
1464
|
-
execution_context=None,
|
|
1465
|
-
undo=None,
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1496
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1497
|
+
execution_context: typing.Union[str, int] = None,
|
|
1498
|
+
undo: bool = None,
|
|
1499
|
+
subdivision: typing.Any = 94,
|
|
1500
|
+
edges: typing.Any = 1,
|
|
1501
|
+
type: typing.Any = "CIRCLE",
|
|
1502
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1471
1503
|
):
|
|
1472
1504
|
"""Create predefined grease pencil stroke circle shapes
|
|
1473
1505
|
|
|
1474
|
-
:type override_context: typing.
|
|
1475
|
-
:type execution_context: typing.
|
|
1476
|
-
:type undo:
|
|
1506
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1507
|
+
:type execution_context: typing.Union[str, int]
|
|
1508
|
+
:type undo: bool
|
|
1477
1509
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
1478
|
-
:type subdivision: typing.
|
|
1510
|
+
:type subdivision: typing.Any
|
|
1479
1511
|
:param edges: Edges, Number of points per segment
|
|
1480
|
-
:type edges: typing.
|
|
1512
|
+
:type edges: typing.Any
|
|
1481
1513
|
:param type: Type, Type of shape
|
|
1482
|
-
:type type: typing.
|
|
1514
|
+
:type type: typing.Any
|
|
1483
1515
|
:param wait_for_input: Wait for Input
|
|
1484
|
-
:type wait_for_input: typing.
|
|
1516
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1485
1517
|
"""
|
|
1486
1518
|
|
|
1487
1519
|
...
|
|
1488
1520
|
|
|
1489
1521
|
def primitive_curve(
|
|
1490
|
-
override_context=None,
|
|
1491
|
-
execution_context=None,
|
|
1492
|
-
undo=None,
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1522
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1523
|
+
execution_context: typing.Union[str, int] = None,
|
|
1524
|
+
undo: bool = None,
|
|
1525
|
+
subdivision: typing.Any = 62,
|
|
1526
|
+
edges: typing.Any = 1,
|
|
1527
|
+
type: typing.Any = "CURVE",
|
|
1528
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1498
1529
|
):
|
|
1499
1530
|
"""Create predefined grease pencil stroke curve shapes
|
|
1500
1531
|
|
|
1501
|
-
:type override_context: typing.
|
|
1502
|
-
:type execution_context: typing.
|
|
1503
|
-
:type undo:
|
|
1532
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1533
|
+
:type execution_context: typing.Union[str, int]
|
|
1534
|
+
:type undo: bool
|
|
1504
1535
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
1505
|
-
:type subdivision: typing.
|
|
1536
|
+
:type subdivision: typing.Any
|
|
1506
1537
|
:param edges: Edges, Number of points per segment
|
|
1507
|
-
:type edges: typing.
|
|
1538
|
+
:type edges: typing.Any
|
|
1508
1539
|
:param type: Type, Type of shape
|
|
1509
|
-
:type type: typing.
|
|
1540
|
+
:type type: typing.Any
|
|
1510
1541
|
:param wait_for_input: Wait for Input
|
|
1511
|
-
:type wait_for_input: typing.
|
|
1542
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1512
1543
|
"""
|
|
1513
1544
|
|
|
1514
1545
|
...
|
|
1515
1546
|
|
|
1516
1547
|
def primitive_line(
|
|
1517
|
-
override_context=None,
|
|
1518
|
-
execution_context=None,
|
|
1519
|
-
undo=None,
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1548
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1549
|
+
execution_context: typing.Union[str, int] = None,
|
|
1550
|
+
undo: bool = None,
|
|
1551
|
+
subdivision: typing.Any = 6,
|
|
1552
|
+
edges: typing.Any = 1,
|
|
1553
|
+
type: typing.Any = "LINE",
|
|
1554
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1525
1555
|
):
|
|
1526
1556
|
"""Create predefined grease pencil stroke lines
|
|
1527
1557
|
|
|
1528
|
-
:type override_context: typing.
|
|
1529
|
-
:type execution_context: typing.
|
|
1530
|
-
:type undo:
|
|
1558
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1559
|
+
:type execution_context: typing.Union[str, int]
|
|
1560
|
+
:type undo: bool
|
|
1531
1561
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
1532
|
-
:type subdivision: typing.
|
|
1562
|
+
:type subdivision: typing.Any
|
|
1533
1563
|
:param edges: Edges, Number of points per segment
|
|
1534
|
-
:type edges: typing.
|
|
1564
|
+
:type edges: typing.Any
|
|
1535
1565
|
:param type: Type, Type of shape
|
|
1536
|
-
:type type: typing.
|
|
1566
|
+
:type type: typing.Any
|
|
1537
1567
|
:param wait_for_input: Wait for Input
|
|
1538
|
-
:type wait_for_input: typing.
|
|
1568
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1539
1569
|
"""
|
|
1540
1570
|
|
|
1541
1571
|
...
|
|
1542
1572
|
|
|
1543
1573
|
def primitive_polyline(
|
|
1544
|
-
override_context=None,
|
|
1545
|
-
execution_context=None,
|
|
1546
|
-
undo=None,
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1574
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1575
|
+
execution_context: typing.Union[str, int] = None,
|
|
1576
|
+
undo: bool = None,
|
|
1577
|
+
subdivision: typing.Any = 6,
|
|
1578
|
+
edges: typing.Any = 1,
|
|
1579
|
+
type: typing.Any = "POLYLINE",
|
|
1580
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1552
1581
|
):
|
|
1553
1582
|
"""Create predefined grease pencil stroke polylines
|
|
1554
1583
|
|
|
1555
|
-
:type override_context: typing.
|
|
1556
|
-
:type execution_context: typing.
|
|
1557
|
-
:type undo:
|
|
1584
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1585
|
+
:type execution_context: typing.Union[str, int]
|
|
1586
|
+
:type undo: bool
|
|
1558
1587
|
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
1559
|
-
:type subdivision: typing.
|
|
1588
|
+
:type subdivision: typing.Any
|
|
1560
1589
|
:param edges: Edges, Number of points per segment
|
|
1561
|
-
:type edges: typing.
|
|
1590
|
+
:type edges: typing.Any
|
|
1562
1591
|
:param type: Type, Type of shape
|
|
1563
|
-
:type type: typing.
|
|
1592
|
+
:type type: typing.Any
|
|
1564
1593
|
:param wait_for_input: Wait for Input
|
|
1565
|
-
:type wait_for_input: typing.
|
|
1594
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1566
1595
|
"""
|
|
1567
1596
|
|
|
1568
1597
|
...
|
|
1569
1598
|
|
|
1570
|
-
def recalc_geometry(
|
|
1599
|
+
def recalc_geometry(
|
|
1600
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1601
|
+
execution_context: typing.Union[str, int] = None,
|
|
1602
|
+
undo: bool = None,
|
|
1603
|
+
):
|
|
1571
1604
|
"""Update all internal geometry data
|
|
1572
1605
|
|
|
1573
|
-
:type override_context: typing.
|
|
1574
|
-
:type execution_context: typing.
|
|
1575
|
-
:type undo:
|
|
1606
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1607
|
+
:type execution_context: typing.Union[str, int]
|
|
1608
|
+
:type undo: bool
|
|
1576
1609
|
"""
|
|
1577
1610
|
|
|
1578
1611
|
...
|
|
1579
1612
|
|
|
1580
1613
|
def reproject(
|
|
1581
|
-
override_context=None,
|
|
1582
|
-
execution_context=None,
|
|
1583
|
-
undo=None,
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
offset: typing.Optional[typing.Any] = 0.0,
|
|
1614
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1615
|
+
execution_context: typing.Union[str, int] = None,
|
|
1616
|
+
undo: bool = None,
|
|
1617
|
+
type: typing.Any = "VIEW",
|
|
1618
|
+
keep_original: typing.Union[bool, typing.Any] = False,
|
|
1619
|
+
offset: typing.Any = 0.0,
|
|
1588
1620
|
):
|
|
1589
1621
|
"""Reproject the selected strokes from the current viewpoint as if they had been newly drawn (e.g. to fix problems from accidental 3D cursor movement or accidental viewport changes, or for matching deforming geometry)
|
|
1590
1622
|
|
|
1591
|
-
:type override_context: typing.
|
|
1592
|
-
:type execution_context: typing.
|
|
1593
|
-
:type undo:
|
|
1623
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1624
|
+
:type execution_context: typing.Union[str, int]
|
|
1625
|
+
:type undo: bool
|
|
1594
1626
|
:param type: Projection Type
|
|
1595
1627
|
|
|
1596
1628
|
FRONT
|
|
@@ -1610,104 +1642,97 @@ def reproject(
|
|
|
1610
1642
|
|
|
1611
1643
|
CURSOR
|
|
1612
1644
|
Cursor -- Reproject the strokes using the orientation of 3D cursor.
|
|
1613
|
-
:type type: typing.
|
|
1645
|
+
:type type: typing.Any
|
|
1614
1646
|
:param keep_original: Keep Original, Keep original strokes and create a copy before reprojecting
|
|
1615
|
-
:type keep_original: typing.
|
|
1647
|
+
:type keep_original: typing.Union[bool, typing.Any]
|
|
1616
1648
|
:param offset: Surface Offset
|
|
1617
|
-
:type offset: typing.
|
|
1649
|
+
:type offset: typing.Any
|
|
1618
1650
|
"""
|
|
1619
1651
|
|
|
1620
1652
|
...
|
|
1621
1653
|
|
|
1622
1654
|
def reset_transform_fill(
|
|
1623
|
-
override_context=None,
|
|
1624
|
-
execution_context=None,
|
|
1625
|
-
undo=None,
|
|
1626
|
-
|
|
1627
|
-
mode: typing.Optional[typing.Any] = "ALL",
|
|
1655
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1656
|
+
execution_context: typing.Union[str, int] = None,
|
|
1657
|
+
undo: bool = None,
|
|
1658
|
+
mode: typing.Any = "ALL",
|
|
1628
1659
|
):
|
|
1629
1660
|
"""Reset any UV transformation and back to default values
|
|
1630
1661
|
|
|
1631
|
-
:type override_context: typing.
|
|
1632
|
-
:type execution_context: typing.
|
|
1633
|
-
:type undo:
|
|
1662
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1663
|
+
:type execution_context: typing.Union[str, int]
|
|
1664
|
+
:type undo: bool
|
|
1634
1665
|
:param mode: Mode
|
|
1635
|
-
:type mode: typing.
|
|
1666
|
+
:type mode: typing.Any
|
|
1636
1667
|
"""
|
|
1637
1668
|
|
|
1638
1669
|
...
|
|
1639
1670
|
|
|
1640
1671
|
def reveal(
|
|
1641
|
-
override_context=None,
|
|
1642
|
-
execution_context=None,
|
|
1643
|
-
undo=None,
|
|
1644
|
-
|
|
1645
|
-
select: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1672
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1673
|
+
execution_context: typing.Union[str, int] = None,
|
|
1674
|
+
undo: bool = None,
|
|
1675
|
+
select: typing.Union[bool, typing.Any] = True,
|
|
1646
1676
|
):
|
|
1647
1677
|
"""Show all Grease Pencil layers
|
|
1648
1678
|
|
|
1649
|
-
:type override_context: typing.
|
|
1650
|
-
:type execution_context: typing.
|
|
1651
|
-
:type undo:
|
|
1679
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1680
|
+
:type execution_context: typing.Union[str, int]
|
|
1681
|
+
:type undo: bool
|
|
1652
1682
|
:param select: Select
|
|
1653
|
-
:type select: typing.
|
|
1683
|
+
:type select: typing.Union[bool, typing.Any]
|
|
1654
1684
|
"""
|
|
1655
1685
|
|
|
1656
1686
|
...
|
|
1657
1687
|
|
|
1658
1688
|
def sculpt_paint(
|
|
1659
|
-
override_context=None,
|
|
1660
|
-
execution_context=None,
|
|
1661
|
-
undo=None,
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorStrokeElement"]
|
|
1665
|
-
] = None,
|
|
1666
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1689
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1690
|
+
execution_context: typing.Union[str, int] = None,
|
|
1691
|
+
undo: bool = None,
|
|
1692
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
1693
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1667
1694
|
):
|
|
1668
1695
|
"""Apply tweaks to strokes by painting over the strokes
|
|
1669
1696
|
|
|
1670
|
-
:type override_context: typing.
|
|
1671
|
-
:type execution_context: typing.
|
|
1672
|
-
:type undo:
|
|
1697
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1698
|
+
:type execution_context: typing.Union[str, int]
|
|
1699
|
+
:type undo: bool
|
|
1673
1700
|
:param stroke: Stroke
|
|
1674
|
-
:type stroke:
|
|
1701
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
1675
1702
|
:param wait_for_input: Wait for Input, Enter a mini 'sculpt-mode' if enabled, otherwise, exit after drawing a single stroke
|
|
1676
|
-
:type wait_for_input: typing.
|
|
1703
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1677
1704
|
"""
|
|
1678
1705
|
|
|
1679
1706
|
...
|
|
1680
1707
|
|
|
1681
1708
|
def sculptmode_toggle(
|
|
1682
|
-
override_context=None,
|
|
1683
|
-
execution_context=None,
|
|
1684
|
-
undo=None,
|
|
1685
|
-
|
|
1686
|
-
back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1709
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1710
|
+
execution_context: typing.Union[str, int] = None,
|
|
1711
|
+
undo: bool = None,
|
|
1712
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
1687
1713
|
):
|
|
1688
1714
|
"""Enter/Exit sculpt mode for Grease Pencil strokes
|
|
1689
1715
|
|
|
1690
|
-
:type override_context: typing.
|
|
1691
|
-
:type execution_context: typing.
|
|
1692
|
-
:type undo:
|
|
1716
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1717
|
+
:type execution_context: typing.Union[str, int]
|
|
1718
|
+
:type undo: bool
|
|
1693
1719
|
:param back: Return to Previous Mode, Return to previous mode
|
|
1694
|
-
:type back: typing.
|
|
1720
|
+
:type back: typing.Union[bool, typing.Any]
|
|
1695
1721
|
"""
|
|
1696
1722
|
|
|
1697
1723
|
...
|
|
1698
1724
|
|
|
1699
1725
|
def segment_add(
|
|
1700
|
-
override_context=None,
|
|
1701
|
-
execution_context=None,
|
|
1702
|
-
undo=None,
|
|
1703
|
-
*,
|
|
1726
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1727
|
+
execution_context: typing.Union[str, int] = None,
|
|
1728
|
+
undo: bool = None,
|
|
1704
1729
|
modifier: typing.Union[str, typing.Any] = "",
|
|
1705
1730
|
):
|
|
1706
1731
|
"""Add a segment to the dash modifier
|
|
1707
1732
|
|
|
1708
|
-
:type override_context: typing.
|
|
1709
|
-
:type execution_context: typing.
|
|
1710
|
-
:type undo:
|
|
1733
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1734
|
+
:type execution_context: typing.Union[str, int]
|
|
1735
|
+
:type undo: bool
|
|
1711
1736
|
:param modifier: Modifier, Name of the modifier to edit
|
|
1712
1737
|
:type modifier: typing.Union[str, typing.Any]
|
|
1713
1738
|
"""
|
|
@@ -1715,98 +1740,94 @@ def segment_add(
|
|
|
1715
1740
|
...
|
|
1716
1741
|
|
|
1717
1742
|
def segment_move(
|
|
1718
|
-
override_context=None,
|
|
1719
|
-
execution_context=None,
|
|
1720
|
-
undo=None,
|
|
1721
|
-
*,
|
|
1743
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1744
|
+
execution_context: typing.Union[str, int] = None,
|
|
1745
|
+
undo: bool = None,
|
|
1722
1746
|
modifier: typing.Union[str, typing.Any] = "",
|
|
1723
|
-
type: typing.
|
|
1747
|
+
type: typing.Any = "UP",
|
|
1724
1748
|
):
|
|
1725
1749
|
"""Move the active dash segment up or down
|
|
1726
1750
|
|
|
1727
|
-
:type override_context: typing.
|
|
1728
|
-
:type execution_context: typing.
|
|
1729
|
-
:type undo:
|
|
1751
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1752
|
+
:type execution_context: typing.Union[str, int]
|
|
1753
|
+
:type undo: bool
|
|
1730
1754
|
:param modifier: Modifier, Name of the modifier to edit
|
|
1731
1755
|
:type modifier: typing.Union[str, typing.Any]
|
|
1732
1756
|
:param type: Type
|
|
1733
|
-
:type type: typing.
|
|
1757
|
+
:type type: typing.Any
|
|
1734
1758
|
"""
|
|
1735
1759
|
|
|
1736
1760
|
...
|
|
1737
1761
|
|
|
1738
1762
|
def segment_remove(
|
|
1739
|
-
override_context=None,
|
|
1740
|
-
execution_context=None,
|
|
1741
|
-
undo=None,
|
|
1742
|
-
*,
|
|
1763
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1764
|
+
execution_context: typing.Union[str, int] = None,
|
|
1765
|
+
undo: bool = None,
|
|
1743
1766
|
modifier: typing.Union[str, typing.Any] = "",
|
|
1744
|
-
index: typing.
|
|
1767
|
+
index: typing.Any = 0,
|
|
1745
1768
|
):
|
|
1746
1769
|
"""Remove the active segment from the dash modifier
|
|
1747
1770
|
|
|
1748
|
-
:type override_context: typing.
|
|
1749
|
-
:type execution_context: typing.
|
|
1750
|
-
:type undo:
|
|
1771
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1772
|
+
:type execution_context: typing.Union[str, int]
|
|
1773
|
+
:type undo: bool
|
|
1751
1774
|
:param modifier: Modifier, Name of the modifier to edit
|
|
1752
1775
|
:type modifier: typing.Union[str, typing.Any]
|
|
1753
1776
|
:param index: Index, Index of the segment to remove
|
|
1754
|
-
:type index: typing.
|
|
1777
|
+
:type index: typing.Any
|
|
1755
1778
|
"""
|
|
1756
1779
|
|
|
1757
1780
|
...
|
|
1758
1781
|
|
|
1759
1782
|
def select(
|
|
1760
|
-
override_context=None,
|
|
1761
|
-
execution_context=None,
|
|
1762
|
-
undo=None,
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
use_shift_extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1783
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1784
|
+
execution_context: typing.Union[str, int] = None,
|
|
1785
|
+
undo: bool = None,
|
|
1786
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
1787
|
+
deselect: typing.Union[bool, typing.Any] = False,
|
|
1788
|
+
toggle: typing.Union[bool, typing.Any] = False,
|
|
1789
|
+
deselect_all: typing.Union[bool, typing.Any] = False,
|
|
1790
|
+
select_passthrough: typing.Union[bool, typing.Any] = False,
|
|
1791
|
+
entire_strokes: typing.Union[bool, typing.Any] = False,
|
|
1792
|
+
location: typing.Any = (0, 0),
|
|
1793
|
+
use_shift_extend: typing.Union[bool, typing.Any] = False,
|
|
1772
1794
|
):
|
|
1773
1795
|
"""Select Grease Pencil strokes and/or stroke points
|
|
1774
1796
|
|
|
1775
|
-
:type override_context: typing.
|
|
1776
|
-
:type execution_context: typing.
|
|
1777
|
-
:type undo:
|
|
1797
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1798
|
+
:type execution_context: typing.Union[str, int]
|
|
1799
|
+
:type undo: bool
|
|
1778
1800
|
:param extend: Extend, Extend selection instead of deselecting everything first
|
|
1779
|
-
:type extend: typing.
|
|
1801
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
1780
1802
|
:param deselect: Deselect, Remove from selection
|
|
1781
|
-
:type deselect: typing.
|
|
1803
|
+
:type deselect: typing.Union[bool, typing.Any]
|
|
1782
1804
|
:param toggle: Toggle Selection, Toggle the selection
|
|
1783
|
-
:type toggle: typing.
|
|
1805
|
+
:type toggle: typing.Union[bool, typing.Any]
|
|
1784
1806
|
:param deselect_all: Deselect On Nothing, Deselect all when nothing under the cursor
|
|
1785
|
-
:type deselect_all: typing.
|
|
1807
|
+
:type deselect_all: typing.Union[bool, typing.Any]
|
|
1786
1808
|
:param select_passthrough: Only Select Unselected, Ignore the select action when the element is already selected
|
|
1787
|
-
:type select_passthrough: typing.
|
|
1809
|
+
:type select_passthrough: typing.Union[bool, typing.Any]
|
|
1788
1810
|
:param entire_strokes: Entire Strokes, Select entire strokes instead of just the nearest stroke vertex
|
|
1789
|
-
:type entire_strokes: typing.
|
|
1811
|
+
:type entire_strokes: typing.Union[bool, typing.Any]
|
|
1790
1812
|
:param location: Location, Mouse location
|
|
1791
|
-
:type location: typing.
|
|
1813
|
+
:type location: typing.Any
|
|
1792
1814
|
:param use_shift_extend: Extend
|
|
1793
|
-
:type use_shift_extend: typing.
|
|
1815
|
+
:type use_shift_extend: typing.Union[bool, typing.Any]
|
|
1794
1816
|
"""
|
|
1795
1817
|
|
|
1796
1818
|
...
|
|
1797
1819
|
|
|
1798
1820
|
def select_all(
|
|
1799
|
-
override_context=None,
|
|
1800
|
-
execution_context=None,
|
|
1801
|
-
undo=None,
|
|
1802
|
-
|
|
1803
|
-
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
1821
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1822
|
+
execution_context: typing.Union[str, int] = None,
|
|
1823
|
+
undo: bool = None,
|
|
1824
|
+
action: typing.Any = "TOGGLE",
|
|
1804
1825
|
):
|
|
1805
1826
|
"""Change selection of all Grease Pencil strokes currently visible
|
|
1806
1827
|
|
|
1807
|
-
:type override_context: typing.
|
|
1808
|
-
:type execution_context: typing.
|
|
1809
|
-
:type undo:
|
|
1828
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1829
|
+
:type execution_context: typing.Union[str, int]
|
|
1830
|
+
:type undo: bool
|
|
1810
1831
|
:param action: Action, Selection action to execute
|
|
1811
1832
|
|
|
1812
1833
|
TOGGLE
|
|
@@ -1820,56 +1841,54 @@ def select_all(
|
|
|
1820
1841
|
|
|
1821
1842
|
INVERT
|
|
1822
1843
|
Invert -- Invert selection of all elements.
|
|
1823
|
-
:type action: typing.
|
|
1844
|
+
:type action: typing.Any
|
|
1824
1845
|
"""
|
|
1825
1846
|
|
|
1826
1847
|
...
|
|
1827
1848
|
|
|
1828
1849
|
def select_alternate(
|
|
1829
|
-
override_context=None,
|
|
1830
|
-
execution_context=None,
|
|
1831
|
-
undo=None,
|
|
1832
|
-
|
|
1833
|
-
unselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1850
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1851
|
+
execution_context: typing.Union[str, int] = None,
|
|
1852
|
+
undo: bool = None,
|
|
1853
|
+
unselect_ends: typing.Union[bool, typing.Any] = False,
|
|
1834
1854
|
):
|
|
1835
1855
|
"""Select alternative points in same strokes as already selected points
|
|
1836
1856
|
|
|
1837
|
-
:type override_context: typing.
|
|
1838
|
-
:type execution_context: typing.
|
|
1839
|
-
:type undo:
|
|
1857
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1858
|
+
:type execution_context: typing.Union[str, int]
|
|
1859
|
+
:type undo: bool
|
|
1840
1860
|
:param unselect_ends: Unselect Ends, Do not select the first and last point of the stroke
|
|
1841
|
-
:type unselect_ends: typing.
|
|
1861
|
+
:type unselect_ends: typing.Union[bool, typing.Any]
|
|
1842
1862
|
"""
|
|
1843
1863
|
|
|
1844
1864
|
...
|
|
1845
1865
|
|
|
1846
1866
|
def select_box(
|
|
1847
|
-
override_context=None,
|
|
1848
|
-
execution_context=None,
|
|
1849
|
-
undo=None,
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
mode: typing.Optional[typing.Any] = "SET",
|
|
1867
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1868
|
+
execution_context: typing.Union[str, int] = None,
|
|
1869
|
+
undo: bool = None,
|
|
1870
|
+
xmin: typing.Any = 0,
|
|
1871
|
+
xmax: typing.Any = 0,
|
|
1872
|
+
ymin: typing.Any = 0,
|
|
1873
|
+
ymax: typing.Any = 0,
|
|
1874
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1875
|
+
mode: typing.Any = "SET",
|
|
1857
1876
|
):
|
|
1858
1877
|
"""Select Grease Pencil strokes within a rectangular region
|
|
1859
1878
|
|
|
1860
|
-
:type override_context: typing.
|
|
1861
|
-
:type execution_context: typing.
|
|
1862
|
-
:type undo:
|
|
1879
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1880
|
+
:type execution_context: typing.Union[str, int]
|
|
1881
|
+
:type undo: bool
|
|
1863
1882
|
:param xmin: X Min
|
|
1864
|
-
:type xmin: typing.
|
|
1883
|
+
:type xmin: typing.Any
|
|
1865
1884
|
:param xmax: X Max
|
|
1866
|
-
:type xmax: typing.
|
|
1885
|
+
:type xmax: typing.Any
|
|
1867
1886
|
:param ymin: Y Min
|
|
1868
|
-
:type ymin: typing.
|
|
1887
|
+
:type ymin: typing.Any
|
|
1869
1888
|
:param ymax: Y Max
|
|
1870
|
-
:type ymax: typing.
|
|
1889
|
+
:type ymax: typing.Any
|
|
1871
1890
|
:param wait_for_input: Wait for Input
|
|
1872
|
-
:type wait_for_input: typing.
|
|
1891
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1873
1892
|
:param mode: Mode
|
|
1874
1893
|
|
|
1875
1894
|
SET
|
|
@@ -1886,35 +1905,34 @@ def select_box(
|
|
|
1886
1905
|
|
|
1887
1906
|
AND
|
|
1888
1907
|
Intersect -- Intersect existing selection.
|
|
1889
|
-
:type mode: typing.
|
|
1908
|
+
:type mode: typing.Any
|
|
1890
1909
|
"""
|
|
1891
1910
|
|
|
1892
1911
|
...
|
|
1893
1912
|
|
|
1894
1913
|
def select_circle(
|
|
1895
|
-
override_context=None,
|
|
1896
|
-
execution_context=None,
|
|
1897
|
-
undo=None,
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
mode: typing.Optional[typing.Any] = "SET",
|
|
1914
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1915
|
+
execution_context: typing.Union[str, int] = None,
|
|
1916
|
+
undo: bool = None,
|
|
1917
|
+
x: typing.Any = 0,
|
|
1918
|
+
y: typing.Any = 0,
|
|
1919
|
+
radius: typing.Any = 25,
|
|
1920
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
1921
|
+
mode: typing.Any = "SET",
|
|
1904
1922
|
):
|
|
1905
1923
|
"""Select Grease Pencil strokes using brush selection
|
|
1906
1924
|
|
|
1907
|
-
:type override_context: typing.
|
|
1908
|
-
:type execution_context: typing.
|
|
1909
|
-
:type undo:
|
|
1925
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1926
|
+
:type execution_context: typing.Union[str, int]
|
|
1927
|
+
:type undo: bool
|
|
1910
1928
|
:param x: X
|
|
1911
|
-
:type x: typing.
|
|
1929
|
+
:type x: typing.Any
|
|
1912
1930
|
:param y: Y
|
|
1913
|
-
:type y: typing.
|
|
1931
|
+
:type y: typing.Any
|
|
1914
1932
|
:param radius: Radius
|
|
1915
|
-
:type radius: typing.
|
|
1933
|
+
:type radius: typing.Any
|
|
1916
1934
|
:param wait_for_input: Wait for Input
|
|
1917
|
-
:type wait_for_input: typing.
|
|
1935
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
1918
1936
|
:param mode: Mode
|
|
1919
1937
|
|
|
1920
1938
|
SET
|
|
@@ -1925,44 +1943,42 @@ def select_circle(
|
|
|
1925
1943
|
|
|
1926
1944
|
SUB
|
|
1927
1945
|
Subtract -- Subtract existing selection.
|
|
1928
|
-
:type mode: typing.
|
|
1946
|
+
:type mode: typing.Any
|
|
1929
1947
|
"""
|
|
1930
1948
|
|
|
1931
1949
|
...
|
|
1932
1950
|
|
|
1933
1951
|
def select_first(
|
|
1934
|
-
override_context=None,
|
|
1935
|
-
execution_context=None,
|
|
1936
|
-
undo=None,
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1952
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1953
|
+
execution_context: typing.Union[str, int] = None,
|
|
1954
|
+
undo: bool = None,
|
|
1955
|
+
only_selected_strokes: typing.Union[bool, typing.Any] = False,
|
|
1956
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
1940
1957
|
):
|
|
1941
1958
|
"""Select first point in Grease Pencil strokes
|
|
1942
1959
|
|
|
1943
|
-
:type override_context: typing.
|
|
1944
|
-
:type execution_context: typing.
|
|
1945
|
-
:type undo:
|
|
1960
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1961
|
+
:type execution_context: typing.Union[str, int]
|
|
1962
|
+
:type undo: bool
|
|
1946
1963
|
:param only_selected_strokes: Selected Strokes Only, Only select the first point of strokes that already have points selected
|
|
1947
|
-
:type only_selected_strokes: typing.
|
|
1964
|
+
:type only_selected_strokes: typing.Union[bool, typing.Any]
|
|
1948
1965
|
:param extend: Extend, Extend selection instead of deselecting all other selected points
|
|
1949
|
-
:type extend: typing.
|
|
1966
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
1950
1967
|
"""
|
|
1951
1968
|
|
|
1952
1969
|
...
|
|
1953
1970
|
|
|
1954
1971
|
def select_grouped(
|
|
1955
|
-
override_context=None,
|
|
1956
|
-
execution_context=None,
|
|
1957
|
-
undo=None,
|
|
1958
|
-
|
|
1959
|
-
type: typing.Optional[typing.Any] = "LAYER",
|
|
1972
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1973
|
+
execution_context: typing.Union[str, int] = None,
|
|
1974
|
+
undo: bool = None,
|
|
1975
|
+
type: typing.Any = "LAYER",
|
|
1960
1976
|
):
|
|
1961
1977
|
"""Select all strokes with similar characteristics
|
|
1962
1978
|
|
|
1963
|
-
:type override_context: typing.
|
|
1964
|
-
:type execution_context: typing.
|
|
1965
|
-
:type undo:
|
|
1979
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1980
|
+
:type execution_context: typing.Union[str, int]
|
|
1981
|
+
:type undo: bool
|
|
1966
1982
|
:param type: Type
|
|
1967
1983
|
|
|
1968
1984
|
LAYER
|
|
@@ -1970,26 +1986,23 @@ def select_grouped(
|
|
|
1970
1986
|
|
|
1971
1987
|
MATERIAL
|
|
1972
1988
|
Material -- Shared materials.
|
|
1973
|
-
:type type: typing.
|
|
1989
|
+
:type type: typing.Any
|
|
1974
1990
|
"""
|
|
1975
1991
|
|
|
1976
1992
|
...
|
|
1977
1993
|
|
|
1978
1994
|
def select_lasso(
|
|
1979
|
-
override_context=None,
|
|
1980
|
-
execution_context=None,
|
|
1981
|
-
undo=None,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
path: typing.Optional[
|
|
1985
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorMousePath"]
|
|
1986
|
-
] = None,
|
|
1995
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1996
|
+
execution_context: typing.Union[str, int] = None,
|
|
1997
|
+
undo: bool = None,
|
|
1998
|
+
mode: typing.Any = "SET",
|
|
1999
|
+
path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath] = None,
|
|
1987
2000
|
):
|
|
1988
2001
|
"""Select Grease Pencil strokes using lasso selection
|
|
1989
2002
|
|
|
1990
|
-
:type override_context: typing.
|
|
1991
|
-
:type execution_context: typing.
|
|
1992
|
-
:type undo:
|
|
2003
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2004
|
+
:type execution_context: typing.Union[str, int]
|
|
2005
|
+
:type undo: bool
|
|
1993
2006
|
:param mode: Mode
|
|
1994
2007
|
|
|
1995
2008
|
SET
|
|
@@ -2006,83 +2019,93 @@ def select_lasso(
|
|
|
2006
2019
|
|
|
2007
2020
|
AND
|
|
2008
2021
|
Intersect -- Intersect existing selection.
|
|
2009
|
-
:type mode: typing.
|
|
2022
|
+
:type mode: typing.Any
|
|
2010
2023
|
:param path: Path
|
|
2011
|
-
:type path:
|
|
2024
|
+
:type path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath]
|
|
2012
2025
|
"""
|
|
2013
2026
|
|
|
2014
2027
|
...
|
|
2015
2028
|
|
|
2016
2029
|
def select_last(
|
|
2017
|
-
override_context=None,
|
|
2018
|
-
execution_context=None,
|
|
2019
|
-
undo=None,
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
extend: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2030
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2031
|
+
execution_context: typing.Union[str, int] = None,
|
|
2032
|
+
undo: bool = None,
|
|
2033
|
+
only_selected_strokes: typing.Union[bool, typing.Any] = False,
|
|
2034
|
+
extend: typing.Union[bool, typing.Any] = False,
|
|
2023
2035
|
):
|
|
2024
2036
|
"""Select last point in Grease Pencil strokes
|
|
2025
2037
|
|
|
2026
|
-
:type override_context: typing.
|
|
2027
|
-
:type execution_context: typing.
|
|
2028
|
-
:type undo:
|
|
2038
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2039
|
+
:type execution_context: typing.Union[str, int]
|
|
2040
|
+
:type undo: bool
|
|
2029
2041
|
:param only_selected_strokes: Selected Strokes Only, Only select the last point of strokes that already have points selected
|
|
2030
|
-
:type only_selected_strokes: typing.
|
|
2042
|
+
:type only_selected_strokes: typing.Union[bool, typing.Any]
|
|
2031
2043
|
:param extend: Extend, Extend selection instead of deselecting all other selected points
|
|
2032
|
-
:type extend: typing.
|
|
2044
|
+
:type extend: typing.Union[bool, typing.Any]
|
|
2033
2045
|
"""
|
|
2034
2046
|
|
|
2035
2047
|
...
|
|
2036
2048
|
|
|
2037
|
-
def select_less(
|
|
2049
|
+
def select_less(
|
|
2050
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2051
|
+
execution_context: typing.Union[str, int] = None,
|
|
2052
|
+
undo: bool = None,
|
|
2053
|
+
):
|
|
2038
2054
|
"""Shrink sets of selected Grease Pencil points
|
|
2039
2055
|
|
|
2040
|
-
:type override_context: typing.
|
|
2041
|
-
:type execution_context: typing.
|
|
2042
|
-
:type undo:
|
|
2056
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2057
|
+
:type execution_context: typing.Union[str, int]
|
|
2058
|
+
:type undo: bool
|
|
2043
2059
|
"""
|
|
2044
2060
|
|
|
2045
2061
|
...
|
|
2046
2062
|
|
|
2047
|
-
def select_linked(
|
|
2063
|
+
def select_linked(
|
|
2064
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2065
|
+
execution_context: typing.Union[str, int] = None,
|
|
2066
|
+
undo: bool = None,
|
|
2067
|
+
):
|
|
2048
2068
|
"""Select all points in same strokes as already selected points
|
|
2049
2069
|
|
|
2050
|
-
:type override_context: typing.
|
|
2051
|
-
:type execution_context: typing.
|
|
2052
|
-
:type undo:
|
|
2070
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2071
|
+
:type execution_context: typing.Union[str, int]
|
|
2072
|
+
:type undo: bool
|
|
2053
2073
|
"""
|
|
2054
2074
|
|
|
2055
2075
|
...
|
|
2056
2076
|
|
|
2057
|
-
def select_more(
|
|
2077
|
+
def select_more(
|
|
2078
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2079
|
+
execution_context: typing.Union[str, int] = None,
|
|
2080
|
+
undo: bool = None,
|
|
2081
|
+
):
|
|
2058
2082
|
"""Grow sets of selected Grease Pencil points
|
|
2059
2083
|
|
|
2060
|
-
:type override_context: typing.
|
|
2061
|
-
:type execution_context: typing.
|
|
2062
|
-
:type undo:
|
|
2084
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2085
|
+
:type execution_context: typing.Union[str, int]
|
|
2086
|
+
:type undo: bool
|
|
2063
2087
|
"""
|
|
2064
2088
|
|
|
2065
2089
|
...
|
|
2066
2090
|
|
|
2067
2091
|
def select_random(
|
|
2068
|
-
override_context=None,
|
|
2069
|
-
execution_context=None,
|
|
2070
|
-
undo=None,
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
unselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2092
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2093
|
+
execution_context: typing.Union[str, int] = None,
|
|
2094
|
+
undo: bool = None,
|
|
2095
|
+
ratio: typing.Any = 0.5,
|
|
2096
|
+
seed: typing.Any = 0,
|
|
2097
|
+
action: typing.Any = "SELECT",
|
|
2098
|
+
unselect_ends: typing.Union[bool, typing.Any] = False,
|
|
2076
2099
|
):
|
|
2077
2100
|
"""Select random points for non selected strokes
|
|
2078
2101
|
|
|
2079
|
-
:type override_context: typing.
|
|
2080
|
-
:type execution_context: typing.
|
|
2081
|
-
:type undo:
|
|
2102
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2103
|
+
:type execution_context: typing.Union[str, int]
|
|
2104
|
+
:type undo: bool
|
|
2082
2105
|
:param ratio: Ratio, Portion of items to select randomly
|
|
2083
|
-
:type ratio: typing.
|
|
2106
|
+
:type ratio: typing.Any
|
|
2084
2107
|
:param seed: Random Seed, Seed for the random number generator
|
|
2085
|
-
:type seed: typing.
|
|
2108
|
+
:type seed: typing.Any
|
|
2086
2109
|
:param action: Action, Selection action to execute
|
|
2087
2110
|
|
|
2088
2111
|
SELECT
|
|
@@ -2090,147 +2113,162 @@ def select_random(
|
|
|
2090
2113
|
|
|
2091
2114
|
DESELECT
|
|
2092
2115
|
Deselect -- Deselect all elements.
|
|
2093
|
-
:type action: typing.
|
|
2116
|
+
:type action: typing.Any
|
|
2094
2117
|
:param unselect_ends: Unselect Ends, Do not select the first and last point of the stroke
|
|
2095
|
-
:type unselect_ends: typing.
|
|
2118
|
+
:type unselect_ends: typing.Union[bool, typing.Any]
|
|
2096
2119
|
"""
|
|
2097
2120
|
|
|
2098
2121
|
...
|
|
2099
2122
|
|
|
2100
2123
|
def select_vertex_color(
|
|
2101
|
-
override_context=None,
|
|
2102
|
-
execution_context=None,
|
|
2103
|
-
undo=None,
|
|
2104
|
-
|
|
2105
|
-
threshold: typing.Optional[typing.Any] = 0,
|
|
2124
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2125
|
+
execution_context: typing.Union[str, int] = None,
|
|
2126
|
+
undo: bool = None,
|
|
2127
|
+
threshold: typing.Any = 0,
|
|
2106
2128
|
):
|
|
2107
2129
|
"""Select all points with similar vertex color of current selected
|
|
2108
2130
|
|
|
2109
|
-
:type override_context: typing.
|
|
2110
|
-
:type execution_context: typing.
|
|
2111
|
-
:type undo:
|
|
2131
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2132
|
+
:type execution_context: typing.Union[str, int]
|
|
2133
|
+
:type undo: bool
|
|
2112
2134
|
:param threshold: Threshold, Tolerance of the selection. Higher values select a wider range of similar colors
|
|
2113
|
-
:type threshold: typing.
|
|
2135
|
+
:type threshold: typing.Any
|
|
2114
2136
|
"""
|
|
2115
2137
|
|
|
2116
2138
|
...
|
|
2117
2139
|
|
|
2118
|
-
def selection_opacity_toggle(
|
|
2140
|
+
def selection_opacity_toggle(
|
|
2141
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2142
|
+
execution_context: typing.Union[str, int] = None,
|
|
2143
|
+
undo: bool = None,
|
|
2144
|
+
):
|
|
2119
2145
|
"""Hide/Unhide selected points for Grease Pencil strokes setting alpha factor
|
|
2120
2146
|
|
|
2121
|
-
:type override_context: typing.
|
|
2122
|
-
:type execution_context: typing.
|
|
2123
|
-
:type undo:
|
|
2147
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2148
|
+
:type execution_context: typing.Union[str, int]
|
|
2149
|
+
:type undo: bool
|
|
2124
2150
|
"""
|
|
2125
2151
|
|
|
2126
2152
|
...
|
|
2127
2153
|
|
|
2128
2154
|
def selectmode_toggle(
|
|
2129
|
-
override_context=None,
|
|
2130
|
-
execution_context=None,
|
|
2131
|
-
undo=None,
|
|
2132
|
-
|
|
2133
|
-
mode: typing.Optional[typing.Any] = 0,
|
|
2155
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2156
|
+
execution_context: typing.Union[str, int] = None,
|
|
2157
|
+
undo: bool = None,
|
|
2158
|
+
mode: typing.Any = 0,
|
|
2134
2159
|
):
|
|
2135
2160
|
"""Set selection mode for Grease Pencil strokes
|
|
2136
2161
|
|
|
2137
|
-
:type override_context: typing.
|
|
2138
|
-
:type execution_context: typing.
|
|
2139
|
-
:type undo:
|
|
2162
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2163
|
+
:type execution_context: typing.Union[str, int]
|
|
2164
|
+
:type undo: bool
|
|
2140
2165
|
:param mode: Select Mode, Select mode
|
|
2141
|
-
:type mode: typing.
|
|
2166
|
+
:type mode: typing.Any
|
|
2142
2167
|
"""
|
|
2143
2168
|
|
|
2144
2169
|
...
|
|
2145
2170
|
|
|
2146
|
-
def set_active_material(
|
|
2171
|
+
def set_active_material(
|
|
2172
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2173
|
+
execution_context: typing.Union[str, int] = None,
|
|
2174
|
+
undo: bool = None,
|
|
2175
|
+
):
|
|
2147
2176
|
"""Set the selected stroke material as the active material
|
|
2148
2177
|
|
|
2149
|
-
:type override_context: typing.
|
|
2150
|
-
:type execution_context: typing.
|
|
2151
|
-
:type undo:
|
|
2178
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2179
|
+
:type execution_context: typing.Union[str, int]
|
|
2180
|
+
:type undo: bool
|
|
2152
2181
|
"""
|
|
2153
2182
|
|
|
2154
2183
|
...
|
|
2155
2184
|
|
|
2156
|
-
def snap_cursor_to_selected(
|
|
2185
|
+
def snap_cursor_to_selected(
|
|
2186
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2187
|
+
execution_context: typing.Union[str, int] = None,
|
|
2188
|
+
undo: bool = None,
|
|
2189
|
+
):
|
|
2157
2190
|
"""Snap cursor to center of selected points
|
|
2158
2191
|
|
|
2159
|
-
:type override_context: typing.
|
|
2160
|
-
:type execution_context: typing.
|
|
2161
|
-
:type undo:
|
|
2192
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2193
|
+
:type execution_context: typing.Union[str, int]
|
|
2194
|
+
:type undo: bool
|
|
2162
2195
|
"""
|
|
2163
2196
|
|
|
2164
2197
|
...
|
|
2165
2198
|
|
|
2166
2199
|
def snap_to_cursor(
|
|
2167
|
-
override_context=None,
|
|
2168
|
-
execution_context=None,
|
|
2169
|
-
undo=None,
|
|
2170
|
-
|
|
2171
|
-
use_offset: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
2200
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2201
|
+
execution_context: typing.Union[str, int] = None,
|
|
2202
|
+
undo: bool = None,
|
|
2203
|
+
use_offset: typing.Union[bool, typing.Any] = True,
|
|
2172
2204
|
):
|
|
2173
2205
|
"""Snap selected points/strokes to the cursor
|
|
2174
2206
|
|
|
2175
|
-
:type override_context: typing.
|
|
2176
|
-
:type execution_context: typing.
|
|
2177
|
-
:type undo:
|
|
2207
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2208
|
+
:type execution_context: typing.Union[str, int]
|
|
2209
|
+
:type undo: bool
|
|
2178
2210
|
:param use_offset: With Offset, Offset the entire stroke instead of selected points only
|
|
2179
|
-
:type use_offset: typing.
|
|
2211
|
+
:type use_offset: typing.Union[bool, typing.Any]
|
|
2180
2212
|
"""
|
|
2181
2213
|
|
|
2182
2214
|
...
|
|
2183
2215
|
|
|
2184
|
-
def snap_to_grid(
|
|
2216
|
+
def snap_to_grid(
|
|
2217
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2218
|
+
execution_context: typing.Union[str, int] = None,
|
|
2219
|
+
undo: bool = None,
|
|
2220
|
+
):
|
|
2185
2221
|
"""Snap selected points to the nearest grid points
|
|
2186
2222
|
|
|
2187
|
-
:type override_context: typing.
|
|
2188
|
-
:type execution_context: typing.
|
|
2189
|
-
:type undo:
|
|
2223
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2224
|
+
:type execution_context: typing.Union[str, int]
|
|
2225
|
+
:type undo: bool
|
|
2190
2226
|
"""
|
|
2191
2227
|
|
|
2192
2228
|
...
|
|
2193
2229
|
|
|
2194
|
-
def stroke_apply_thickness(
|
|
2230
|
+
def stroke_apply_thickness(
|
|
2231
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2232
|
+
execution_context: typing.Union[str, int] = None,
|
|
2233
|
+
undo: bool = None,
|
|
2234
|
+
):
|
|
2195
2235
|
"""Apply the thickness change of the layer to its strokes
|
|
2196
2236
|
|
|
2197
|
-
:type override_context: typing.
|
|
2198
|
-
:type execution_context: typing.
|
|
2199
|
-
:type undo:
|
|
2237
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2238
|
+
:type execution_context: typing.Union[str, int]
|
|
2239
|
+
:type undo: bool
|
|
2200
2240
|
"""
|
|
2201
2241
|
|
|
2202
2242
|
...
|
|
2203
2243
|
|
|
2204
2244
|
def stroke_arrange(
|
|
2205
|
-
override_context=None,
|
|
2206
|
-
execution_context=None,
|
|
2207
|
-
undo=None,
|
|
2208
|
-
|
|
2209
|
-
direction: typing.Optional[typing.Any] = "UP",
|
|
2245
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2246
|
+
execution_context: typing.Union[str, int] = None,
|
|
2247
|
+
undo: bool = None,
|
|
2248
|
+
direction: typing.Any = "UP",
|
|
2210
2249
|
):
|
|
2211
2250
|
"""Arrange selected strokes up/down in the display order of the active layer
|
|
2212
2251
|
|
|
2213
|
-
:type override_context: typing.
|
|
2214
|
-
:type execution_context: typing.
|
|
2215
|
-
:type undo:
|
|
2252
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2253
|
+
:type execution_context: typing.Union[str, int]
|
|
2254
|
+
:type undo: bool
|
|
2216
2255
|
:param direction: Direction
|
|
2217
|
-
:type direction: typing.
|
|
2256
|
+
:type direction: typing.Any
|
|
2218
2257
|
"""
|
|
2219
2258
|
|
|
2220
2259
|
...
|
|
2221
2260
|
|
|
2222
2261
|
def stroke_caps_set(
|
|
2223
|
-
override_context=None,
|
|
2224
|
-
execution_context=None,
|
|
2225
|
-
undo=None,
|
|
2226
|
-
|
|
2227
|
-
type: typing.Optional[typing.Any] = "TOGGLE",
|
|
2262
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2263
|
+
execution_context: typing.Union[str, int] = None,
|
|
2264
|
+
undo: bool = None,
|
|
2265
|
+
type: typing.Any = "TOGGLE",
|
|
2228
2266
|
):
|
|
2229
2267
|
"""Change stroke caps mode (rounded or flat)
|
|
2230
2268
|
|
|
2231
|
-
:type override_context: typing.
|
|
2232
|
-
:type execution_context: typing.
|
|
2233
|
-
:type undo:
|
|
2269
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2270
|
+
:type execution_context: typing.Union[str, int]
|
|
2271
|
+
:type undo: bool
|
|
2234
2272
|
:param type: Type
|
|
2235
2273
|
|
|
2236
2274
|
TOGGLE
|
|
@@ -2244,23 +2282,22 @@ def stroke_caps_set(
|
|
|
2244
2282
|
|
|
2245
2283
|
DEFAULT
|
|
2246
2284
|
Default -- Set as default rounded.
|
|
2247
|
-
:type type: typing.
|
|
2285
|
+
:type type: typing.Any
|
|
2248
2286
|
"""
|
|
2249
2287
|
|
|
2250
2288
|
...
|
|
2251
2289
|
|
|
2252
2290
|
def stroke_change_color(
|
|
2253
|
-
override_context=None,
|
|
2254
|
-
execution_context=None,
|
|
2255
|
-
undo=None,
|
|
2256
|
-
*,
|
|
2291
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2292
|
+
execution_context: typing.Union[str, int] = None,
|
|
2293
|
+
undo: bool = None,
|
|
2257
2294
|
material: typing.Union[str, typing.Any] = "",
|
|
2258
2295
|
):
|
|
2259
2296
|
"""Move selected strokes to active material
|
|
2260
2297
|
|
|
2261
|
-
:type override_context: typing.
|
|
2262
|
-
:type execution_context: typing.
|
|
2263
|
-
:type undo:
|
|
2298
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2299
|
+
:type execution_context: typing.Union[str, int]
|
|
2300
|
+
:type undo: bool
|
|
2264
2301
|
:param material: Material, Name of the material
|
|
2265
2302
|
:type material: typing.Union[str, typing.Any]
|
|
2266
2303
|
"""
|
|
@@ -2268,208 +2305,201 @@ def stroke_change_color(
|
|
|
2268
2305
|
...
|
|
2269
2306
|
|
|
2270
2307
|
def stroke_cutter(
|
|
2271
|
-
override_context=None,
|
|
2272
|
-
execution_context=None,
|
|
2273
|
-
undo=None,
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorMousePath"]
|
|
2277
|
-
] = None,
|
|
2278
|
-
flat_caps: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2308
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2309
|
+
execution_context: typing.Union[str, int] = None,
|
|
2310
|
+
undo: bool = None,
|
|
2311
|
+
path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath] = None,
|
|
2312
|
+
flat_caps: typing.Union[bool, typing.Any] = False,
|
|
2279
2313
|
):
|
|
2280
2314
|
"""Select section and cut
|
|
2281
2315
|
|
|
2282
|
-
:type override_context: typing.
|
|
2283
|
-
:type execution_context: typing.
|
|
2284
|
-
:type undo:
|
|
2316
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2317
|
+
:type execution_context: typing.Union[str, int]
|
|
2318
|
+
:type undo: bool
|
|
2285
2319
|
:param path: Path
|
|
2286
|
-
:type path:
|
|
2320
|
+
:type path: bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath]
|
|
2287
2321
|
:param flat_caps: Flat Caps
|
|
2288
|
-
:type flat_caps: typing.
|
|
2322
|
+
:type flat_caps: typing.Union[bool, typing.Any]
|
|
2289
2323
|
"""
|
|
2290
2324
|
|
|
2291
2325
|
...
|
|
2292
2326
|
|
|
2293
2327
|
def stroke_cyclical_set(
|
|
2294
|
-
override_context=None,
|
|
2295
|
-
execution_context=None,
|
|
2296
|
-
undo=None,
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
geometry: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2328
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2329
|
+
execution_context: typing.Union[str, int] = None,
|
|
2330
|
+
undo: bool = None,
|
|
2331
|
+
type: typing.Any = "TOGGLE",
|
|
2332
|
+
geometry: typing.Union[bool, typing.Any] = False,
|
|
2300
2333
|
):
|
|
2301
2334
|
"""Close or open the selected stroke adding a segment from last to first point
|
|
2302
2335
|
|
|
2303
|
-
:type override_context: typing.
|
|
2304
|
-
:type execution_context: typing.
|
|
2305
|
-
:type undo:
|
|
2336
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2337
|
+
:type execution_context: typing.Union[str, int]
|
|
2338
|
+
:type undo: bool
|
|
2306
2339
|
:param type: Type
|
|
2307
|
-
:type type: typing.
|
|
2340
|
+
:type type: typing.Any
|
|
2308
2341
|
:param geometry: Create Geometry, Create new geometry for closing stroke
|
|
2309
|
-
:type geometry: typing.
|
|
2342
|
+
:type geometry: typing.Union[bool, typing.Any]
|
|
2310
2343
|
"""
|
|
2311
2344
|
|
|
2312
2345
|
...
|
|
2313
2346
|
|
|
2314
2347
|
def stroke_editcurve_set_handle_type(
|
|
2315
|
-
override_context=None,
|
|
2316
|
-
execution_context=None,
|
|
2317
|
-
undo=None,
|
|
2318
|
-
|
|
2319
|
-
type: typing.Optional[typing.Any] = "AUTOMATIC",
|
|
2348
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2349
|
+
execution_context: typing.Union[str, int] = None,
|
|
2350
|
+
undo: bool = None,
|
|
2351
|
+
type: typing.Any = "AUTOMATIC",
|
|
2320
2352
|
):
|
|
2321
2353
|
"""Set the type of an edit curve handle
|
|
2322
2354
|
|
|
2323
|
-
:type override_context: typing.
|
|
2324
|
-
:type execution_context: typing.
|
|
2325
|
-
:type undo:
|
|
2355
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2356
|
+
:type execution_context: typing.Union[str, int]
|
|
2357
|
+
:type undo: bool
|
|
2326
2358
|
:param type: Type, Spline type
|
|
2327
|
-
:type type: typing.
|
|
2359
|
+
:type type: typing.Any
|
|
2328
2360
|
"""
|
|
2329
2361
|
|
|
2330
2362
|
...
|
|
2331
2363
|
|
|
2332
2364
|
def stroke_enter_editcurve_mode(
|
|
2333
|
-
override_context=None,
|
|
2334
|
-
execution_context=None,
|
|
2335
|
-
undo=None,
|
|
2336
|
-
|
|
2337
|
-
error_threshold: typing.Optional[typing.Any] = 0.1,
|
|
2365
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2366
|
+
execution_context: typing.Union[str, int] = None,
|
|
2367
|
+
undo: bool = None,
|
|
2368
|
+
error_threshold: typing.Any = 0.1,
|
|
2338
2369
|
):
|
|
2339
2370
|
"""Called to transform a stroke into a curve
|
|
2340
2371
|
|
|
2341
|
-
:type override_context: typing.
|
|
2342
|
-
:type execution_context: typing.
|
|
2343
|
-
:type undo:
|
|
2372
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2373
|
+
:type execution_context: typing.Union[str, int]
|
|
2374
|
+
:type undo: bool
|
|
2344
2375
|
:param error_threshold: Error Threshold, Threshold on the maximum deviation from the actual stroke
|
|
2345
|
-
:type error_threshold: typing.
|
|
2376
|
+
:type error_threshold: typing.Any
|
|
2346
2377
|
"""
|
|
2347
2378
|
|
|
2348
2379
|
...
|
|
2349
2380
|
|
|
2350
|
-
def stroke_flip(
|
|
2381
|
+
def stroke_flip(
|
|
2382
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2383
|
+
execution_context: typing.Union[str, int] = None,
|
|
2384
|
+
undo: bool = None,
|
|
2385
|
+
):
|
|
2351
2386
|
"""Change direction of the points of the selected strokes
|
|
2352
2387
|
|
|
2353
|
-
:type override_context: typing.
|
|
2354
|
-
:type execution_context: typing.
|
|
2355
|
-
:type undo:
|
|
2388
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2389
|
+
:type execution_context: typing.Union[str, int]
|
|
2390
|
+
:type undo: bool
|
|
2356
2391
|
"""
|
|
2357
2392
|
|
|
2358
2393
|
...
|
|
2359
2394
|
|
|
2360
2395
|
def stroke_join(
|
|
2361
|
-
override_context=None,
|
|
2362
|
-
execution_context=None,
|
|
2363
|
-
undo=None,
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
leave_gaps: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2396
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2397
|
+
execution_context: typing.Union[str, int] = None,
|
|
2398
|
+
undo: bool = None,
|
|
2399
|
+
type: typing.Any = "JOIN",
|
|
2400
|
+
leave_gaps: typing.Union[bool, typing.Any] = False,
|
|
2367
2401
|
):
|
|
2368
2402
|
"""Join selected strokes (optionally as new stroke)
|
|
2369
2403
|
|
|
2370
|
-
:type override_context: typing.
|
|
2371
|
-
:type execution_context: typing.
|
|
2372
|
-
:type undo:
|
|
2404
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2405
|
+
:type execution_context: typing.Union[str, int]
|
|
2406
|
+
:type undo: bool
|
|
2373
2407
|
:param type: Type
|
|
2374
|
-
:type type: typing.
|
|
2408
|
+
:type type: typing.Any
|
|
2375
2409
|
:param leave_gaps: Leave Gaps, Leave gaps between joined strokes instead of linking them
|
|
2376
|
-
:type leave_gaps: typing.
|
|
2410
|
+
:type leave_gaps: typing.Union[bool, typing.Any]
|
|
2377
2411
|
"""
|
|
2378
2412
|
|
|
2379
2413
|
...
|
|
2380
2414
|
|
|
2381
2415
|
def stroke_merge(
|
|
2382
|
-
override_context=None,
|
|
2383
|
-
execution_context=None,
|
|
2384
|
-
undo=None,
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
clear_stroke: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2416
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2417
|
+
execution_context: typing.Union[str, int] = None,
|
|
2418
|
+
undo: bool = None,
|
|
2419
|
+
mode: typing.Any = "STROKE",
|
|
2420
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
2421
|
+
additive: typing.Union[bool, typing.Any] = False,
|
|
2422
|
+
cyclic: typing.Union[bool, typing.Any] = False,
|
|
2423
|
+
clear_point: typing.Union[bool, typing.Any] = False,
|
|
2424
|
+
clear_stroke: typing.Union[bool, typing.Any] = False,
|
|
2392
2425
|
):
|
|
2393
2426
|
"""Create a new stroke with the selected stroke points
|
|
2394
2427
|
|
|
2395
|
-
:type override_context: typing.
|
|
2396
|
-
:type execution_context: typing.
|
|
2397
|
-
:type undo:
|
|
2428
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2429
|
+
:type execution_context: typing.Union[str, int]
|
|
2430
|
+
:type undo: bool
|
|
2398
2431
|
:param mode: Mode
|
|
2399
|
-
:type mode: typing.
|
|
2432
|
+
:type mode: typing.Any
|
|
2400
2433
|
:param back: Draw on Back, Draw new stroke below all previous strokes
|
|
2401
|
-
:type back: typing.
|
|
2434
|
+
:type back: typing.Union[bool, typing.Any]
|
|
2402
2435
|
:param additive: Additive Drawing, Add to previous drawing
|
|
2403
|
-
:type additive: typing.
|
|
2436
|
+
:type additive: typing.Union[bool, typing.Any]
|
|
2404
2437
|
:param cyclic: Cyclic, Close new stroke
|
|
2405
|
-
:type cyclic: typing.
|
|
2438
|
+
:type cyclic: typing.Union[bool, typing.Any]
|
|
2406
2439
|
:param clear_point: Dissolve Points, Dissolve old selected points
|
|
2407
|
-
:type clear_point: typing.
|
|
2440
|
+
:type clear_point: typing.Union[bool, typing.Any]
|
|
2408
2441
|
:param clear_stroke: Delete Strokes, Delete old selected strokes
|
|
2409
|
-
:type clear_stroke: typing.
|
|
2442
|
+
:type clear_stroke: typing.Union[bool, typing.Any]
|
|
2410
2443
|
"""
|
|
2411
2444
|
|
|
2412
2445
|
...
|
|
2413
2446
|
|
|
2414
2447
|
def stroke_merge_by_distance(
|
|
2415
|
-
override_context=None,
|
|
2416
|
-
execution_context=None,
|
|
2417
|
-
undo=None,
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
use_unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2448
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2449
|
+
execution_context: typing.Union[str, int] = None,
|
|
2450
|
+
undo: bool = None,
|
|
2451
|
+
threshold: typing.Any = 0.001,
|
|
2452
|
+
use_unselected: typing.Union[bool, typing.Any] = False,
|
|
2421
2453
|
):
|
|
2422
2454
|
"""Merge points by distance
|
|
2423
2455
|
|
|
2424
|
-
:type override_context: typing.
|
|
2425
|
-
:type execution_context: typing.
|
|
2426
|
-
:type undo:
|
|
2456
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2457
|
+
:type execution_context: typing.Union[str, int]
|
|
2458
|
+
:type undo: bool
|
|
2427
2459
|
:param threshold: Threshold
|
|
2428
|
-
:type threshold: typing.
|
|
2460
|
+
:type threshold: typing.Any
|
|
2429
2461
|
:param use_unselected: Unselected, Use whole stroke, not only selected points
|
|
2430
|
-
:type use_unselected: typing.
|
|
2462
|
+
:type use_unselected: typing.Union[bool, typing.Any]
|
|
2431
2463
|
"""
|
|
2432
2464
|
|
|
2433
2465
|
...
|
|
2434
2466
|
|
|
2435
2467
|
def stroke_merge_material(
|
|
2436
|
-
override_context=None,
|
|
2437
|
-
execution_context=None,
|
|
2438
|
-
undo=None,
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
val_threshold: typing.Optional[typing.Any] = 0.001,
|
|
2468
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2469
|
+
execution_context: typing.Union[str, int] = None,
|
|
2470
|
+
undo: bool = None,
|
|
2471
|
+
hue_threshold: typing.Any = 0.001,
|
|
2472
|
+
sat_threshold: typing.Any = 0.001,
|
|
2473
|
+
val_threshold: typing.Any = 0.001,
|
|
2443
2474
|
):
|
|
2444
2475
|
"""Replace materials in strokes merging similar
|
|
2445
2476
|
|
|
2446
|
-
:type override_context: typing.
|
|
2447
|
-
:type execution_context: typing.
|
|
2448
|
-
:type undo:
|
|
2477
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2478
|
+
:type execution_context: typing.Union[str, int]
|
|
2479
|
+
:type undo: bool
|
|
2449
2480
|
:param hue_threshold: Hue Threshold
|
|
2450
|
-
:type hue_threshold: typing.
|
|
2481
|
+
:type hue_threshold: typing.Any
|
|
2451
2482
|
:param sat_threshold: Saturation Threshold
|
|
2452
|
-
:type sat_threshold: typing.
|
|
2483
|
+
:type sat_threshold: typing.Any
|
|
2453
2484
|
:param val_threshold: Value Threshold
|
|
2454
|
-
:type val_threshold: typing.
|
|
2485
|
+
:type val_threshold: typing.Any
|
|
2455
2486
|
"""
|
|
2456
2487
|
|
|
2457
2488
|
...
|
|
2458
2489
|
|
|
2459
2490
|
def stroke_normalize(
|
|
2460
|
-
override_context=None,
|
|
2461
|
-
execution_context=None,
|
|
2462
|
-
undo=None,
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
value: typing.Optional[typing.Any] = 10,
|
|
2491
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2492
|
+
execution_context: typing.Union[str, int] = None,
|
|
2493
|
+
undo: bool = None,
|
|
2494
|
+
mode: typing.Any = "THICKNESS",
|
|
2495
|
+
factor: typing.Any = 1.0,
|
|
2496
|
+
value: typing.Any = 10,
|
|
2467
2497
|
):
|
|
2468
2498
|
"""Normalize stroke attributes
|
|
2469
2499
|
|
|
2470
|
-
:type override_context: typing.
|
|
2471
|
-
:type execution_context: typing.
|
|
2472
|
-
:type undo:
|
|
2500
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2501
|
+
:type execution_context: typing.Union[str, int]
|
|
2502
|
+
:type undo: bool
|
|
2473
2503
|
:param mode: Mode, Attribute to be normalized
|
|
2474
2504
|
|
|
2475
2505
|
THICKNESS
|
|
@@ -2477,34 +2507,33 @@ def stroke_normalize(
|
|
|
2477
2507
|
|
|
2478
2508
|
OPACITY
|
|
2479
2509
|
Opacity -- Normalizes the stroke opacity by making all points use the same opacity value.
|
|
2480
|
-
:type mode: typing.
|
|
2510
|
+
:type mode: typing.Any
|
|
2481
2511
|
:param factor: Factor
|
|
2482
|
-
:type factor: typing.
|
|
2512
|
+
:type factor: typing.Any
|
|
2483
2513
|
:param value: Value, Value
|
|
2484
|
-
:type value: typing.
|
|
2514
|
+
:type value: typing.Any
|
|
2485
2515
|
"""
|
|
2486
2516
|
|
|
2487
2517
|
...
|
|
2488
2518
|
|
|
2489
2519
|
def stroke_outline(
|
|
2490
|
-
override_context=None,
|
|
2491
|
-
execution_context=None,
|
|
2492
|
-
undo=None,
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
length: typing.Optional[typing.Any] = 0.0,
|
|
2520
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2521
|
+
execution_context: typing.Union[str, int] = None,
|
|
2522
|
+
undo: bool = None,
|
|
2523
|
+
view_mode: typing.Any = "VIEW",
|
|
2524
|
+
material_mode: typing.Any = "ACTIVE",
|
|
2525
|
+
thickness: typing.Any = 1,
|
|
2526
|
+
keep: typing.Union[bool, typing.Any] = True,
|
|
2527
|
+
subdivisions: typing.Any = 3,
|
|
2528
|
+
length: typing.Any = 0.0,
|
|
2500
2529
|
):
|
|
2501
2530
|
"""Convert stroke to perimeter
|
|
2502
2531
|
|
|
2503
|
-
:type override_context: typing.
|
|
2504
|
-
:type execution_context: typing.
|
|
2505
|
-
:type undo:
|
|
2532
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2533
|
+
:type execution_context: typing.Union[str, int]
|
|
2534
|
+
:type undo: bool
|
|
2506
2535
|
:param view_mode: View
|
|
2507
|
-
:type view_mode: typing.
|
|
2536
|
+
:type view_mode: typing.Any
|
|
2508
2537
|
:param material_mode: Material Mode
|
|
2509
2538
|
|
|
2510
2539
|
ACTIVE
|
|
@@ -2515,31 +2544,30 @@ def stroke_outline(
|
|
|
2515
2544
|
|
|
2516
2545
|
NEW
|
|
2517
2546
|
New Material.
|
|
2518
|
-
:type material_mode: typing.
|
|
2547
|
+
:type material_mode: typing.Any
|
|
2519
2548
|
:param thickness: Thickness, Thickness of the stroke perimeter
|
|
2520
|
-
:type thickness: typing.
|
|
2549
|
+
:type thickness: typing.Any
|
|
2521
2550
|
:param keep: Keep Shape, Try to keep global shape when the stroke thickness change
|
|
2522
|
-
:type keep: typing.
|
|
2551
|
+
:type keep: typing.Union[bool, typing.Any]
|
|
2523
2552
|
:param subdivisions: Subdivisions
|
|
2524
|
-
:type subdivisions: typing.
|
|
2553
|
+
:type subdivisions: typing.Any
|
|
2525
2554
|
:param length: Sample Length
|
|
2526
|
-
:type length: typing.
|
|
2555
|
+
:type length: typing.Any
|
|
2527
2556
|
"""
|
|
2528
2557
|
|
|
2529
2558
|
...
|
|
2530
2559
|
|
|
2531
2560
|
def stroke_reset_vertex_color(
|
|
2532
|
-
override_context=None,
|
|
2533
|
-
execution_context=None,
|
|
2534
|
-
undo=None,
|
|
2535
|
-
|
|
2536
|
-
mode: typing.Optional[typing.Any] = "BOTH",
|
|
2561
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2562
|
+
execution_context: typing.Union[str, int] = None,
|
|
2563
|
+
undo: bool = None,
|
|
2564
|
+
mode: typing.Any = "BOTH",
|
|
2537
2565
|
):
|
|
2538
2566
|
"""Reset vertex color for all or selected strokes
|
|
2539
2567
|
|
|
2540
|
-
:type override_context: typing.
|
|
2541
|
-
:type execution_context: typing.
|
|
2542
|
-
:type undo:
|
|
2568
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2569
|
+
:type execution_context: typing.Union[str, int]
|
|
2570
|
+
:type undo: bool
|
|
2543
2571
|
:param mode: Mode
|
|
2544
2572
|
|
|
2545
2573
|
STROKE
|
|
@@ -2550,44 +2578,42 @@ def stroke_reset_vertex_color(
|
|
|
2550
2578
|
|
|
2551
2579
|
BOTH
|
|
2552
2580
|
Stroke & Fill -- Reset Vertex Color to Stroke and Fill.
|
|
2553
|
-
:type mode: typing.
|
|
2581
|
+
:type mode: typing.Any
|
|
2554
2582
|
"""
|
|
2555
2583
|
|
|
2556
2584
|
...
|
|
2557
2585
|
|
|
2558
2586
|
def stroke_sample(
|
|
2559
|
-
override_context=None,
|
|
2560
|
-
execution_context=None,
|
|
2561
|
-
undo=None,
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
sharp_threshold: typing.Optional[typing.Any] = 0.1,
|
|
2587
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2588
|
+
execution_context: typing.Union[str, int] = None,
|
|
2589
|
+
undo: bool = None,
|
|
2590
|
+
length: typing.Any = 0.1,
|
|
2591
|
+
sharp_threshold: typing.Any = 0.1,
|
|
2565
2592
|
):
|
|
2566
2593
|
"""Sample stroke points to predefined segment length
|
|
2567
2594
|
|
|
2568
|
-
:type override_context: typing.
|
|
2569
|
-
:type execution_context: typing.
|
|
2570
|
-
:type undo:
|
|
2595
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2596
|
+
:type execution_context: typing.Union[str, int]
|
|
2597
|
+
:type undo: bool
|
|
2571
2598
|
:param length: Length
|
|
2572
|
-
:type length: typing.
|
|
2599
|
+
:type length: typing.Any
|
|
2573
2600
|
:param sharp_threshold: Sharp Threshold
|
|
2574
|
-
:type sharp_threshold: typing.
|
|
2601
|
+
:type sharp_threshold: typing.Any
|
|
2575
2602
|
"""
|
|
2576
2603
|
|
|
2577
2604
|
...
|
|
2578
2605
|
|
|
2579
2606
|
def stroke_separate(
|
|
2580
|
-
override_context=None,
|
|
2581
|
-
execution_context=None,
|
|
2582
|
-
undo=None,
|
|
2583
|
-
|
|
2584
|
-
mode: typing.Optional[typing.Any] = "POINT",
|
|
2607
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2608
|
+
execution_context: typing.Union[str, int] = None,
|
|
2609
|
+
undo: bool = None,
|
|
2610
|
+
mode: typing.Any = "POINT",
|
|
2585
2611
|
):
|
|
2586
2612
|
"""Separate the selected strokes or layer in a new grease pencil object
|
|
2587
2613
|
|
|
2588
|
-
:type override_context: typing.
|
|
2589
|
-
:type execution_context: typing.
|
|
2590
|
-
:type undo:
|
|
2614
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2615
|
+
:type execution_context: typing.Union[str, int]
|
|
2616
|
+
:type undo: bool
|
|
2591
2617
|
:param mode: Mode
|
|
2592
2618
|
|
|
2593
2619
|
POINT
|
|
@@ -2598,164 +2624,171 @@ def stroke_separate(
|
|
|
2598
2624
|
|
|
2599
2625
|
LAYER
|
|
2600
2626
|
Active Layer -- Separate the strokes of the current layer.
|
|
2601
|
-
:type mode: typing.
|
|
2627
|
+
:type mode: typing.Any
|
|
2602
2628
|
"""
|
|
2603
2629
|
|
|
2604
2630
|
...
|
|
2605
2631
|
|
|
2606
2632
|
def stroke_simplify(
|
|
2607
|
-
override_context=None,
|
|
2608
|
-
execution_context=None,
|
|
2609
|
-
undo=None,
|
|
2610
|
-
|
|
2611
|
-
factor: typing.Optional[typing.Any] = 0.0,
|
|
2633
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2634
|
+
execution_context: typing.Union[str, int] = None,
|
|
2635
|
+
undo: bool = None,
|
|
2636
|
+
factor: typing.Any = 0.0,
|
|
2612
2637
|
):
|
|
2613
2638
|
"""Simplify selected strokes, reducing number of points
|
|
2614
2639
|
|
|
2615
|
-
:type override_context: typing.
|
|
2616
|
-
:type execution_context: typing.
|
|
2617
|
-
:type undo:
|
|
2640
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2641
|
+
:type execution_context: typing.Union[str, int]
|
|
2642
|
+
:type undo: bool
|
|
2618
2643
|
:param factor: Factor
|
|
2619
|
-
:type factor: typing.
|
|
2644
|
+
:type factor: typing.Any
|
|
2620
2645
|
"""
|
|
2621
2646
|
|
|
2622
2647
|
...
|
|
2623
2648
|
|
|
2624
2649
|
def stroke_simplify_fixed(
|
|
2625
|
-
override_context=None,
|
|
2626
|
-
execution_context=None,
|
|
2627
|
-
undo=None,
|
|
2628
|
-
|
|
2629
|
-
step: typing.Optional[typing.Any] = 1,
|
|
2650
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2651
|
+
execution_context: typing.Union[str, int] = None,
|
|
2652
|
+
undo: bool = None,
|
|
2653
|
+
step: typing.Any = 1,
|
|
2630
2654
|
):
|
|
2631
2655
|
"""Simplify selected strokes, reducing number of points using fixed algorithm
|
|
2632
2656
|
|
|
2633
|
-
:type override_context: typing.
|
|
2634
|
-
:type execution_context: typing.
|
|
2635
|
-
:type undo:
|
|
2657
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2658
|
+
:type execution_context: typing.Union[str, int]
|
|
2659
|
+
:type undo: bool
|
|
2636
2660
|
:param step: Steps, Number of simplify steps
|
|
2637
|
-
:type step: typing.
|
|
2661
|
+
:type step: typing.Any
|
|
2638
2662
|
"""
|
|
2639
2663
|
|
|
2640
2664
|
...
|
|
2641
2665
|
|
|
2642
2666
|
def stroke_smooth(
|
|
2643
|
-
override_context=None,
|
|
2644
|
-
execution_context=None,
|
|
2645
|
-
undo=None,
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
smooth_uv: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2667
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2668
|
+
execution_context: typing.Union[str, int] = None,
|
|
2669
|
+
undo: bool = None,
|
|
2670
|
+
repeat: typing.Any = 2,
|
|
2671
|
+
factor: typing.Any = 1.0,
|
|
2672
|
+
only_selected: typing.Union[bool, typing.Any] = True,
|
|
2673
|
+
smooth_position: typing.Union[bool, typing.Any] = True,
|
|
2674
|
+
smooth_thickness: typing.Union[bool, typing.Any] = True,
|
|
2675
|
+
smooth_strength: typing.Union[bool, typing.Any] = False,
|
|
2676
|
+
smooth_uv: typing.Union[bool, typing.Any] = False,
|
|
2654
2677
|
):
|
|
2655
2678
|
"""Smooth selected strokes
|
|
2656
2679
|
|
|
2657
|
-
:type override_context: typing.
|
|
2658
|
-
:type execution_context: typing.
|
|
2659
|
-
:type undo:
|
|
2680
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2681
|
+
:type execution_context: typing.Union[str, int]
|
|
2682
|
+
:type undo: bool
|
|
2660
2683
|
:param repeat: Repeat
|
|
2661
|
-
:type repeat: typing.
|
|
2684
|
+
:type repeat: typing.Any
|
|
2662
2685
|
:param factor: Factor
|
|
2663
|
-
:type factor: typing.
|
|
2686
|
+
:type factor: typing.Any
|
|
2664
2687
|
:param only_selected: Selected Points, Smooth only selected points in the stroke
|
|
2665
|
-
:type only_selected: typing.
|
|
2688
|
+
:type only_selected: typing.Union[bool, typing.Any]
|
|
2666
2689
|
:param smooth_position: Position
|
|
2667
|
-
:type smooth_position: typing.
|
|
2690
|
+
:type smooth_position: typing.Union[bool, typing.Any]
|
|
2668
2691
|
:param smooth_thickness: Thickness
|
|
2669
|
-
:type smooth_thickness: typing.
|
|
2692
|
+
:type smooth_thickness: typing.Union[bool, typing.Any]
|
|
2670
2693
|
:param smooth_strength: Strength
|
|
2671
|
-
:type smooth_strength: typing.
|
|
2694
|
+
:type smooth_strength: typing.Union[bool, typing.Any]
|
|
2672
2695
|
:param smooth_uv: UV
|
|
2673
|
-
:type smooth_uv: typing.
|
|
2696
|
+
:type smooth_uv: typing.Union[bool, typing.Any]
|
|
2674
2697
|
"""
|
|
2675
2698
|
|
|
2676
2699
|
...
|
|
2677
2700
|
|
|
2678
|
-
def stroke_split(
|
|
2701
|
+
def stroke_split(
|
|
2702
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2703
|
+
execution_context: typing.Union[str, int] = None,
|
|
2704
|
+
undo: bool = None,
|
|
2705
|
+
):
|
|
2679
2706
|
"""Split selected points as new stroke on same frame
|
|
2680
2707
|
|
|
2681
|
-
:type override_context: typing.
|
|
2682
|
-
:type execution_context: typing.
|
|
2683
|
-
:type undo:
|
|
2708
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2709
|
+
:type execution_context: typing.Union[str, int]
|
|
2710
|
+
:type undo: bool
|
|
2684
2711
|
"""
|
|
2685
2712
|
|
|
2686
2713
|
...
|
|
2687
2714
|
|
|
2688
|
-
def stroke_start_set(
|
|
2715
|
+
def stroke_start_set(
|
|
2716
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2717
|
+
execution_context: typing.Union[str, int] = None,
|
|
2718
|
+
undo: bool = None,
|
|
2719
|
+
):
|
|
2689
2720
|
"""Set start point for cyclic strokes
|
|
2690
2721
|
|
|
2691
|
-
:type override_context: typing.
|
|
2692
|
-
:type execution_context: typing.
|
|
2693
|
-
:type undo:
|
|
2722
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2723
|
+
:type execution_context: typing.Union[str, int]
|
|
2724
|
+
:type undo: bool
|
|
2694
2725
|
"""
|
|
2695
2726
|
|
|
2696
2727
|
...
|
|
2697
2728
|
|
|
2698
2729
|
def stroke_subdivide(
|
|
2699
|
-
override_context=None,
|
|
2700
|
-
execution_context=None,
|
|
2701
|
-
undo=None,
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
smooth_uv: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2730
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2731
|
+
execution_context: typing.Union[str, int] = None,
|
|
2732
|
+
undo: bool = None,
|
|
2733
|
+
number_cuts: typing.Any = 1,
|
|
2734
|
+
factor: typing.Any = 0.0,
|
|
2735
|
+
repeat: typing.Any = 1,
|
|
2736
|
+
only_selected: typing.Union[bool, typing.Any] = True,
|
|
2737
|
+
smooth_position: typing.Union[bool, typing.Any] = True,
|
|
2738
|
+
smooth_thickness: typing.Union[bool, typing.Any] = True,
|
|
2739
|
+
smooth_strength: typing.Union[bool, typing.Any] = False,
|
|
2740
|
+
smooth_uv: typing.Union[bool, typing.Any] = False,
|
|
2711
2741
|
):
|
|
2712
2742
|
"""Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
2713
2743
|
|
|
2714
|
-
:type override_context: typing.
|
|
2715
|
-
:type execution_context: typing.
|
|
2716
|
-
:type undo:
|
|
2744
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2745
|
+
:type execution_context: typing.Union[str, int]
|
|
2746
|
+
:type undo: bool
|
|
2717
2747
|
:param number_cuts: Number of Cuts
|
|
2718
|
-
:type number_cuts: typing.
|
|
2748
|
+
:type number_cuts: typing.Any
|
|
2719
2749
|
:param factor: Smooth
|
|
2720
|
-
:type factor: typing.
|
|
2750
|
+
:type factor: typing.Any
|
|
2721
2751
|
:param repeat: Repeat
|
|
2722
|
-
:type repeat: typing.
|
|
2752
|
+
:type repeat: typing.Any
|
|
2723
2753
|
:param only_selected: Selected Points, Smooth only selected points in the stroke
|
|
2724
|
-
:type only_selected: typing.
|
|
2754
|
+
:type only_selected: typing.Union[bool, typing.Any]
|
|
2725
2755
|
:param smooth_position: Position
|
|
2726
|
-
:type smooth_position: typing.
|
|
2756
|
+
:type smooth_position: typing.Union[bool, typing.Any]
|
|
2727
2757
|
:param smooth_thickness: Thickness
|
|
2728
|
-
:type smooth_thickness: typing.
|
|
2758
|
+
:type smooth_thickness: typing.Union[bool, typing.Any]
|
|
2729
2759
|
:param smooth_strength: Strength
|
|
2730
|
-
:type smooth_strength: typing.
|
|
2760
|
+
:type smooth_strength: typing.Union[bool, typing.Any]
|
|
2731
2761
|
:param smooth_uv: UV
|
|
2732
|
-
:type smooth_uv: typing.
|
|
2762
|
+
:type smooth_uv: typing.Union[bool, typing.Any]
|
|
2733
2763
|
"""
|
|
2734
2764
|
|
|
2735
2765
|
...
|
|
2736
2766
|
|
|
2737
|
-
def stroke_trim(
|
|
2767
|
+
def stroke_trim(
|
|
2768
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2769
|
+
execution_context: typing.Union[str, int] = None,
|
|
2770
|
+
undo: bool = None,
|
|
2771
|
+
):
|
|
2738
2772
|
"""Trim selected stroke to first loop or intersection
|
|
2739
2773
|
|
|
2740
|
-
:type override_context: typing.
|
|
2741
|
-
:type execution_context: typing.
|
|
2742
|
-
:type undo:
|
|
2774
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2775
|
+
:type execution_context: typing.Union[str, int]
|
|
2776
|
+
:type undo: bool
|
|
2743
2777
|
"""
|
|
2744
2778
|
|
|
2745
2779
|
...
|
|
2746
2780
|
|
|
2747
2781
|
def time_segment_add(
|
|
2748
|
-
override_context=None,
|
|
2749
|
-
execution_context=None,
|
|
2750
|
-
undo=None,
|
|
2751
|
-
*,
|
|
2782
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2783
|
+
execution_context: typing.Union[str, int] = None,
|
|
2784
|
+
undo: bool = None,
|
|
2752
2785
|
modifier: typing.Union[str, typing.Any] = "",
|
|
2753
2786
|
):
|
|
2754
2787
|
"""Add a segment to the time modifier
|
|
2755
2788
|
|
|
2756
|
-
:type override_context: typing.
|
|
2757
|
-
:type execution_context: typing.
|
|
2758
|
-
:type undo:
|
|
2789
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2790
|
+
:type execution_context: typing.Union[str, int]
|
|
2791
|
+
:type undo: bool
|
|
2759
2792
|
:param modifier: Modifier, Name of the modifier to edit
|
|
2760
2793
|
:type modifier: typing.Union[str, typing.Any]
|
|
2761
2794
|
"""
|
|
@@ -2763,90 +2796,91 @@ def time_segment_add(
|
|
|
2763
2796
|
...
|
|
2764
2797
|
|
|
2765
2798
|
def time_segment_move(
|
|
2766
|
-
override_context=None,
|
|
2767
|
-
execution_context=None,
|
|
2768
|
-
undo=None,
|
|
2769
|
-
*,
|
|
2799
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2800
|
+
execution_context: typing.Union[str, int] = None,
|
|
2801
|
+
undo: bool = None,
|
|
2770
2802
|
modifier: typing.Union[str, typing.Any] = "",
|
|
2771
|
-
type: typing.
|
|
2803
|
+
type: typing.Any = "UP",
|
|
2772
2804
|
):
|
|
2773
2805
|
"""Move the active time segment up or down
|
|
2774
2806
|
|
|
2775
|
-
:type override_context: typing.
|
|
2776
|
-
:type execution_context: typing.
|
|
2777
|
-
:type undo:
|
|
2807
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2808
|
+
:type execution_context: typing.Union[str, int]
|
|
2809
|
+
:type undo: bool
|
|
2778
2810
|
:param modifier: Modifier, Name of the modifier to edit
|
|
2779
2811
|
:type modifier: typing.Union[str, typing.Any]
|
|
2780
2812
|
:param type: Type
|
|
2781
|
-
:type type: typing.
|
|
2813
|
+
:type type: typing.Any
|
|
2782
2814
|
"""
|
|
2783
2815
|
|
|
2784
2816
|
...
|
|
2785
2817
|
|
|
2786
2818
|
def time_segment_remove(
|
|
2787
|
-
override_context=None,
|
|
2788
|
-
execution_context=None,
|
|
2789
|
-
undo=None,
|
|
2790
|
-
*,
|
|
2819
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2820
|
+
execution_context: typing.Union[str, int] = None,
|
|
2821
|
+
undo: bool = None,
|
|
2791
2822
|
modifier: typing.Union[str, typing.Any] = "",
|
|
2792
|
-
index: typing.
|
|
2823
|
+
index: typing.Any = 0,
|
|
2793
2824
|
):
|
|
2794
2825
|
"""Remove the active segment from the time modifier
|
|
2795
2826
|
|
|
2796
|
-
:type override_context: typing.
|
|
2797
|
-
:type execution_context: typing.
|
|
2798
|
-
:type undo:
|
|
2827
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2828
|
+
:type execution_context: typing.Union[str, int]
|
|
2829
|
+
:type undo: bool
|
|
2799
2830
|
:param modifier: Modifier, Name of the modifier to edit
|
|
2800
2831
|
:type modifier: typing.Union[str, typing.Any]
|
|
2801
2832
|
:param index: Index, Index of the segment to remove
|
|
2802
|
-
:type index: typing.
|
|
2833
|
+
:type index: typing.Any
|
|
2803
2834
|
"""
|
|
2804
2835
|
|
|
2805
2836
|
...
|
|
2806
2837
|
|
|
2807
|
-
def tint_flip(
|
|
2838
|
+
def tint_flip(
|
|
2839
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2840
|
+
execution_context: typing.Union[str, int] = None,
|
|
2841
|
+
undo: bool = None,
|
|
2842
|
+
):
|
|
2808
2843
|
"""Switch tint colors
|
|
2809
2844
|
|
|
2810
|
-
:type override_context: typing.
|
|
2811
|
-
:type execution_context: typing.
|
|
2812
|
-
:type undo:
|
|
2845
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2846
|
+
:type execution_context: typing.Union[str, int]
|
|
2847
|
+
:type undo: bool
|
|
2813
2848
|
"""
|
|
2814
2849
|
|
|
2815
2850
|
...
|
|
2816
2851
|
|
|
2817
2852
|
def trace_image(
|
|
2818
|
-
override_context=None,
|
|
2819
|
-
execution_context=None,
|
|
2820
|
-
undo=None,
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
frame_number: typing.Optional[typing.Any] = 0,
|
|
2853
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2854
|
+
execution_context: typing.Union[str, int] = None,
|
|
2855
|
+
undo: bool = None,
|
|
2856
|
+
target: typing.Any = "NEW",
|
|
2857
|
+
thickness: typing.Any = 10,
|
|
2858
|
+
resolution: typing.Any = 5,
|
|
2859
|
+
scale: typing.Any = 1.0,
|
|
2860
|
+
sample: typing.Any = 0.0,
|
|
2861
|
+
threshold: typing.Any = 0.5,
|
|
2862
|
+
turnpolicy: typing.Any = "MINORITY",
|
|
2863
|
+
mode: typing.Any = "SINGLE",
|
|
2864
|
+
use_current_frame: typing.Union[bool, typing.Any] = True,
|
|
2865
|
+
frame_number: typing.Any = 0,
|
|
2832
2866
|
):
|
|
2833
2867
|
"""Extract Grease Pencil strokes from image
|
|
2834
2868
|
|
|
2835
|
-
:type override_context: typing.
|
|
2836
|
-
:type execution_context: typing.
|
|
2837
|
-
:type undo:
|
|
2869
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2870
|
+
:type execution_context: typing.Union[str, int]
|
|
2871
|
+
:type undo: bool
|
|
2838
2872
|
:param target: Target Object, Target grease pencil
|
|
2839
|
-
:type target: typing.
|
|
2873
|
+
:type target: typing.Any
|
|
2840
2874
|
:param thickness: Thickness
|
|
2841
|
-
:type thickness: typing.
|
|
2875
|
+
:type thickness: typing.Any
|
|
2842
2876
|
:param resolution: Resolution, Resolution of the generated curves
|
|
2843
|
-
:type resolution: typing.
|
|
2877
|
+
:type resolution: typing.Any
|
|
2844
2878
|
:param scale: Scale, Scale of the final stroke
|
|
2845
|
-
:type scale: typing.
|
|
2879
|
+
:type scale: typing.Any
|
|
2846
2880
|
:param sample: Sample, Distance to sample points, zero to disable
|
|
2847
|
-
:type sample: typing.
|
|
2881
|
+
:type sample: typing.Any
|
|
2848
2882
|
:param threshold: Color Threshold, Determine the lightness threshold above which strokes are generated
|
|
2849
|
-
:type threshold: typing.
|
|
2883
|
+
:type threshold: typing.Any
|
|
2850
2884
|
:param turnpolicy: Turn Policy, Determines how to resolve ambiguities during decomposition of bitmaps into paths
|
|
2851
2885
|
|
|
2852
2886
|
BLACK
|
|
@@ -2869,7 +2903,7 @@ def trace_image(
|
|
|
2869
2903
|
|
|
2870
2904
|
RANDOM
|
|
2871
2905
|
Random -- Choose pseudo-randomly.
|
|
2872
|
-
:type turnpolicy: typing.
|
|
2906
|
+
:type turnpolicy: typing.Any
|
|
2873
2907
|
:param mode: Mode, Determines if trace simple image or full sequence
|
|
2874
2908
|
|
|
2875
2909
|
SINGLE
|
|
@@ -2877,366 +2911,386 @@ def trace_image(
|
|
|
2877
2911
|
|
|
2878
2912
|
SEQUENCE
|
|
2879
2913
|
Sequence -- Trace full sequence.
|
|
2880
|
-
:type mode: typing.
|
|
2914
|
+
:type mode: typing.Any
|
|
2881
2915
|
:param use_current_frame: Start At Current Frame, Trace Image starting in current image frame
|
|
2882
|
-
:type use_current_frame: typing.
|
|
2916
|
+
:type use_current_frame: typing.Union[bool, typing.Any]
|
|
2883
2917
|
:param frame_number: Trace Frame, Used to trace only one frame of the image sequence, set to zero to trace all
|
|
2884
|
-
:type frame_number: typing.
|
|
2918
|
+
:type frame_number: typing.Any
|
|
2885
2919
|
"""
|
|
2886
2920
|
|
|
2887
2921
|
...
|
|
2888
2922
|
|
|
2889
2923
|
def transform_fill(
|
|
2890
|
-
override_context=None,
|
|
2891
|
-
execution_context=None,
|
|
2892
|
-
undo=None,
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
release_confirm: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
2924
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2925
|
+
execution_context: typing.Union[str, int] = None,
|
|
2926
|
+
undo: bool = None,
|
|
2927
|
+
mode: typing.Any = "ROTATE",
|
|
2928
|
+
location: typing.Any = (0.0, 0.0),
|
|
2929
|
+
rotation: typing.Any = 0.0,
|
|
2930
|
+
scale: typing.Any = 0.0,
|
|
2931
|
+
release_confirm: typing.Union[bool, typing.Any] = False,
|
|
2899
2932
|
):
|
|
2900
2933
|
"""Transform grease pencil stroke fill
|
|
2901
2934
|
|
|
2902
|
-
:type override_context: typing.
|
|
2903
|
-
:type execution_context: typing.
|
|
2904
|
-
:type undo:
|
|
2935
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2936
|
+
:type execution_context: typing.Union[str, int]
|
|
2937
|
+
:type undo: bool
|
|
2905
2938
|
:param mode: Mode
|
|
2906
|
-
:type mode: typing.
|
|
2939
|
+
:type mode: typing.Any
|
|
2907
2940
|
:param location: Location
|
|
2908
|
-
:type location: typing.
|
|
2941
|
+
:type location: typing.Any
|
|
2909
2942
|
:param rotation: Rotation
|
|
2910
|
-
:type rotation: typing.
|
|
2943
|
+
:type rotation: typing.Any
|
|
2911
2944
|
:param scale: Scale
|
|
2912
|
-
:type scale: typing.
|
|
2945
|
+
:type scale: typing.Any
|
|
2913
2946
|
:param release_confirm: Confirm on Release
|
|
2914
|
-
:type release_confirm: typing.
|
|
2947
|
+
:type release_confirm: typing.Union[bool, typing.Any]
|
|
2915
2948
|
"""
|
|
2916
2949
|
|
|
2917
2950
|
...
|
|
2918
2951
|
|
|
2919
|
-
def unlock_all(
|
|
2952
|
+
def unlock_all(
|
|
2953
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2954
|
+
execution_context: typing.Union[str, int] = None,
|
|
2955
|
+
undo: bool = None,
|
|
2956
|
+
):
|
|
2920
2957
|
"""Unlock all Grease Pencil layers so that they can be edited
|
|
2921
2958
|
|
|
2922
|
-
:type override_context: typing.
|
|
2923
|
-
:type execution_context: typing.
|
|
2924
|
-
:type undo:
|
|
2959
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2960
|
+
:type execution_context: typing.Union[str, int]
|
|
2961
|
+
:type undo: bool
|
|
2925
2962
|
"""
|
|
2926
2963
|
|
|
2927
2964
|
...
|
|
2928
2965
|
|
|
2929
2966
|
def vertex_color_brightness_contrast(
|
|
2930
|
-
override_context=None,
|
|
2931
|
-
execution_context=None,
|
|
2932
|
-
undo=None,
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
contrast: typing.Optional[typing.Any] = 0.0,
|
|
2967
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2968
|
+
execution_context: typing.Union[str, int] = None,
|
|
2969
|
+
undo: bool = None,
|
|
2970
|
+
mode: typing.Any = "BOTH",
|
|
2971
|
+
brightness: typing.Any = 0.0,
|
|
2972
|
+
contrast: typing.Any = 0.0,
|
|
2937
2973
|
):
|
|
2938
2974
|
"""Adjust vertex color brightness/contrast
|
|
2939
2975
|
|
|
2940
|
-
:type override_context: typing.
|
|
2941
|
-
:type execution_context: typing.
|
|
2942
|
-
:type undo:
|
|
2976
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
2977
|
+
:type execution_context: typing.Union[str, int]
|
|
2978
|
+
:type undo: bool
|
|
2943
2979
|
:param mode: Mode
|
|
2944
|
-
:type mode: typing.
|
|
2980
|
+
:type mode: typing.Any
|
|
2945
2981
|
:param brightness: Brightness
|
|
2946
|
-
:type brightness: typing.
|
|
2982
|
+
:type brightness: typing.Any
|
|
2947
2983
|
:param contrast: Contrast
|
|
2948
|
-
:type contrast: typing.
|
|
2984
|
+
:type contrast: typing.Any
|
|
2949
2985
|
"""
|
|
2950
2986
|
|
|
2951
2987
|
...
|
|
2952
2988
|
|
|
2953
2989
|
def vertex_color_hsv(
|
|
2954
|
-
override_context=None,
|
|
2955
|
-
execution_context=None,
|
|
2956
|
-
undo=None,
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
v: typing.Optional[typing.Any] = 1.0,
|
|
2990
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
2991
|
+
execution_context: typing.Union[str, int] = None,
|
|
2992
|
+
undo: bool = None,
|
|
2993
|
+
mode: typing.Any = "BOTH",
|
|
2994
|
+
h: typing.Any = 0.5,
|
|
2995
|
+
s: typing.Any = 1.0,
|
|
2996
|
+
v: typing.Any = 1.0,
|
|
2962
2997
|
):
|
|
2963
2998
|
"""Adjust vertex color HSV values
|
|
2964
2999
|
|
|
2965
|
-
:type override_context: typing.
|
|
2966
|
-
:type execution_context: typing.
|
|
2967
|
-
:type undo:
|
|
3000
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3001
|
+
:type execution_context: typing.Union[str, int]
|
|
3002
|
+
:type undo: bool
|
|
2968
3003
|
:param mode: Mode
|
|
2969
|
-
:type mode: typing.
|
|
3004
|
+
:type mode: typing.Any
|
|
2970
3005
|
:param h: Hue
|
|
2971
|
-
:type h: typing.
|
|
3006
|
+
:type h: typing.Any
|
|
2972
3007
|
:param s: Saturation
|
|
2973
|
-
:type s: typing.
|
|
3008
|
+
:type s: typing.Any
|
|
2974
3009
|
:param v: Value
|
|
2975
|
-
:type v: typing.
|
|
3010
|
+
:type v: typing.Any
|
|
2976
3011
|
"""
|
|
2977
3012
|
|
|
2978
3013
|
...
|
|
2979
3014
|
|
|
2980
3015
|
def vertex_color_invert(
|
|
2981
|
-
override_context=None,
|
|
2982
|
-
execution_context=None,
|
|
2983
|
-
undo=None,
|
|
2984
|
-
|
|
2985
|
-
mode: typing.Optional[typing.Any] = "BOTH",
|
|
3016
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3017
|
+
execution_context: typing.Union[str, int] = None,
|
|
3018
|
+
undo: bool = None,
|
|
3019
|
+
mode: typing.Any = "BOTH",
|
|
2986
3020
|
):
|
|
2987
3021
|
"""Invert RGB values
|
|
2988
3022
|
|
|
2989
|
-
:type override_context: typing.
|
|
2990
|
-
:type execution_context: typing.
|
|
2991
|
-
:type undo:
|
|
3023
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3024
|
+
:type execution_context: typing.Union[str, int]
|
|
3025
|
+
:type undo: bool
|
|
2992
3026
|
:param mode: Mode
|
|
2993
|
-
:type mode: typing.
|
|
3027
|
+
:type mode: typing.Any
|
|
2994
3028
|
"""
|
|
2995
3029
|
|
|
2996
3030
|
...
|
|
2997
3031
|
|
|
2998
3032
|
def vertex_color_levels(
|
|
2999
|
-
override_context=None,
|
|
3000
|
-
execution_context=None,
|
|
3001
|
-
undo=None,
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
gain: typing.Optional[typing.Any] = 1.0,
|
|
3033
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3034
|
+
execution_context: typing.Union[str, int] = None,
|
|
3035
|
+
undo: bool = None,
|
|
3036
|
+
mode: typing.Any = "BOTH",
|
|
3037
|
+
offset: typing.Any = 0.0,
|
|
3038
|
+
gain: typing.Any = 1.0,
|
|
3006
3039
|
):
|
|
3007
3040
|
"""Adjust levels of vertex colors
|
|
3008
3041
|
|
|
3009
|
-
:type override_context: typing.
|
|
3010
|
-
:type execution_context: typing.
|
|
3011
|
-
:type undo:
|
|
3042
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3043
|
+
:type execution_context: typing.Union[str, int]
|
|
3044
|
+
:type undo: bool
|
|
3012
3045
|
:param mode: Mode
|
|
3013
|
-
:type mode: typing.
|
|
3046
|
+
:type mode: typing.Any
|
|
3014
3047
|
:param offset: Offset, Value to add to colors
|
|
3015
|
-
:type offset: typing.
|
|
3048
|
+
:type offset: typing.Any
|
|
3016
3049
|
:param gain: Gain, Value to multiply colors by
|
|
3017
|
-
:type gain: typing.
|
|
3050
|
+
:type gain: typing.Any
|
|
3018
3051
|
"""
|
|
3019
3052
|
|
|
3020
3053
|
...
|
|
3021
3054
|
|
|
3022
3055
|
def vertex_color_set(
|
|
3023
|
-
override_context=None,
|
|
3024
|
-
execution_context=None,
|
|
3025
|
-
undo=None,
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
factor: typing.Optional[typing.Any] = 1.0,
|
|
3056
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3057
|
+
execution_context: typing.Union[str, int] = None,
|
|
3058
|
+
undo: bool = None,
|
|
3059
|
+
mode: typing.Any = "BOTH",
|
|
3060
|
+
factor: typing.Any = 1.0,
|
|
3029
3061
|
):
|
|
3030
3062
|
"""Set active color to all selected vertex
|
|
3031
3063
|
|
|
3032
|
-
:type override_context: typing.
|
|
3033
|
-
:type execution_context: typing.
|
|
3034
|
-
:type undo:
|
|
3064
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3065
|
+
:type execution_context: typing.Union[str, int]
|
|
3066
|
+
:type undo: bool
|
|
3035
3067
|
:param mode: Mode
|
|
3036
|
-
:type mode: typing.
|
|
3068
|
+
:type mode: typing.Any
|
|
3037
3069
|
:param factor: Factor, Mix Factor
|
|
3038
|
-
:type factor: typing.
|
|
3070
|
+
:type factor: typing.Any
|
|
3039
3071
|
"""
|
|
3040
3072
|
|
|
3041
3073
|
...
|
|
3042
3074
|
|
|
3043
|
-
def vertex_group_assign(
|
|
3075
|
+
def vertex_group_assign(
|
|
3076
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3077
|
+
execution_context: typing.Union[str, int] = None,
|
|
3078
|
+
undo: bool = None,
|
|
3079
|
+
):
|
|
3044
3080
|
"""Assign the selected vertices to the active vertex group
|
|
3045
3081
|
|
|
3046
|
-
:type override_context: typing.
|
|
3047
|
-
:type execution_context: typing.
|
|
3048
|
-
:type undo:
|
|
3082
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3083
|
+
:type execution_context: typing.Union[str, int]
|
|
3084
|
+
:type undo: bool
|
|
3049
3085
|
"""
|
|
3050
3086
|
|
|
3051
3087
|
...
|
|
3052
3088
|
|
|
3053
|
-
def vertex_group_deselect(
|
|
3089
|
+
def vertex_group_deselect(
|
|
3090
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3091
|
+
execution_context: typing.Union[str, int] = None,
|
|
3092
|
+
undo: bool = None,
|
|
3093
|
+
):
|
|
3054
3094
|
"""Deselect all selected vertices assigned to the active vertex group
|
|
3055
3095
|
|
|
3056
|
-
:type override_context: typing.
|
|
3057
|
-
:type execution_context: typing.
|
|
3058
|
-
:type undo:
|
|
3096
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3097
|
+
:type execution_context: typing.Union[str, int]
|
|
3098
|
+
:type undo: bool
|
|
3059
3099
|
"""
|
|
3060
3100
|
|
|
3061
3101
|
...
|
|
3062
3102
|
|
|
3063
|
-
def vertex_group_invert(
|
|
3103
|
+
def vertex_group_invert(
|
|
3104
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3105
|
+
execution_context: typing.Union[str, int] = None,
|
|
3106
|
+
undo: bool = None,
|
|
3107
|
+
):
|
|
3064
3108
|
"""Invert weights to the active vertex group
|
|
3065
3109
|
|
|
3066
|
-
:type override_context: typing.
|
|
3067
|
-
:type execution_context: typing.
|
|
3068
|
-
:type undo:
|
|
3110
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3111
|
+
:type execution_context: typing.Union[str, int]
|
|
3112
|
+
:type undo: bool
|
|
3069
3113
|
"""
|
|
3070
3114
|
|
|
3071
3115
|
...
|
|
3072
3116
|
|
|
3073
|
-
def vertex_group_normalize(
|
|
3117
|
+
def vertex_group_normalize(
|
|
3118
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3119
|
+
execution_context: typing.Union[str, int] = None,
|
|
3120
|
+
undo: bool = None,
|
|
3121
|
+
):
|
|
3074
3122
|
"""Normalize weights to the active vertex group
|
|
3075
3123
|
|
|
3076
|
-
:type override_context: typing.
|
|
3077
|
-
:type execution_context: typing.
|
|
3078
|
-
:type undo:
|
|
3124
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3125
|
+
:type execution_context: typing.Union[str, int]
|
|
3126
|
+
:type undo: bool
|
|
3079
3127
|
"""
|
|
3080
3128
|
|
|
3081
3129
|
...
|
|
3082
3130
|
|
|
3083
3131
|
def vertex_group_normalize_all(
|
|
3084
|
-
override_context=None,
|
|
3085
|
-
execution_context=None,
|
|
3086
|
-
undo=None,
|
|
3087
|
-
|
|
3088
|
-
lock_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
3132
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3133
|
+
execution_context: typing.Union[str, int] = None,
|
|
3134
|
+
undo: bool = None,
|
|
3135
|
+
lock_active: typing.Union[bool, typing.Any] = True,
|
|
3089
3136
|
):
|
|
3090
3137
|
"""Normalize all weights of all vertex groups, so that for each vertex, the sum of all weights is 1.0
|
|
3091
3138
|
|
|
3092
|
-
:type override_context: typing.
|
|
3093
|
-
:type execution_context: typing.
|
|
3094
|
-
:type undo:
|
|
3139
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3140
|
+
:type execution_context: typing.Union[str, int]
|
|
3141
|
+
:type undo: bool
|
|
3095
3142
|
:param lock_active: Lock Active, Keep the values of the active group while normalizing others
|
|
3096
|
-
:type lock_active: typing.
|
|
3143
|
+
:type lock_active: typing.Union[bool, typing.Any]
|
|
3097
3144
|
"""
|
|
3098
3145
|
|
|
3099
3146
|
...
|
|
3100
3147
|
|
|
3101
|
-
def vertex_group_remove_from(
|
|
3148
|
+
def vertex_group_remove_from(
|
|
3149
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3150
|
+
execution_context: typing.Union[str, int] = None,
|
|
3151
|
+
undo: bool = None,
|
|
3152
|
+
):
|
|
3102
3153
|
"""Remove the selected vertices from active or all vertex group(s)
|
|
3103
3154
|
|
|
3104
|
-
:type override_context: typing.
|
|
3105
|
-
:type execution_context: typing.
|
|
3106
|
-
:type undo:
|
|
3155
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3156
|
+
:type execution_context: typing.Union[str, int]
|
|
3157
|
+
:type undo: bool
|
|
3107
3158
|
"""
|
|
3108
3159
|
|
|
3109
3160
|
...
|
|
3110
3161
|
|
|
3111
|
-
def vertex_group_select(
|
|
3162
|
+
def vertex_group_select(
|
|
3163
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3164
|
+
execution_context: typing.Union[str, int] = None,
|
|
3165
|
+
undo: bool = None,
|
|
3166
|
+
):
|
|
3112
3167
|
"""Select all the vertices assigned to the active vertex group
|
|
3113
3168
|
|
|
3114
|
-
:type override_context: typing.
|
|
3115
|
-
:type execution_context: typing.
|
|
3116
|
-
:type undo:
|
|
3169
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3170
|
+
:type execution_context: typing.Union[str, int]
|
|
3171
|
+
:type undo: bool
|
|
3117
3172
|
"""
|
|
3118
3173
|
|
|
3119
3174
|
...
|
|
3120
3175
|
|
|
3121
3176
|
def vertex_group_smooth(
|
|
3122
|
-
override_context=None,
|
|
3123
|
-
execution_context=None,
|
|
3124
|
-
undo=None,
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
repeat: typing.Optional[typing.Any] = 1,
|
|
3177
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3178
|
+
execution_context: typing.Union[str, int] = None,
|
|
3179
|
+
undo: bool = None,
|
|
3180
|
+
factor: typing.Any = 0.5,
|
|
3181
|
+
repeat: typing.Any = 1,
|
|
3128
3182
|
):
|
|
3129
3183
|
"""Smooth weights to the active vertex group
|
|
3130
3184
|
|
|
3131
|
-
:type override_context: typing.
|
|
3132
|
-
:type execution_context: typing.
|
|
3133
|
-
:type undo:
|
|
3185
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3186
|
+
:type execution_context: typing.Union[str, int]
|
|
3187
|
+
:type undo: bool
|
|
3134
3188
|
:param factor: Factor
|
|
3135
|
-
:type factor: typing.
|
|
3189
|
+
:type factor: typing.Any
|
|
3136
3190
|
:param repeat: Iterations
|
|
3137
|
-
:type repeat: typing.
|
|
3191
|
+
:type repeat: typing.Any
|
|
3138
3192
|
"""
|
|
3139
3193
|
|
|
3140
3194
|
...
|
|
3141
3195
|
|
|
3142
3196
|
def vertex_paint(
|
|
3143
|
-
override_context=None,
|
|
3144
|
-
execution_context=None,
|
|
3145
|
-
undo=None,
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorStrokeElement"]
|
|
3149
|
-
] = None,
|
|
3150
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
3197
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3198
|
+
execution_context: typing.Union[str, int] = None,
|
|
3199
|
+
undo: bool = None,
|
|
3200
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
3201
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
3151
3202
|
):
|
|
3152
3203
|
"""Paint stroke points with a color
|
|
3153
3204
|
|
|
3154
|
-
:type override_context: typing.
|
|
3155
|
-
:type execution_context: typing.
|
|
3156
|
-
:type undo:
|
|
3205
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3206
|
+
:type execution_context: typing.Union[str, int]
|
|
3207
|
+
:type undo: bool
|
|
3157
3208
|
:param stroke: Stroke
|
|
3158
|
-
:type stroke:
|
|
3209
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
3159
3210
|
:param wait_for_input: Wait for Input
|
|
3160
|
-
:type wait_for_input: typing.
|
|
3211
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
3161
3212
|
"""
|
|
3162
3213
|
|
|
3163
3214
|
...
|
|
3164
3215
|
|
|
3165
3216
|
def vertexmode_toggle(
|
|
3166
|
-
override_context=None,
|
|
3167
|
-
execution_context=None,
|
|
3168
|
-
undo=None,
|
|
3169
|
-
|
|
3170
|
-
back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
3217
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3218
|
+
execution_context: typing.Union[str, int] = None,
|
|
3219
|
+
undo: bool = None,
|
|
3220
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
3171
3221
|
):
|
|
3172
3222
|
"""Enter/Exit vertex paint mode for Grease Pencil strokes
|
|
3173
3223
|
|
|
3174
|
-
:type override_context: typing.
|
|
3175
|
-
:type execution_context: typing.
|
|
3176
|
-
:type undo:
|
|
3224
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3225
|
+
:type execution_context: typing.Union[str, int]
|
|
3226
|
+
:type undo: bool
|
|
3177
3227
|
:param back: Return to Previous Mode, Return to previous mode
|
|
3178
|
-
:type back: typing.
|
|
3228
|
+
:type back: typing.Union[bool, typing.Any]
|
|
3179
3229
|
"""
|
|
3180
3230
|
|
|
3181
3231
|
...
|
|
3182
3232
|
|
|
3183
3233
|
def weight_paint(
|
|
3184
|
-
override_context=None,
|
|
3185
|
-
execution_context=None,
|
|
3186
|
-
undo=None,
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
bpy.types.bpy_prop_collection["bpy.types.OperatorStrokeElement"]
|
|
3190
|
-
] = None,
|
|
3191
|
-
wait_for_input: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
3234
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3235
|
+
execution_context: typing.Union[str, int] = None,
|
|
3236
|
+
undo: bool = None,
|
|
3237
|
+
stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement] = None,
|
|
3238
|
+
wait_for_input: typing.Union[bool, typing.Any] = True,
|
|
3192
3239
|
):
|
|
3193
3240
|
"""Draw weight on stroke points
|
|
3194
3241
|
|
|
3195
|
-
:type override_context: typing.
|
|
3196
|
-
:type execution_context: typing.
|
|
3197
|
-
:type undo:
|
|
3242
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3243
|
+
:type execution_context: typing.Union[str, int]
|
|
3244
|
+
:type undo: bool
|
|
3198
3245
|
:param stroke: Stroke
|
|
3199
|
-
:type stroke:
|
|
3246
|
+
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
3200
3247
|
:param wait_for_input: Wait for Input
|
|
3201
|
-
:type wait_for_input: typing.
|
|
3248
|
+
:type wait_for_input: typing.Union[bool, typing.Any]
|
|
3202
3249
|
"""
|
|
3203
3250
|
|
|
3204
3251
|
...
|
|
3205
3252
|
|
|
3206
|
-
def weight_sample(
|
|
3253
|
+
def weight_sample(
|
|
3254
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3255
|
+
execution_context: typing.Union[str, int] = None,
|
|
3256
|
+
undo: bool = None,
|
|
3257
|
+
):
|
|
3207
3258
|
"""Use the mouse to sample a weight in the 3D view
|
|
3208
3259
|
|
|
3209
|
-
:type override_context: typing.
|
|
3210
|
-
:type execution_context: typing.
|
|
3211
|
-
:type undo:
|
|
3260
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3261
|
+
:type execution_context: typing.Union[str, int]
|
|
3262
|
+
:type undo: bool
|
|
3212
3263
|
"""
|
|
3213
3264
|
|
|
3214
3265
|
...
|
|
3215
3266
|
|
|
3216
|
-
def weight_toggle_direction(
|
|
3267
|
+
def weight_toggle_direction(
|
|
3268
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3269
|
+
execution_context: typing.Union[str, int] = None,
|
|
3270
|
+
undo: bool = None,
|
|
3271
|
+
):
|
|
3217
3272
|
"""Toggle Add/Subtract for the weight paint draw tool
|
|
3218
3273
|
|
|
3219
|
-
:type override_context: typing.
|
|
3220
|
-
:type execution_context: typing.
|
|
3221
|
-
:type undo:
|
|
3274
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3275
|
+
:type execution_context: typing.Union[str, int]
|
|
3276
|
+
:type undo: bool
|
|
3222
3277
|
"""
|
|
3223
3278
|
|
|
3224
3279
|
...
|
|
3225
3280
|
|
|
3226
3281
|
def weightmode_toggle(
|
|
3227
|
-
override_context=None,
|
|
3228
|
-
execution_context=None,
|
|
3229
|
-
undo=None,
|
|
3230
|
-
|
|
3231
|
-
back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
3282
|
+
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
3283
|
+
execution_context: typing.Union[str, int] = None,
|
|
3284
|
+
undo: bool = None,
|
|
3285
|
+
back: typing.Union[bool, typing.Any] = False,
|
|
3232
3286
|
):
|
|
3233
3287
|
"""Enter/Exit weight paint mode for Grease Pencil strokes
|
|
3234
3288
|
|
|
3235
|
-
:type override_context: typing.
|
|
3236
|
-
:type execution_context: typing.
|
|
3237
|
-
:type undo:
|
|
3289
|
+
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
3290
|
+
:type execution_context: typing.Union[str, int]
|
|
3291
|
+
:type undo: bool
|
|
3238
3292
|
:param back: Return to Previous Mode, Return to previous mode
|
|
3239
|
-
:type back: typing.
|
|
3293
|
+
:type back: typing.Union[bool, typing.Any]
|
|
3240
3294
|
"""
|
|
3241
3295
|
|
|
3242
3296
|
...
|