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