fake-bpy-module 20240420__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 +336 -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 +331 -330
- 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 +103670 -100517
- 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-20240420.dist-info → fake_bpy_module-20240422.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240420.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-20240420.dist-info → fake_bpy_module-20240422.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240420.dist-info → fake_bpy_module-20240422.dist-info}/top_level.txt +0 -0
|
@@ -1,22 +1,25 @@
|
|
|
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 brush_stroke(
|
|
7
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
-
execution_context: typing.Union[str, int] = None,
|
|
9
|
-
undo: bool = None,
|
|
10
|
-
stroke:
|
|
11
|
-
|
|
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,
|
|
11
|
+
stroke: typing.Optional[
|
|
12
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
13
|
+
] = None,
|
|
14
|
+
mode: typing.Optional[typing.Any] = "NORMAL",
|
|
12
15
|
):
|
|
13
16
|
"""Draw a new stroke in the active Grease Pencil object
|
|
14
17
|
|
|
15
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
16
|
-
:type execution_context: typing.Union[str, int]
|
|
17
|
-
:type undo: bool
|
|
18
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
19
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
20
|
+
:type undo: typing.Optional[bool]
|
|
18
21
|
:param stroke: Stroke
|
|
19
|
-
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
22
|
+
:type stroke: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]]
|
|
20
23
|
:param mode: Stroke Mode, Action taken when a paint stroke is made
|
|
21
24
|
|
|
22
25
|
NORMAL
|
|
@@ -27,22 +30,22 @@ def brush_stroke(
|
|
|
27
30
|
|
|
28
31
|
SMOOTH
|
|
29
32
|
Smooth -- Switch brush to smooth mode for duration of stroke.
|
|
30
|
-
:type mode: typing.Any
|
|
33
|
+
:type mode: typing.Optional[typing.Any]
|
|
31
34
|
"""
|
|
32
35
|
|
|
33
36
|
...
|
|
34
37
|
|
|
35
38
|
def caps_set(
|
|
36
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
37
|
-
execution_context: typing.Union[str, int] = None,
|
|
38
|
-
undo: bool = None,
|
|
39
|
-
type: typing.Any = "ROUND",
|
|
39
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
40
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
41
|
+
undo: typing.Optional[bool] = None,
|
|
42
|
+
type: typing.Optional[typing.Any] = "ROUND",
|
|
40
43
|
):
|
|
41
44
|
"""Change curve caps mode (rounded or flat)
|
|
42
45
|
|
|
43
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
44
|
-
:type execution_context: typing.Union[str, int]
|
|
45
|
-
:type undo: bool
|
|
46
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
47
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
48
|
+
:type undo: typing.Optional[bool]
|
|
46
49
|
:param type: Type
|
|
47
50
|
|
|
48
51
|
ROUND
|
|
@@ -56,84 +59,84 @@ def caps_set(
|
|
|
56
59
|
|
|
57
60
|
END
|
|
58
61
|
Toggle End.
|
|
59
|
-
:type type: typing.Any
|
|
62
|
+
:type type: typing.Optional[typing.Any]
|
|
60
63
|
"""
|
|
61
64
|
|
|
62
65
|
...
|
|
63
66
|
|
|
64
67
|
def clean_loose(
|
|
65
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
66
|
-
execution_context: typing.Union[str, int] = None,
|
|
67
|
-
undo: bool = None,
|
|
68
|
-
limit: typing.Any = 1,
|
|
68
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
69
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
70
|
+
undo: typing.Optional[bool] = None,
|
|
71
|
+
limit: typing.Optional[typing.Any] = 1,
|
|
69
72
|
):
|
|
70
73
|
"""Remove loose points
|
|
71
74
|
|
|
72
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
73
|
-
:type execution_context: typing.Union[str, int]
|
|
74
|
-
:type undo: bool
|
|
75
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
76
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
77
|
+
:type undo: typing.Optional[bool]
|
|
75
78
|
:param limit: Limit, Number of points to consider stroke as loose
|
|
76
|
-
:type limit: typing.Any
|
|
79
|
+
:type limit: typing.Optional[typing.Any]
|
|
77
80
|
"""
|
|
78
81
|
|
|
79
82
|
...
|
|
80
83
|
|
|
81
84
|
def copy(
|
|
82
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
83
|
-
execution_context: typing.Union[str, int] = None,
|
|
84
|
-
undo: bool = None,
|
|
85
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
86
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
87
|
+
undo: typing.Optional[bool] = None,
|
|
85
88
|
):
|
|
86
89
|
"""Copy the selected Grease Pencil points or strokes to the internal clipboard
|
|
87
90
|
|
|
88
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
89
|
-
:type execution_context: typing.Union[str, int]
|
|
90
|
-
:type undo: bool
|
|
91
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
92
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
93
|
+
:type undo: typing.Optional[bool]
|
|
91
94
|
"""
|
|
92
95
|
|
|
93
96
|
...
|
|
94
97
|
|
|
95
98
|
def cyclical_set(
|
|
96
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
97
|
-
execution_context: typing.Union[str, int] = None,
|
|
98
|
-
undo: bool = None,
|
|
99
|
-
type: typing.Any = "TOGGLE",
|
|
99
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
100
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
101
|
+
undo: typing.Optional[bool] = None,
|
|
102
|
+
type: typing.Optional[typing.Any] = "TOGGLE",
|
|
100
103
|
):
|
|
101
104
|
"""Close or open the selected stroke adding a segment from last to first point
|
|
102
105
|
|
|
103
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
104
|
-
:type execution_context: typing.Union[str, int]
|
|
105
|
-
:type undo: bool
|
|
106
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
107
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
108
|
+
:type undo: typing.Optional[bool]
|
|
106
109
|
:param type: Type
|
|
107
|
-
:type type: typing.Any
|
|
110
|
+
:type type: typing.Optional[typing.Any]
|
|
108
111
|
"""
|
|
109
112
|
|
|
110
113
|
...
|
|
111
114
|
|
|
112
115
|
def delete(
|
|
113
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
114
|
-
execution_context: typing.Union[str, int] = None,
|
|
115
|
-
undo: bool = None,
|
|
116
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
117
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
118
|
+
undo: typing.Optional[bool] = None,
|
|
116
119
|
):
|
|
117
120
|
"""Delete selected strokes or points
|
|
118
121
|
|
|
119
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
120
|
-
:type execution_context: typing.Union[str, int]
|
|
121
|
-
:type undo: bool
|
|
122
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
123
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
124
|
+
:type undo: typing.Optional[bool]
|
|
122
125
|
"""
|
|
123
126
|
|
|
124
127
|
...
|
|
125
128
|
|
|
126
129
|
def delete_frame(
|
|
127
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
128
|
-
execution_context: typing.Union[str, int] = None,
|
|
129
|
-
undo: bool = None,
|
|
130
|
-
type: typing.Any = "ACTIVE_FRAME",
|
|
130
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
131
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
132
|
+
undo: typing.Optional[bool] = None,
|
|
133
|
+
type: typing.Optional[typing.Any] = "ACTIVE_FRAME",
|
|
131
134
|
):
|
|
132
135
|
"""Delete Grease Pencil Frame(s)
|
|
133
136
|
|
|
134
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
135
|
-
:type execution_context: typing.Union[str, int]
|
|
136
|
-
:type undo: bool
|
|
137
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
138
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
139
|
+
:type undo: typing.Optional[bool]
|
|
137
140
|
:param type: Type, Method used for deleting Grease Pencil frames
|
|
138
141
|
|
|
139
142
|
ACTIVE_FRAME
|
|
@@ -141,22 +144,22 @@ def delete_frame(
|
|
|
141
144
|
|
|
142
145
|
ALL_FRAMES
|
|
143
146
|
All Active Frames -- Delete active frames for all layers.
|
|
144
|
-
:type type: typing.Any
|
|
147
|
+
:type type: typing.Optional[typing.Any]
|
|
145
148
|
"""
|
|
146
149
|
|
|
147
150
|
...
|
|
148
151
|
|
|
149
152
|
def dissolve(
|
|
150
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
151
|
-
execution_context: typing.Union[str, int] = None,
|
|
152
|
-
undo: bool = None,
|
|
153
|
-
type: typing.Any = "POINTS",
|
|
153
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
154
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
155
|
+
undo: typing.Optional[bool] = None,
|
|
156
|
+
type: typing.Optional[typing.Any] = "POINTS",
|
|
154
157
|
):
|
|
155
158
|
"""Delete selected points without splitting strokes
|
|
156
159
|
|
|
157
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
158
|
-
:type execution_context: typing.Union[str, int]
|
|
159
|
-
:type undo: bool
|
|
160
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
161
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
162
|
+
:type undo: typing.Optional[bool]
|
|
160
163
|
:param type: Type, Method used for dissolving stroke points
|
|
161
164
|
|
|
162
165
|
POINTS
|
|
@@ -167,107 +170,107 @@ def dissolve(
|
|
|
167
170
|
|
|
168
171
|
UNSELECT
|
|
169
172
|
Dissolve Unselect -- Dissolve all unselected points.
|
|
170
|
-
:type type: typing.Any
|
|
173
|
+
:type type: typing.Optional[typing.Any]
|
|
171
174
|
"""
|
|
172
175
|
|
|
173
176
|
...
|
|
174
177
|
|
|
175
178
|
def draw_mode_toggle(
|
|
176
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
177
|
-
execution_context: typing.Union[str, int] = None,
|
|
178
|
-
undo: bool = None,
|
|
179
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
180
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
181
|
+
undo: typing.Optional[bool] = None,
|
|
179
182
|
):
|
|
180
183
|
"""Enter/Exit draw mode for grease pencil
|
|
181
184
|
|
|
182
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
183
|
-
:type execution_context: typing.Union[str, int]
|
|
184
|
-
:type undo: bool
|
|
185
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
186
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
187
|
+
:type undo: typing.Optional[bool]
|
|
185
188
|
"""
|
|
186
189
|
|
|
187
190
|
...
|
|
188
191
|
|
|
189
192
|
def duplicate(
|
|
190
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
191
|
-
execution_context: typing.Union[str, int] = None,
|
|
192
|
-
undo: bool = None,
|
|
193
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
194
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
195
|
+
undo: typing.Optional[bool] = None,
|
|
193
196
|
):
|
|
194
197
|
"""Duplicate the selected points
|
|
195
198
|
|
|
196
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
197
|
-
:type execution_context: typing.Union[str, int]
|
|
198
|
-
:type undo: bool
|
|
199
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
200
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
201
|
+
:type undo: typing.Optional[bool]
|
|
199
202
|
"""
|
|
200
203
|
|
|
201
204
|
...
|
|
202
205
|
|
|
203
206
|
def duplicate_move(
|
|
204
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
205
|
-
execution_context: typing.Union[str, int] = None,
|
|
206
|
-
undo: bool = None,
|
|
207
|
-
GREASE_PENCIL_OT_duplicate: typing.Any = None,
|
|
208
|
-
TRANSFORM_OT_translate: typing.
|
|
207
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
208
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
209
|
+
undo: typing.Optional[bool] = None,
|
|
210
|
+
GREASE_PENCIL_OT_duplicate: typing.Optional[typing.Any] = None,
|
|
211
|
+
TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate] = None,
|
|
209
212
|
):
|
|
210
213
|
"""Make copies of the selected Grease Pencil strokes and move them
|
|
211
214
|
|
|
212
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
213
|
-
:type execution_context: typing.Union[str, int]
|
|
214
|
-
:type undo: bool
|
|
215
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
216
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
217
|
+
:type undo: typing.Optional[bool]
|
|
215
218
|
:param GREASE_PENCIL_OT_duplicate: Duplicate, Duplicate the selected points
|
|
216
|
-
:type GREASE_PENCIL_OT_duplicate: typing.Any
|
|
219
|
+
:type GREASE_PENCIL_OT_duplicate: typing.Optional[typing.Any]
|
|
217
220
|
:param TRANSFORM_OT_translate: Move, Move selected items
|
|
218
|
-
:type TRANSFORM_OT_translate: typing.
|
|
221
|
+
:type TRANSFORM_OT_translate: typing.Optional[bpy.ops.transform.translate]
|
|
219
222
|
"""
|
|
220
223
|
|
|
221
224
|
...
|
|
222
225
|
|
|
223
226
|
def insert_blank_frame(
|
|
224
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
225
|
-
execution_context: typing.Union[str, int] = None,
|
|
226
|
-
undo: bool = None,
|
|
227
|
-
all_layers: typing.Union[bool, typing.Any] = False,
|
|
228
|
-
duration: typing.Any = 0,
|
|
227
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
228
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
229
|
+
undo: typing.Optional[bool] = None,
|
|
230
|
+
all_layers: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
231
|
+
duration: typing.Optional[typing.Any] = 0,
|
|
229
232
|
):
|
|
230
233
|
"""Insert a blank frame on the current scene frame
|
|
231
234
|
|
|
232
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
233
|
-
:type execution_context: typing.Union[str, int]
|
|
234
|
-
:type undo: bool
|
|
235
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
236
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
237
|
+
:type undo: typing.Optional[bool]
|
|
235
238
|
:param all_layers: All Layers, Insert a blank frame in all editable layers
|
|
236
|
-
:type all_layers: typing.Union[bool, typing.Any]
|
|
239
|
+
:type all_layers: typing.Optional[typing.Union[bool, typing.Any]]
|
|
237
240
|
:param duration: Duration
|
|
238
|
-
:type duration: typing.Any
|
|
241
|
+
:type duration: typing.Optional[typing.Any]
|
|
239
242
|
"""
|
|
240
243
|
|
|
241
244
|
...
|
|
242
245
|
|
|
243
246
|
def layer_active(
|
|
244
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
245
|
-
execution_context: typing.Union[str, int] = None,
|
|
246
|
-
undo: bool = None,
|
|
247
|
-
layer: typing.Any = 0,
|
|
247
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
248
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
249
|
+
undo: typing.Optional[bool] = None,
|
|
250
|
+
layer: typing.Optional[typing.Any] = 0,
|
|
248
251
|
):
|
|
249
252
|
"""Set the active Grease Pencil layer
|
|
250
253
|
|
|
251
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
252
|
-
:type execution_context: typing.Union[str, int]
|
|
253
|
-
:type undo: bool
|
|
254
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
255
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
256
|
+
:type undo: typing.Optional[bool]
|
|
254
257
|
:param layer: Grease Pencil Layer
|
|
255
|
-
:type layer: typing.Any
|
|
258
|
+
:type layer: typing.Optional[typing.Any]
|
|
256
259
|
"""
|
|
257
260
|
|
|
258
261
|
...
|
|
259
262
|
|
|
260
263
|
def layer_add(
|
|
261
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
262
|
-
execution_context: typing.Union[str, int] = None,
|
|
263
|
-
undo: bool = None,
|
|
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,
|
|
264
267
|
new_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
265
268
|
):
|
|
266
269
|
"""Add a new Grease Pencil layer in the active object
|
|
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 new_layer_name: Name, Name of the new layer
|
|
272
275
|
:type new_layer_name: typing.Union[str, typing.Any]
|
|
273
276
|
"""
|
|
@@ -275,33 +278,33 @@ def layer_add(
|
|
|
275
278
|
...
|
|
276
279
|
|
|
277
280
|
def layer_duplicate(
|
|
278
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
279
|
-
execution_context: typing.Union[str, int] = None,
|
|
280
|
-
undo: bool = None,
|
|
281
|
-
empty_keyframes: typing.Union[bool, typing.Any] = False,
|
|
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,
|
|
284
|
+
empty_keyframes: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
282
285
|
):
|
|
283
286
|
"""Make a copy of the active Grease Pencil layer
|
|
284
287
|
|
|
285
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
286
|
-
:type execution_context: typing.Union[str, int]
|
|
287
|
-
:type undo: bool
|
|
288
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
289
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
290
|
+
:type undo: typing.Optional[bool]
|
|
288
291
|
:param empty_keyframes: Empty Keyframes, Add Empty Keyframes
|
|
289
|
-
:type empty_keyframes: typing.Union[bool, typing.Any]
|
|
292
|
+
:type empty_keyframes: typing.Optional[typing.Union[bool, typing.Any]]
|
|
290
293
|
"""
|
|
291
294
|
|
|
292
295
|
...
|
|
293
296
|
|
|
294
297
|
def layer_group_add(
|
|
295
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
296
|
-
execution_context: typing.Union[str, int] = None,
|
|
297
|
-
undo: bool = None,
|
|
298
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
299
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
300
|
+
undo: typing.Optional[bool] = None,
|
|
298
301
|
new_layer_group_name: typing.Union[str, typing.Any] = "",
|
|
299
302
|
):
|
|
300
303
|
"""Add a new Grease Pencil layer group in the active object
|
|
301
304
|
|
|
302
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
303
|
-
:type execution_context: typing.Union[str, int]
|
|
304
|
-
:type undo: bool
|
|
305
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
306
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
307
|
+
:type undo: typing.Optional[bool]
|
|
305
308
|
:param new_layer_group_name: Name, Name of the new layer group
|
|
306
309
|
:type new_layer_group_name: typing.Union[str, typing.Any]
|
|
307
310
|
"""
|
|
@@ -309,67 +312,67 @@ def layer_group_add(
|
|
|
309
312
|
...
|
|
310
313
|
|
|
311
314
|
def layer_hide(
|
|
312
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
313
|
-
execution_context: typing.Union[str, int] = None,
|
|
314
|
-
undo: bool = None,
|
|
315
|
-
unselected: typing.Union[bool, typing.Any] = False,
|
|
315
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
316
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
317
|
+
undo: typing.Optional[bool] = None,
|
|
318
|
+
unselected: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
316
319
|
):
|
|
317
320
|
"""Hide selected/unselected Grease Pencil layers
|
|
318
321
|
|
|
319
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
320
|
-
:type execution_context: typing.Union[str, int]
|
|
321
|
-
:type undo: bool
|
|
322
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
323
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
324
|
+
:type undo: typing.Optional[bool]
|
|
322
325
|
:param unselected: Unselected, Hide unselected rather than selected layers
|
|
323
|
-
:type unselected: typing.Union[bool, typing.Any]
|
|
326
|
+
:type unselected: typing.Optional[typing.Union[bool, typing.Any]]
|
|
324
327
|
"""
|
|
325
328
|
|
|
326
329
|
...
|
|
327
330
|
|
|
328
331
|
def layer_isolate(
|
|
329
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
330
|
-
execution_context: typing.Union[str, int] = None,
|
|
331
|
-
undo: bool = None,
|
|
332
|
-
affect_visibility: typing.Union[bool, typing.Any] = False,
|
|
332
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
333
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
334
|
+
undo: typing.Optional[bool] = None,
|
|
335
|
+
affect_visibility: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
333
336
|
):
|
|
334
337
|
"""Make only active layer visible/editable
|
|
335
338
|
|
|
336
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
337
|
-
:type execution_context: typing.Union[str, int]
|
|
338
|
-
:type undo: bool
|
|
339
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
340
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
341
|
+
:type undo: typing.Optional[bool]
|
|
339
342
|
:param affect_visibility: Affect Visibility, Also affect the visibility
|
|
340
|
-
:type affect_visibility: typing.Union[bool, typing.Any]
|
|
343
|
+
:type affect_visibility: typing.Optional[typing.Union[bool, typing.Any]]
|
|
341
344
|
"""
|
|
342
345
|
|
|
343
346
|
...
|
|
344
347
|
|
|
345
348
|
def layer_lock_all(
|
|
346
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
347
|
-
execution_context: typing.Union[str, int] = None,
|
|
348
|
-
undo: bool = None,
|
|
349
|
-
lock: typing.Union[bool, typing.Any] = True,
|
|
349
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
350
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
351
|
+
undo: typing.Optional[bool] = None,
|
|
352
|
+
lock: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
350
353
|
):
|
|
351
354
|
"""Lock all Grease Pencil layers to prevent them from being accidentally modified
|
|
352
355
|
|
|
353
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
354
|
-
:type execution_context: typing.Union[str, int]
|
|
355
|
-
:type undo: bool
|
|
356
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
357
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
358
|
+
:type undo: typing.Optional[bool]
|
|
356
359
|
:param lock: Lock Value, Lock/Unlock all layers
|
|
357
|
-
:type lock: typing.Union[bool, typing.Any]
|
|
360
|
+
:type lock: typing.Optional[typing.Union[bool, typing.Any]]
|
|
358
361
|
"""
|
|
359
362
|
|
|
360
363
|
...
|
|
361
364
|
|
|
362
365
|
def layer_mask_add(
|
|
363
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
364
|
-
execution_context: typing.Union[str, int] = None,
|
|
365
|
-
undo: bool = None,
|
|
366
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
367
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
368
|
+
undo: typing.Optional[bool] = None,
|
|
366
369
|
name: typing.Union[str, typing.Any] = "",
|
|
367
370
|
):
|
|
368
371
|
"""Add new layer as masking
|
|
369
372
|
|
|
370
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
371
|
-
:type execution_context: typing.Union[str, int]
|
|
372
|
-
:type undo: bool
|
|
373
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
374
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
375
|
+
:type undo: typing.Optional[bool]
|
|
373
376
|
:param name: Layer, Name of the layer
|
|
374
377
|
:type name: typing.Union[str, typing.Any]
|
|
375
378
|
"""
|
|
@@ -377,273 +380,275 @@ def layer_mask_add(
|
|
|
377
380
|
...
|
|
378
381
|
|
|
379
382
|
def layer_mask_remove(
|
|
380
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
381
|
-
execution_context: typing.Union[str, int] = None,
|
|
382
|
-
undo: bool = None,
|
|
383
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
384
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
385
|
+
undo: typing.Optional[bool] = None,
|
|
383
386
|
):
|
|
384
387
|
"""Remove Layer Mask
|
|
385
388
|
|
|
386
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
387
|
-
:type execution_context: typing.Union[str, int]
|
|
388
|
-
:type undo: bool
|
|
389
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
390
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
391
|
+
:type undo: typing.Optional[bool]
|
|
389
392
|
"""
|
|
390
393
|
|
|
391
394
|
...
|
|
392
395
|
|
|
393
396
|
def layer_mask_reorder(
|
|
394
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
395
|
-
execution_context: typing.Union[str, int] = None,
|
|
396
|
-
undo: bool = None,
|
|
397
|
-
direction: typing.Any = "UP",
|
|
397
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
398
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
399
|
+
undo: typing.Optional[bool] = None,
|
|
400
|
+
direction: typing.Optional[typing.Any] = "UP",
|
|
398
401
|
):
|
|
399
402
|
"""Reorder the active Grease Pencil mask layer up/down in the list
|
|
400
403
|
|
|
401
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
402
|
-
:type execution_context: typing.Union[str, int]
|
|
403
|
-
:type undo: bool
|
|
404
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
405
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
406
|
+
:type undo: typing.Optional[bool]
|
|
404
407
|
:param direction: Direction
|
|
405
|
-
:type direction: typing.Any
|
|
408
|
+
:type direction: typing.Optional[typing.Any]
|
|
406
409
|
"""
|
|
407
410
|
|
|
408
411
|
...
|
|
409
412
|
|
|
410
413
|
def layer_remove(
|
|
411
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
412
|
-
execution_context: typing.Union[str, int] = None,
|
|
413
|
-
undo: bool = None,
|
|
414
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
415
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
416
|
+
undo: typing.Optional[bool] = None,
|
|
414
417
|
):
|
|
415
418
|
"""Remove the active Grease Pencil layer
|
|
416
419
|
|
|
417
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
418
|
-
:type execution_context: typing.Union[str, int]
|
|
419
|
-
:type undo: bool
|
|
420
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
421
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
422
|
+
:type undo: typing.Optional[bool]
|
|
420
423
|
"""
|
|
421
424
|
|
|
422
425
|
...
|
|
423
426
|
|
|
424
427
|
def layer_reorder(
|
|
425
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
426
|
-
execution_context: typing.Union[str, int] = None,
|
|
427
|
-
undo: bool = None,
|
|
428
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
429
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
430
|
+
undo: typing.Optional[bool] = None,
|
|
428
431
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
429
|
-
location: typing.Any = "ABOVE",
|
|
432
|
+
location: typing.Optional[typing.Any] = "ABOVE",
|
|
430
433
|
):
|
|
431
434
|
"""Reorder the active Grease Pencil layer
|
|
432
435
|
|
|
433
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
434
|
-
:type execution_context: typing.Union[str, int]
|
|
435
|
-
:type undo: bool
|
|
436
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
437
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
438
|
+
:type undo: typing.Optional[bool]
|
|
436
439
|
:param target_layer_name: Target Name, Name of the target layer
|
|
437
440
|
:type target_layer_name: typing.Union[str, typing.Any]
|
|
438
441
|
:param location: Location
|
|
439
|
-
:type location: typing.Any
|
|
442
|
+
:type location: typing.Optional[typing.Any]
|
|
440
443
|
"""
|
|
441
444
|
|
|
442
445
|
...
|
|
443
446
|
|
|
444
447
|
def layer_reveal(
|
|
445
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
446
|
-
execution_context: typing.Union[str, int] = None,
|
|
447
|
-
undo: bool = None,
|
|
448
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
449
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
450
|
+
undo: typing.Optional[bool] = None,
|
|
448
451
|
):
|
|
449
452
|
"""Show all Grease Pencil layers
|
|
450
453
|
|
|
451
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
452
|
-
:type execution_context: typing.Union[str, int]
|
|
453
|
-
:type undo: bool
|
|
454
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
455
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
456
|
+
:type undo: typing.Optional[bool]
|
|
454
457
|
"""
|
|
455
458
|
|
|
456
459
|
...
|
|
457
460
|
|
|
458
461
|
def material_copy_to_object(
|
|
459
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
460
|
-
execution_context: typing.Union[str, int] = None,
|
|
461
|
-
undo: bool = None,
|
|
462
|
-
only_active: typing.Union[bool, typing.Any] = True,
|
|
462
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
463
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
464
|
+
undo: typing.Optional[bool] = None,
|
|
465
|
+
only_active: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
463
466
|
):
|
|
464
467
|
"""Append Materials of the active Grease Pencil to other object
|
|
465
468
|
|
|
466
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
467
|
-
:type execution_context: typing.Union[str, int]
|
|
468
|
-
:type undo: bool
|
|
469
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
470
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
471
|
+
:type undo: typing.Optional[bool]
|
|
469
472
|
:param only_active: Only Active, Append only active material, uncheck to append all materials
|
|
470
|
-
:type only_active: typing.Union[bool, typing.Any]
|
|
473
|
+
:type only_active: typing.Optional[typing.Union[bool, typing.Any]]
|
|
471
474
|
"""
|
|
472
475
|
|
|
473
476
|
...
|
|
474
477
|
|
|
475
478
|
def material_hide(
|
|
476
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
477
|
-
execution_context: typing.Union[str, int] = None,
|
|
478
|
-
undo: bool = None,
|
|
479
|
-
invert: typing.Union[bool, typing.Any] = False,
|
|
479
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
480
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
481
|
+
undo: typing.Optional[bool] = None,
|
|
482
|
+
invert: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
480
483
|
):
|
|
481
484
|
"""Hide active/inactive Grease Pencil material(s)
|
|
482
485
|
|
|
483
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
484
|
-
:type execution_context: typing.Union[str, int]
|
|
485
|
-
:type undo: bool
|
|
486
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
487
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
488
|
+
:type undo: typing.Optional[bool]
|
|
486
489
|
:param invert: Invert, Hide inactive materials instead of the active one
|
|
487
|
-
:type invert: typing.Union[bool, typing.Any]
|
|
490
|
+
:type invert: typing.Optional[typing.Union[bool, typing.Any]]
|
|
488
491
|
"""
|
|
489
492
|
|
|
490
493
|
...
|
|
491
494
|
|
|
492
495
|
def material_lock_all(
|
|
493
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
494
|
-
execution_context: typing.Union[str, int] = None,
|
|
495
|
-
undo: bool = None,
|
|
496
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
497
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
498
|
+
undo: typing.Optional[bool] = None,
|
|
496
499
|
):
|
|
497
500
|
"""Lock all Grease Pencil materials to prevent them from being accidentally modified
|
|
498
501
|
|
|
499
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
500
|
-
:type execution_context: typing.Union[str, int]
|
|
501
|
-
:type undo: bool
|
|
502
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
503
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
504
|
+
:type undo: typing.Optional[bool]
|
|
502
505
|
"""
|
|
503
506
|
|
|
504
507
|
...
|
|
505
508
|
|
|
506
509
|
def material_lock_unselected(
|
|
507
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
508
|
-
execution_context: typing.Union[str, int] = None,
|
|
509
|
-
undo: bool = None,
|
|
510
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
511
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
512
|
+
undo: typing.Optional[bool] = None,
|
|
510
513
|
):
|
|
511
514
|
"""Lock any material not used in any selected stroke
|
|
512
515
|
|
|
513
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
514
|
-
:type execution_context: typing.Union[str, int]
|
|
515
|
-
:type undo: bool
|
|
516
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
517
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
518
|
+
:type undo: typing.Optional[bool]
|
|
516
519
|
"""
|
|
517
520
|
|
|
518
521
|
...
|
|
519
522
|
|
|
520
523
|
def material_lock_unused(
|
|
521
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
522
|
-
execution_context: typing.Union[str, int] = None,
|
|
523
|
-
undo: bool = None,
|
|
524
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
525
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
526
|
+
undo: typing.Optional[bool] = None,
|
|
524
527
|
):
|
|
525
528
|
"""Lock and hide any material not used
|
|
526
529
|
|
|
527
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
528
|
-
:type execution_context: typing.Union[str, int]
|
|
529
|
-
:type undo: bool
|
|
530
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
531
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
532
|
+
:type undo: typing.Optional[bool]
|
|
530
533
|
"""
|
|
531
534
|
|
|
532
535
|
...
|
|
533
536
|
|
|
534
537
|
def material_reveal(
|
|
535
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
536
|
-
execution_context: typing.Union[str, int] = None,
|
|
537
|
-
undo: bool = None,
|
|
538
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
539
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
540
|
+
undo: typing.Optional[bool] = None,
|
|
538
541
|
):
|
|
539
542
|
"""Unhide all hidden Grease Pencil materials
|
|
540
543
|
|
|
541
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
542
|
-
:type execution_context: typing.Union[str, int]
|
|
543
|
-
:type undo: bool
|
|
544
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
545
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
546
|
+
:type undo: typing.Optional[bool]
|
|
544
547
|
"""
|
|
545
548
|
|
|
546
549
|
...
|
|
547
550
|
|
|
548
551
|
def material_select(
|
|
549
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
550
|
-
execution_context: typing.Union[str, int] = None,
|
|
551
|
-
undo: bool = None,
|
|
552
|
-
deselect: typing.Union[bool, typing.Any] = False,
|
|
552
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
553
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
554
|
+
undo: typing.Optional[bool] = None,
|
|
555
|
+
deselect: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
553
556
|
):
|
|
554
557
|
"""Select/Deselect all Grease Pencil strokes using current material
|
|
555
558
|
|
|
556
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
557
|
-
:type execution_context: typing.Union[str, int]
|
|
558
|
-
:type undo: bool
|
|
559
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
560
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
561
|
+
:type undo: typing.Optional[bool]
|
|
559
562
|
:param deselect: Deselect, Unselect strokes
|
|
560
|
-
:type deselect: typing.Union[bool, typing.Any]
|
|
563
|
+
:type deselect: typing.Optional[typing.Union[bool, typing.Any]]
|
|
561
564
|
"""
|
|
562
565
|
|
|
563
566
|
...
|
|
564
567
|
|
|
565
568
|
def material_unlock_all(
|
|
566
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
567
|
-
execution_context: typing.Union[str, int] = None,
|
|
568
|
-
undo: bool = None,
|
|
569
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
570
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
571
|
+
undo: typing.Optional[bool] = None,
|
|
569
572
|
):
|
|
570
573
|
"""Unlock all Grease Pencil materials so that they can be edited
|
|
571
574
|
|
|
572
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
573
|
-
:type execution_context: typing.Union[str, int]
|
|
574
|
-
:type undo: bool
|
|
575
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
576
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
577
|
+
:type undo: typing.Optional[bool]
|
|
575
578
|
"""
|
|
576
579
|
|
|
577
580
|
...
|
|
578
581
|
|
|
579
582
|
def move_to_layer(
|
|
580
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
581
|
-
execution_context: typing.Union[str, int] = None,
|
|
582
|
-
undo: bool = None,
|
|
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,
|
|
583
586
|
target_layer_name: typing.Union[str, typing.Any] = "Layer",
|
|
584
|
-
add_new_layer: typing.Union[bool, typing.Any] = False,
|
|
587
|
+
add_new_layer: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
585
588
|
):
|
|
586
589
|
"""Move selected strokes to another layer
|
|
587
590
|
|
|
588
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
589
|
-
:type execution_context: typing.Union[str, int]
|
|
590
|
-
: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]
|
|
591
594
|
:param target_layer_name: Name, Target Grease Pencil Layer
|
|
592
595
|
:type target_layer_name: typing.Union[str, typing.Any]
|
|
593
596
|
:param add_new_layer: New Layer, Move selection to a new layer
|
|
594
|
-
:type add_new_layer: typing.Union[bool, typing.Any]
|
|
597
|
+
:type add_new_layer: typing.Optional[typing.Union[bool, typing.Any]]
|
|
595
598
|
"""
|
|
596
599
|
|
|
597
600
|
...
|
|
598
601
|
|
|
599
602
|
def paste(
|
|
600
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
601
|
-
execution_context: typing.Union[str, int] = None,
|
|
602
|
-
undo: bool = None,
|
|
603
|
-
paste_back: typing.Union[bool, typing.Any] = False,
|
|
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,
|
|
606
|
+
paste_back: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
604
607
|
):
|
|
605
608
|
"""Paste Grease Pencil points or strokes from the internal clipboard to the active layer
|
|
606
609
|
|
|
607
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
608
|
-
:type execution_context: typing.Union[str, int]
|
|
609
|
-
:type undo: bool
|
|
610
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
611
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
612
|
+
:type undo: typing.Optional[bool]
|
|
610
613
|
:param paste_back: Paste on Back, Add pasted strokes behind all strokes
|
|
611
|
-
:type paste_back: typing.Union[bool, typing.Any]
|
|
614
|
+
:type paste_back: typing.Optional[typing.Union[bool, typing.Any]]
|
|
612
615
|
"""
|
|
613
616
|
|
|
614
617
|
...
|
|
615
618
|
|
|
616
619
|
def reorder(
|
|
617
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
618
|
-
execution_context: typing.Union[str, int] = None,
|
|
619
|
-
undo: bool = None,
|
|
620
|
-
direction: typing.Any = "TOP",
|
|
620
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
621
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
622
|
+
undo: typing.Optional[bool] = None,
|
|
623
|
+
direction: typing.Optional[typing.Any] = "TOP",
|
|
621
624
|
):
|
|
622
625
|
"""Change the display order of the selected strokes
|
|
623
626
|
|
|
624
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
625
|
-
:type execution_context: typing.Union[str, int]
|
|
626
|
-
:type undo: bool
|
|
627
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
628
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
629
|
+
:type undo: typing.Optional[bool]
|
|
627
630
|
:param direction: Direction
|
|
628
|
-
:type direction: typing.Any
|
|
631
|
+
:type direction: typing.Optional[typing.Any]
|
|
629
632
|
"""
|
|
630
633
|
|
|
631
634
|
...
|
|
632
635
|
|
|
633
636
|
def sculpt_paint(
|
|
634
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
635
|
-
execution_context: typing.Union[str, int] = None,
|
|
636
|
-
undo: bool = None,
|
|
637
|
-
stroke:
|
|
638
|
-
|
|
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
|
+
stroke: typing.Optional[
|
|
641
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
642
|
+
] = None,
|
|
643
|
+
mode: typing.Optional[typing.Any] = "NORMAL",
|
|
639
644
|
):
|
|
640
645
|
"""Draw a new stroke in the active Grease Pencil object
|
|
641
646
|
|
|
642
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
643
|
-
:type execution_context: typing.Union[str, int]
|
|
644
|
-
:type undo: bool
|
|
647
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
648
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
649
|
+
:type undo: typing.Optional[bool]
|
|
645
650
|
:param stroke: Stroke
|
|
646
|
-
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
651
|
+
:type stroke: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]]
|
|
647
652
|
:param mode: Stroke Mode, Action taken when a paint stroke is made
|
|
648
653
|
|
|
649
654
|
NORMAL
|
|
@@ -654,22 +659,22 @@ def sculpt_paint(
|
|
|
654
659
|
|
|
655
660
|
SMOOTH
|
|
656
661
|
Smooth -- Switch brush to smooth mode for duration of stroke.
|
|
657
|
-
:type mode: typing.Any
|
|
662
|
+
:type mode: typing.Optional[typing.Any]
|
|
658
663
|
"""
|
|
659
664
|
|
|
660
665
|
...
|
|
661
666
|
|
|
662
667
|
def select_all(
|
|
663
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
664
|
-
execution_context: typing.Union[str, int] = None,
|
|
665
|
-
undo: bool = None,
|
|
666
|
-
action: typing.Any = "TOGGLE",
|
|
668
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
669
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
670
|
+
undo: typing.Optional[bool] = None,
|
|
671
|
+
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
667
672
|
):
|
|
668
673
|
"""(De)select all visible strokes
|
|
669
674
|
|
|
670
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
671
|
-
:type execution_context: typing.Union[str, int]
|
|
672
|
-
:type undo: bool
|
|
675
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
676
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
677
|
+
:type undo: typing.Optional[bool]
|
|
673
678
|
:param action: Action, Selection action to execute
|
|
674
679
|
|
|
675
680
|
TOGGLE
|
|
@@ -683,107 +688,107 @@ def select_all(
|
|
|
683
688
|
|
|
684
689
|
INVERT
|
|
685
690
|
Invert -- Invert selection of all elements.
|
|
686
|
-
:type action: typing.Any
|
|
691
|
+
:type action: typing.Optional[typing.Any]
|
|
687
692
|
"""
|
|
688
693
|
|
|
689
694
|
...
|
|
690
695
|
|
|
691
696
|
def select_alternate(
|
|
692
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
693
|
-
execution_context: typing.Union[str, int] = None,
|
|
694
|
-
undo: bool = None,
|
|
695
|
-
deselect_ends: typing.Union[bool, typing.Any] = False,
|
|
697
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
698
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
699
|
+
undo: typing.Optional[bool] = None,
|
|
700
|
+
deselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
696
701
|
):
|
|
697
702
|
"""Select alternated points in strokes with already selected points
|
|
698
703
|
|
|
699
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
700
|
-
:type execution_context: typing.Union[str, int]
|
|
701
|
-
:type undo: bool
|
|
704
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
705
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
706
|
+
:type undo: typing.Optional[bool]
|
|
702
707
|
:param deselect_ends: Deselect Ends, (De)select the first and last point of each stroke
|
|
703
|
-
:type deselect_ends: typing.Union[bool, typing.Any]
|
|
708
|
+
:type deselect_ends: typing.Optional[typing.Union[bool, typing.Any]]
|
|
704
709
|
"""
|
|
705
710
|
|
|
706
711
|
...
|
|
707
712
|
|
|
708
713
|
def select_ends(
|
|
709
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
710
|
-
execution_context: typing.Union[str, int] = None,
|
|
711
|
-
undo: bool = None,
|
|
712
|
-
amount_start: typing.Any = 0,
|
|
713
|
-
amount_end: typing.Any = 1,
|
|
714
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
715
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
716
|
+
undo: typing.Optional[bool] = None,
|
|
717
|
+
amount_start: typing.Optional[typing.Any] = 0,
|
|
718
|
+
amount_end: typing.Optional[typing.Any] = 1,
|
|
714
719
|
):
|
|
715
720
|
"""Select end points of strokes
|
|
716
721
|
|
|
717
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
718
|
-
:type execution_context: typing.Union[str, int]
|
|
719
|
-
:type undo: bool
|
|
722
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
723
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
724
|
+
:type undo: typing.Optional[bool]
|
|
720
725
|
:param amount_start: Amount Start, Number of points to select from the start
|
|
721
|
-
:type amount_start: typing.Any
|
|
726
|
+
:type amount_start: typing.Optional[typing.Any]
|
|
722
727
|
:param amount_end: Amount End, Number of points to select from the end
|
|
723
|
-
:type amount_end: typing.Any
|
|
728
|
+
:type amount_end: typing.Optional[typing.Any]
|
|
724
729
|
"""
|
|
725
730
|
|
|
726
731
|
...
|
|
727
732
|
|
|
728
733
|
def select_less(
|
|
729
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
730
|
-
execution_context: typing.Union[str, int] = None,
|
|
731
|
-
undo: bool = None,
|
|
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,
|
|
732
737
|
):
|
|
733
738
|
"""Shrink the selection by one point
|
|
734
739
|
|
|
735
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
736
|
-
:type execution_context: typing.Union[str, int]
|
|
737
|
-
:type undo: bool
|
|
740
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
741
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
742
|
+
:type undo: typing.Optional[bool]
|
|
738
743
|
"""
|
|
739
744
|
|
|
740
745
|
...
|
|
741
746
|
|
|
742
747
|
def select_linked(
|
|
743
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
744
|
-
execution_context: typing.Union[str, int] = None,
|
|
745
|
-
undo: bool = None,
|
|
748
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
749
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
750
|
+
undo: typing.Optional[bool] = None,
|
|
746
751
|
):
|
|
747
752
|
"""Select all points in curves with any point selection
|
|
748
753
|
|
|
749
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
750
|
-
:type execution_context: typing.Union[str, int]
|
|
751
|
-
:type undo: bool
|
|
754
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
755
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
756
|
+
:type undo: typing.Optional[bool]
|
|
752
757
|
"""
|
|
753
758
|
|
|
754
759
|
...
|
|
755
760
|
|
|
756
761
|
def select_more(
|
|
757
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
758
|
-
execution_context: typing.Union[str, int] = None,
|
|
759
|
-
undo: bool = None,
|
|
762
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
763
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
764
|
+
undo: typing.Optional[bool] = None,
|
|
760
765
|
):
|
|
761
766
|
"""Grow the selection by one point
|
|
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
|
"""
|
|
767
772
|
|
|
768
773
|
...
|
|
769
774
|
|
|
770
775
|
def select_random(
|
|
771
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
772
|
-
execution_context: typing.Union[str, int] = None,
|
|
773
|
-
undo: bool = None,
|
|
774
|
-
ratio: typing.Any = 0.5,
|
|
775
|
-
seed: typing.Any = 0,
|
|
776
|
-
action: typing.Any = "SELECT",
|
|
776
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
777
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
778
|
+
undo: typing.Optional[bool] = None,
|
|
779
|
+
ratio: typing.Optional[typing.Any] = 0.5,
|
|
780
|
+
seed: typing.Optional[typing.Any] = 0,
|
|
781
|
+
action: typing.Optional[typing.Any] = "SELECT",
|
|
777
782
|
):
|
|
778
783
|
"""Selects random points from the current strokes selection
|
|
779
784
|
|
|
780
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
781
|
-
:type execution_context: typing.Union[str, int]
|
|
782
|
-
:type undo: bool
|
|
785
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
786
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
787
|
+
:type undo: typing.Optional[bool]
|
|
783
788
|
:param ratio: Ratio, Portion of items to select randomly
|
|
784
|
-
:type ratio: typing.Any
|
|
789
|
+
:type ratio: typing.Optional[typing.Any]
|
|
785
790
|
:param seed: Random Seed, Seed for the random number generator
|
|
786
|
-
:type seed: typing.Any
|
|
791
|
+
:type seed: typing.Optional[typing.Any]
|
|
787
792
|
:param action: Action, Selection action to execute
|
|
788
793
|
|
|
789
794
|
SELECT
|
|
@@ -791,22 +796,22 @@ def select_random(
|
|
|
791
796
|
|
|
792
797
|
DESELECT
|
|
793
798
|
Deselect -- Deselect all elements.
|
|
794
|
-
:type action: typing.Any
|
|
799
|
+
:type action: typing.Optional[typing.Any]
|
|
795
800
|
"""
|
|
796
801
|
|
|
797
802
|
...
|
|
798
803
|
|
|
799
804
|
def separate(
|
|
800
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
801
|
-
execution_context: typing.Union[str, int] = None,
|
|
802
|
-
undo: bool = None,
|
|
803
|
-
mode: typing.Any = "SELECTED",
|
|
805
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
806
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
807
|
+
undo: typing.Optional[bool] = None,
|
|
808
|
+
mode: typing.Optional[typing.Any] = "SELECTED",
|
|
804
809
|
):
|
|
805
810
|
"""Separate the selected geometry into a new grease pencil object
|
|
806
811
|
|
|
807
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
808
|
-
:type execution_context: typing.Union[str, int]
|
|
809
|
-
:type undo: bool
|
|
812
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
813
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
814
|
+
:type undo: typing.Optional[bool]
|
|
810
815
|
:param mode: Mode
|
|
811
816
|
|
|
812
817
|
SELECTED
|
|
@@ -817,104 +822,104 @@ def separate(
|
|
|
817
822
|
|
|
818
823
|
LAYER
|
|
819
824
|
By Layer -- Separate by layer.
|
|
820
|
-
:type mode: typing.Any
|
|
825
|
+
:type mode: typing.Optional[typing.Any]
|
|
821
826
|
"""
|
|
822
827
|
|
|
823
828
|
...
|
|
824
829
|
|
|
825
830
|
def set_active_material(
|
|
826
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
827
|
-
execution_context: typing.Union[str, int] = None,
|
|
828
|
-
undo: bool = None,
|
|
831
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
832
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
833
|
+
undo: typing.Optional[bool] = None,
|
|
829
834
|
):
|
|
830
835
|
"""Set the selected stroke material as the active material
|
|
831
836
|
|
|
832
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
833
|
-
:type execution_context: typing.Union[str, int]
|
|
834
|
-
:type undo: bool
|
|
837
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
838
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
839
|
+
:type undo: typing.Optional[bool]
|
|
835
840
|
"""
|
|
836
841
|
|
|
837
842
|
...
|
|
838
843
|
|
|
839
844
|
def set_material(
|
|
840
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
841
|
-
execution_context: typing.Union[str, int] = None,
|
|
842
|
-
undo: bool = None,
|
|
843
|
-
slot: typing.Union[str, int, typing.Any] = "DEFAULT",
|
|
845
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
846
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
847
|
+
undo: typing.Optional[bool] = None,
|
|
848
|
+
slot: typing.Optional[typing.Union[str, int, typing.Any]] = "DEFAULT",
|
|
844
849
|
):
|
|
845
850
|
"""Set active material
|
|
846
851
|
|
|
847
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
848
|
-
:type execution_context: typing.Union[str, int]
|
|
849
|
-
:type undo: bool
|
|
852
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
853
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
854
|
+
:type undo: typing.Optional[bool]
|
|
850
855
|
:param slot: Material Slot
|
|
851
|
-
:type slot: typing.Union[str, int, typing.Any]
|
|
856
|
+
:type slot: typing.Optional[typing.Union[str, int, typing.Any]]
|
|
852
857
|
"""
|
|
853
858
|
|
|
854
859
|
...
|
|
855
860
|
|
|
856
861
|
def set_selection_mode(
|
|
857
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
858
|
-
execution_context: typing.Union[str, int] = None,
|
|
859
|
-
undo: bool = None,
|
|
860
|
-
mode: typing.Union[str, int] = "POINT",
|
|
862
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
863
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
864
|
+
undo: typing.Optional[bool] = None,
|
|
865
|
+
mode: typing.Optional[typing.Union[str, int]] = "POINT",
|
|
861
866
|
):
|
|
862
867
|
"""Change the selection mode for Grease Pencil strokes
|
|
863
868
|
|
|
864
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
865
|
-
:type execution_context: typing.Union[str, int]
|
|
866
|
-
:type undo: bool
|
|
869
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
870
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
871
|
+
:type undo: typing.Optional[bool]
|
|
867
872
|
:param mode: Mode
|
|
868
|
-
:type mode: typing.Union[str, int]
|
|
873
|
+
:type mode: typing.Optional[typing.Union[str, int]]
|
|
869
874
|
"""
|
|
870
875
|
|
|
871
876
|
...
|
|
872
877
|
|
|
873
878
|
def set_uniform_opacity(
|
|
874
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
875
|
-
execution_context: typing.Union[str, int] = None,
|
|
876
|
-
undo: bool = None,
|
|
877
|
-
opacity: typing.Any = 1.0,
|
|
879
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
880
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
881
|
+
undo: typing.Optional[bool] = None,
|
|
882
|
+
opacity: typing.Optional[typing.Any] = 1.0,
|
|
878
883
|
):
|
|
879
884
|
"""Set all stroke points to same opacity
|
|
880
885
|
|
|
881
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
882
|
-
:type execution_context: typing.Union[str, int]
|
|
883
|
-
:type undo: bool
|
|
886
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
887
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
888
|
+
:type undo: typing.Optional[bool]
|
|
884
889
|
:param opacity: Opacity
|
|
885
|
-
:type opacity: typing.Any
|
|
890
|
+
:type opacity: typing.Optional[typing.Any]
|
|
886
891
|
"""
|
|
887
892
|
|
|
888
893
|
...
|
|
889
894
|
|
|
890
895
|
def set_uniform_thickness(
|
|
891
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
892
|
-
execution_context: typing.Union[str, int] = None,
|
|
893
|
-
undo: bool = None,
|
|
894
|
-
thickness: typing.Any = 0.1,
|
|
896
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
897
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
898
|
+
undo: typing.Optional[bool] = None,
|
|
899
|
+
thickness: typing.Optional[typing.Any] = 0.1,
|
|
895
900
|
):
|
|
896
901
|
"""Set all stroke points to same thickness
|
|
897
902
|
|
|
898
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
899
|
-
:type execution_context: typing.Union[str, int]
|
|
900
|
-
:type undo: bool
|
|
903
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
904
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
905
|
+
:type undo: typing.Optional[bool]
|
|
901
906
|
:param thickness: Thickness, Thickness
|
|
902
|
-
:type thickness: typing.Any
|
|
907
|
+
:type thickness: typing.Optional[typing.Any]
|
|
903
908
|
"""
|
|
904
909
|
|
|
905
910
|
...
|
|
906
911
|
|
|
907
912
|
def stroke_material_set(
|
|
908
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
909
|
-
execution_context: typing.Union[str, int] = None,
|
|
910
|
-
undo: bool = None,
|
|
913
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
914
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
915
|
+
undo: typing.Optional[bool] = None,
|
|
911
916
|
material: typing.Union[str, typing.Any] = "",
|
|
912
917
|
):
|
|
913
918
|
"""Assign the active material slot to the selected strokes
|
|
914
919
|
|
|
915
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
916
|
-
:type execution_context: typing.Union[str, int]
|
|
917
|
-
:type undo: bool
|
|
920
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
921
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
922
|
+
:type undo: typing.Optional[bool]
|
|
918
923
|
:param material: Material, Name of the material
|
|
919
924
|
:type material: typing.Union[str, typing.Any]
|
|
920
925
|
"""
|
|
@@ -922,107 +927,107 @@ def stroke_material_set(
|
|
|
922
927
|
...
|
|
923
928
|
|
|
924
929
|
def stroke_simplify(
|
|
925
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
926
|
-
execution_context: typing.Union[str, int] = None,
|
|
927
|
-
undo: bool = None,
|
|
928
|
-
factor: typing.Any = 0.01,
|
|
930
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
931
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
932
|
+
undo: typing.Optional[bool] = None,
|
|
933
|
+
factor: typing.Optional[typing.Any] = 0.01,
|
|
929
934
|
):
|
|
930
935
|
"""Simplify selected strokes
|
|
931
936
|
|
|
932
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
933
|
-
:type execution_context: typing.Union[str, int]
|
|
934
|
-
:type undo: bool
|
|
937
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
938
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
939
|
+
:type undo: typing.Optional[bool]
|
|
935
940
|
:param factor: Factor
|
|
936
|
-
:type factor: typing.Any
|
|
941
|
+
:type factor: typing.Optional[typing.Any]
|
|
937
942
|
"""
|
|
938
943
|
|
|
939
944
|
...
|
|
940
945
|
|
|
941
946
|
def stroke_smooth(
|
|
942
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
943
|
-
execution_context: typing.Union[str, int] = None,
|
|
944
|
-
undo: bool = None,
|
|
945
|
-
iterations: typing.Any = 10,
|
|
946
|
-
factor: typing.Any = 1.0,
|
|
947
|
-
smooth_ends: typing.Union[bool, typing.Any] = False,
|
|
948
|
-
keep_shape: typing.Union[bool, typing.Any] = False,
|
|
949
|
-
smooth_position: typing.Union[bool, typing.Any] = True,
|
|
950
|
-
smooth_radius: typing.Union[bool, typing.Any] = True,
|
|
951
|
-
smooth_opacity: typing.Union[bool, typing.Any] = False,
|
|
947
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
948
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
949
|
+
undo: typing.Optional[bool] = None,
|
|
950
|
+
iterations: typing.Optional[typing.Any] = 10,
|
|
951
|
+
factor: typing.Optional[typing.Any] = 1.0,
|
|
952
|
+
smooth_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
953
|
+
keep_shape: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
954
|
+
smooth_position: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
955
|
+
smooth_radius: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
956
|
+
smooth_opacity: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
952
957
|
):
|
|
953
958
|
"""Smooth selected strokes
|
|
954
959
|
|
|
955
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
956
|
-
:type execution_context: typing.Union[str, int]
|
|
957
|
-
:type undo: bool
|
|
960
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
961
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
962
|
+
:type undo: typing.Optional[bool]
|
|
958
963
|
:param iterations: Iterations
|
|
959
|
-
:type iterations: typing.Any
|
|
964
|
+
:type iterations: typing.Optional[typing.Any]
|
|
960
965
|
:param factor: Factor
|
|
961
|
-
:type factor: typing.Any
|
|
966
|
+
:type factor: typing.Optional[typing.Any]
|
|
962
967
|
:param smooth_ends: Smooth Endpoints
|
|
963
|
-
:type smooth_ends: typing.Union[bool, typing.Any]
|
|
968
|
+
:type smooth_ends: typing.Optional[typing.Union[bool, typing.Any]]
|
|
964
969
|
:param keep_shape: Keep Shape
|
|
965
|
-
:type keep_shape: typing.Union[bool, typing.Any]
|
|
970
|
+
:type keep_shape: typing.Optional[typing.Union[bool, typing.Any]]
|
|
966
971
|
:param smooth_position: Position
|
|
967
|
-
:type smooth_position: typing.Union[bool, typing.Any]
|
|
972
|
+
:type smooth_position: typing.Optional[typing.Union[bool, typing.Any]]
|
|
968
973
|
:param smooth_radius: Radius
|
|
969
|
-
:type smooth_radius: typing.Union[bool, typing.Any]
|
|
974
|
+
:type smooth_radius: typing.Optional[typing.Union[bool, typing.Any]]
|
|
970
975
|
:param smooth_opacity: Opacity
|
|
971
|
-
:type smooth_opacity: typing.Union[bool, typing.Any]
|
|
976
|
+
:type smooth_opacity: typing.Optional[typing.Union[bool, typing.Any]]
|
|
972
977
|
"""
|
|
973
978
|
|
|
974
979
|
...
|
|
975
980
|
|
|
976
981
|
def stroke_subdivide(
|
|
977
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
978
|
-
execution_context: typing.Union[str, int] = None,
|
|
979
|
-
undo: bool = None,
|
|
980
|
-
number_cuts: typing.Any = 1,
|
|
981
|
-
only_selected: typing.Union[bool, typing.Any] = True,
|
|
982
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
983
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
984
|
+
undo: typing.Optional[bool] = None,
|
|
985
|
+
number_cuts: typing.Optional[typing.Any] = 1,
|
|
986
|
+
only_selected: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
982
987
|
):
|
|
983
988
|
"""Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
984
989
|
|
|
985
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
986
|
-
:type execution_context: typing.Union[str, int]
|
|
987
|
-
:type undo: bool
|
|
990
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
991
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
992
|
+
:type undo: typing.Optional[bool]
|
|
988
993
|
:param number_cuts: Number of Cuts
|
|
989
|
-
:type number_cuts: typing.Any
|
|
994
|
+
:type number_cuts: typing.Optional[typing.Any]
|
|
990
995
|
:param only_selected: Selected Points, Smooth only selected points in the stroke
|
|
991
|
-
:type only_selected: typing.Union[bool, typing.Any]
|
|
996
|
+
:type only_selected: typing.Optional[typing.Union[bool, typing.Any]]
|
|
992
997
|
"""
|
|
993
998
|
|
|
994
999
|
...
|
|
995
1000
|
|
|
996
1001
|
def stroke_subdivide_smooth(
|
|
997
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
998
|
-
execution_context: typing.Union[str, int] = None,
|
|
999
|
-
undo: bool = None,
|
|
1000
|
-
GREASE_PENCIL_OT_stroke_subdivide: typing.Any = None,
|
|
1001
|
-
GREASE_PENCIL_OT_stroke_smooth: typing.Any = None,
|
|
1002
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1003
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1004
|
+
undo: typing.Optional[bool] = None,
|
|
1005
|
+
GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any] = None,
|
|
1006
|
+
GREASE_PENCIL_OT_stroke_smooth: typing.Optional[typing.Any] = None,
|
|
1002
1007
|
):
|
|
1003
1008
|
"""Subdivide strokes and smooth them
|
|
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
|
:param GREASE_PENCIL_OT_stroke_subdivide: Subdivide Stroke, Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
1009
|
-
:type GREASE_PENCIL_OT_stroke_subdivide: typing.Any
|
|
1014
|
+
:type GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any]
|
|
1010
1015
|
:param GREASE_PENCIL_OT_stroke_smooth: Smooth Stroke, Smooth selected strokes
|
|
1011
|
-
:type GREASE_PENCIL_OT_stroke_smooth: typing.Any
|
|
1016
|
+
:type GREASE_PENCIL_OT_stroke_smooth: typing.Optional[typing.Any]
|
|
1012
1017
|
"""
|
|
1013
1018
|
|
|
1014
1019
|
...
|
|
1015
1020
|
|
|
1016
1021
|
def stroke_switch_direction(
|
|
1017
|
-
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
1018
|
-
execution_context: typing.Union[str, int] = None,
|
|
1019
|
-
undo: bool = None,
|
|
1022
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1023
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1024
|
+
undo: typing.Optional[bool] = None,
|
|
1020
1025
|
):
|
|
1021
1026
|
"""Change direction of the points of the selected strokes
|
|
1022
1027
|
|
|
1023
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1024
|
-
:type execution_context: typing.Union[str, int]
|
|
1025
|
-
:type undo: bool
|
|
1028
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1029
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1030
|
+
:type undo: typing.Optional[bool]
|
|
1026
1031
|
"""
|
|
1027
1032
|
|
|
1028
1033
|
...
|