fake-bpy-module 20240421__py3-none-any.whl → 20240423__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- 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 +52 -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 +580 -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 +2418 -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 +105733 -102298
- bpy/utils/__init__.pyi +87 -52
- bpy/utils/previews/__init__.pyi +2 -2
- bpy/utils/units/__init__.pyi +21 -18
- 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-20240423.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.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-20240423.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240421.dist-info → fake_bpy_module-20240423.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,395 @@ 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]]
|
|
615
|
+
"""
|
|
616
|
+
|
|
617
|
+
...
|
|
618
|
+
|
|
619
|
+
def primitive_arc(
|
|
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
|
+
subdivision: typing.Optional[typing.Any] = 62,
|
|
624
|
+
type: typing.Optional[typing.Any] = "ARC",
|
|
625
|
+
):
|
|
626
|
+
"""Create predefined grease pencil stroke arcs
|
|
627
|
+
|
|
628
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
629
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
630
|
+
:type undo: typing.Optional[bool]
|
|
631
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
632
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
633
|
+
:param type: Type, Type of shape
|
|
634
|
+
:type type: typing.Optional[typing.Any]
|
|
635
|
+
"""
|
|
636
|
+
|
|
637
|
+
...
|
|
638
|
+
|
|
639
|
+
def primitive_box(
|
|
640
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
641
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
642
|
+
undo: typing.Optional[bool] = None,
|
|
643
|
+
subdivision: typing.Optional[typing.Any] = 3,
|
|
644
|
+
type: typing.Optional[typing.Any] = "BOX",
|
|
645
|
+
):
|
|
646
|
+
"""Create predefined grease pencil stroke boxes
|
|
647
|
+
|
|
648
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
649
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
650
|
+
:type undo: typing.Optional[bool]
|
|
651
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
652
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
653
|
+
:param type: Type, Type of shape
|
|
654
|
+
:type type: typing.Optional[typing.Any]
|
|
655
|
+
"""
|
|
656
|
+
|
|
657
|
+
...
|
|
658
|
+
|
|
659
|
+
def primitive_circle(
|
|
660
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
661
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
662
|
+
undo: typing.Optional[bool] = None,
|
|
663
|
+
subdivision: typing.Optional[typing.Any] = 94,
|
|
664
|
+
type: typing.Optional[typing.Any] = "CIRCLE",
|
|
665
|
+
):
|
|
666
|
+
"""Create predefined grease pencil stroke circles
|
|
667
|
+
|
|
668
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
669
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
670
|
+
:type undo: typing.Optional[bool]
|
|
671
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
672
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
673
|
+
:param type: Type, Type of shape
|
|
674
|
+
:type type: typing.Optional[typing.Any]
|
|
675
|
+
"""
|
|
676
|
+
|
|
677
|
+
...
|
|
678
|
+
|
|
679
|
+
def primitive_curve(
|
|
680
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
681
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
682
|
+
undo: typing.Optional[bool] = None,
|
|
683
|
+
subdivision: typing.Optional[typing.Any] = 62,
|
|
684
|
+
type: typing.Optional[typing.Any] = "CURVE",
|
|
685
|
+
):
|
|
686
|
+
"""Create predefined grease pencil stroke curve shapes
|
|
687
|
+
|
|
688
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
689
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
690
|
+
:type undo: typing.Optional[bool]
|
|
691
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
692
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
693
|
+
:param type: Type, Type of shape
|
|
694
|
+
:type type: typing.Optional[typing.Any]
|
|
695
|
+
"""
|
|
696
|
+
|
|
697
|
+
...
|
|
698
|
+
|
|
699
|
+
def primitive_line(
|
|
700
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
701
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
702
|
+
undo: typing.Optional[bool] = None,
|
|
703
|
+
subdivision: typing.Optional[typing.Any] = 6,
|
|
704
|
+
type: typing.Optional[typing.Any] = "LINE",
|
|
705
|
+
):
|
|
706
|
+
"""Create predefined grease pencil stroke lines
|
|
707
|
+
|
|
708
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
709
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
710
|
+
:type undo: typing.Optional[bool]
|
|
711
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
712
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
713
|
+
:param type: Type, Type of shape
|
|
714
|
+
:type type: typing.Optional[typing.Any]
|
|
715
|
+
"""
|
|
716
|
+
|
|
717
|
+
...
|
|
718
|
+
|
|
719
|
+
def primitive_polyline(
|
|
720
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
721
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
722
|
+
undo: typing.Optional[bool] = None,
|
|
723
|
+
subdivision: typing.Optional[typing.Any] = 6,
|
|
724
|
+
type: typing.Optional[typing.Any] = "POLYLINE",
|
|
725
|
+
):
|
|
726
|
+
"""Create predefined grease pencil stroke polylines
|
|
727
|
+
|
|
728
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
729
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
730
|
+
:type undo: typing.Optional[bool]
|
|
731
|
+
:param subdivision: Subdivisions, Number of subdivisions per segment
|
|
732
|
+
:type subdivision: typing.Optional[typing.Any]
|
|
733
|
+
:param type: Type, Type of shape
|
|
734
|
+
:type type: typing.Optional[typing.Any]
|
|
612
735
|
"""
|
|
613
736
|
|
|
614
737
|
...
|
|
615
738
|
|
|
616
739
|
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",
|
|
740
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
741
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
742
|
+
undo: typing.Optional[bool] = None,
|
|
743
|
+
direction: typing.Optional[typing.Any] = "TOP",
|
|
621
744
|
):
|
|
622
745
|
"""Change the display order of the selected strokes
|
|
623
746
|
|
|
624
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
625
|
-
:type execution_context: typing.Union[str, int]
|
|
626
|
-
:type undo: bool
|
|
747
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
748
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
749
|
+
:type undo: typing.Optional[bool]
|
|
627
750
|
:param direction: Direction
|
|
628
|
-
:type direction: typing.Any
|
|
751
|
+
:type direction: typing.Optional[typing.Any]
|
|
629
752
|
"""
|
|
630
753
|
|
|
631
754
|
...
|
|
632
755
|
|
|
633
756
|
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
|
-
|
|
757
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
758
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
759
|
+
undo: typing.Optional[bool] = None,
|
|
760
|
+
stroke: typing.Optional[
|
|
761
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
762
|
+
] = None,
|
|
763
|
+
mode: typing.Optional[typing.Any] = "NORMAL",
|
|
639
764
|
):
|
|
640
765
|
"""Draw a new stroke in the active Grease Pencil object
|
|
641
766
|
|
|
642
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
643
|
-
:type execution_context: typing.Union[str, int]
|
|
644
|
-
:type undo: bool
|
|
767
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
768
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
769
|
+
:type undo: typing.Optional[bool]
|
|
645
770
|
:param stroke: Stroke
|
|
646
|
-
:type stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
|
|
771
|
+
:type stroke: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]]
|
|
647
772
|
:param mode: Stroke Mode, Action taken when a paint stroke is made
|
|
648
773
|
|
|
649
774
|
NORMAL
|
|
@@ -654,22 +779,22 @@ def sculpt_paint(
|
|
|
654
779
|
|
|
655
780
|
SMOOTH
|
|
656
781
|
Smooth -- Switch brush to smooth mode for duration of stroke.
|
|
657
|
-
:type mode: typing.Any
|
|
782
|
+
:type mode: typing.Optional[typing.Any]
|
|
658
783
|
"""
|
|
659
784
|
|
|
660
785
|
...
|
|
661
786
|
|
|
662
787
|
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",
|
|
788
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
789
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
790
|
+
undo: typing.Optional[bool] = None,
|
|
791
|
+
action: typing.Optional[typing.Any] = "TOGGLE",
|
|
667
792
|
):
|
|
668
793
|
"""(De)select all visible strokes
|
|
669
794
|
|
|
670
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
671
|
-
:type execution_context: typing.Union[str, int]
|
|
672
|
-
:type undo: bool
|
|
795
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
796
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
797
|
+
:type undo: typing.Optional[bool]
|
|
673
798
|
:param action: Action, Selection action to execute
|
|
674
799
|
|
|
675
800
|
TOGGLE
|
|
@@ -683,107 +808,107 @@ def select_all(
|
|
|
683
808
|
|
|
684
809
|
INVERT
|
|
685
810
|
Invert -- Invert selection of all elements.
|
|
686
|
-
:type action: typing.Any
|
|
811
|
+
:type action: typing.Optional[typing.Any]
|
|
687
812
|
"""
|
|
688
813
|
|
|
689
814
|
...
|
|
690
815
|
|
|
691
816
|
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,
|
|
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
|
+
deselect_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
696
821
|
):
|
|
697
822
|
"""Select alternated points in strokes with already selected points
|
|
698
823
|
|
|
699
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
700
|
-
:type execution_context: typing.Union[str, int]
|
|
701
|
-
:type undo: bool
|
|
824
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
825
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
826
|
+
:type undo: typing.Optional[bool]
|
|
702
827
|
:param deselect_ends: Deselect Ends, (De)select the first and last point of each stroke
|
|
703
|
-
:type deselect_ends: typing.Union[bool, typing.Any]
|
|
828
|
+
:type deselect_ends: typing.Optional[typing.Union[bool, typing.Any]]
|
|
704
829
|
"""
|
|
705
830
|
|
|
706
831
|
...
|
|
707
832
|
|
|
708
833
|
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,
|
|
834
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
835
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
836
|
+
undo: typing.Optional[bool] = None,
|
|
837
|
+
amount_start: typing.Optional[typing.Any] = 0,
|
|
838
|
+
amount_end: typing.Optional[typing.Any] = 1,
|
|
714
839
|
):
|
|
715
840
|
"""Select end points of strokes
|
|
716
841
|
|
|
717
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
718
|
-
:type execution_context: typing.Union[str, int]
|
|
719
|
-
:type undo: bool
|
|
842
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
843
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
844
|
+
:type undo: typing.Optional[bool]
|
|
720
845
|
:param amount_start: Amount Start, Number of points to select from the start
|
|
721
|
-
:type amount_start: typing.Any
|
|
846
|
+
:type amount_start: typing.Optional[typing.Any]
|
|
722
847
|
:param amount_end: Amount End, Number of points to select from the end
|
|
723
|
-
:type amount_end: typing.Any
|
|
848
|
+
:type amount_end: typing.Optional[typing.Any]
|
|
724
849
|
"""
|
|
725
850
|
|
|
726
851
|
...
|
|
727
852
|
|
|
728
853
|
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,
|
|
854
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
855
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
856
|
+
undo: typing.Optional[bool] = None,
|
|
732
857
|
):
|
|
733
858
|
"""Shrink the selection by one point
|
|
734
859
|
|
|
735
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
736
|
-
:type execution_context: typing.Union[str, int]
|
|
737
|
-
:type undo: bool
|
|
860
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
861
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
862
|
+
:type undo: typing.Optional[bool]
|
|
738
863
|
"""
|
|
739
864
|
|
|
740
865
|
...
|
|
741
866
|
|
|
742
867
|
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,
|
|
868
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
869
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
870
|
+
undo: typing.Optional[bool] = None,
|
|
746
871
|
):
|
|
747
872
|
"""Select all points in curves with any point selection
|
|
748
873
|
|
|
749
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
750
|
-
:type execution_context: typing.Union[str, int]
|
|
751
|
-
:type undo: bool
|
|
874
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
875
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
876
|
+
:type undo: typing.Optional[bool]
|
|
752
877
|
"""
|
|
753
878
|
|
|
754
879
|
...
|
|
755
880
|
|
|
756
881
|
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,
|
|
882
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
883
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
884
|
+
undo: typing.Optional[bool] = None,
|
|
760
885
|
):
|
|
761
886
|
"""Grow the selection by one point
|
|
762
887
|
|
|
763
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
764
|
-
:type execution_context: typing.Union[str, int]
|
|
765
|
-
:type undo: bool
|
|
888
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
889
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
890
|
+
:type undo: typing.Optional[bool]
|
|
766
891
|
"""
|
|
767
892
|
|
|
768
893
|
...
|
|
769
894
|
|
|
770
895
|
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",
|
|
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
|
+
ratio: typing.Optional[typing.Any] = 0.5,
|
|
900
|
+
seed: typing.Optional[typing.Any] = 0,
|
|
901
|
+
action: typing.Optional[typing.Any] = "SELECT",
|
|
777
902
|
):
|
|
778
903
|
"""Selects random points from the current strokes selection
|
|
779
904
|
|
|
780
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
781
|
-
:type execution_context: typing.Union[str, int]
|
|
782
|
-
:type undo: bool
|
|
905
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
906
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
907
|
+
:type undo: typing.Optional[bool]
|
|
783
908
|
:param ratio: Ratio, Portion of items to select randomly
|
|
784
|
-
:type ratio: typing.Any
|
|
909
|
+
:type ratio: typing.Optional[typing.Any]
|
|
785
910
|
:param seed: Random Seed, Seed for the random number generator
|
|
786
|
-
:type seed: typing.Any
|
|
911
|
+
:type seed: typing.Optional[typing.Any]
|
|
787
912
|
:param action: Action, Selection action to execute
|
|
788
913
|
|
|
789
914
|
SELECT
|
|
@@ -791,22 +916,22 @@ def select_random(
|
|
|
791
916
|
|
|
792
917
|
DESELECT
|
|
793
918
|
Deselect -- Deselect all elements.
|
|
794
|
-
:type action: typing.Any
|
|
919
|
+
:type action: typing.Optional[typing.Any]
|
|
795
920
|
"""
|
|
796
921
|
|
|
797
922
|
...
|
|
798
923
|
|
|
799
924
|
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",
|
|
925
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
926
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
927
|
+
undo: typing.Optional[bool] = None,
|
|
928
|
+
mode: typing.Optional[typing.Any] = "SELECTED",
|
|
804
929
|
):
|
|
805
930
|
"""Separate the selected geometry into a new grease pencil object
|
|
806
931
|
|
|
807
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
808
|
-
:type execution_context: typing.Union[str, int]
|
|
809
|
-
:type undo: bool
|
|
932
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
933
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
934
|
+
:type undo: typing.Optional[bool]
|
|
810
935
|
:param mode: Mode
|
|
811
936
|
|
|
812
937
|
SELECTED
|
|
@@ -817,104 +942,123 @@ def separate(
|
|
|
817
942
|
|
|
818
943
|
LAYER
|
|
819
944
|
By Layer -- Separate by layer.
|
|
820
|
-
:type mode: typing.Any
|
|
945
|
+
:type mode: typing.Optional[typing.Any]
|
|
821
946
|
"""
|
|
822
947
|
|
|
823
948
|
...
|
|
824
949
|
|
|
825
950
|
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,
|
|
951
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
952
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
953
|
+
undo: typing.Optional[bool] = None,
|
|
829
954
|
):
|
|
830
955
|
"""Set the selected stroke material as the active material
|
|
831
956
|
|
|
832
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
833
|
-
:type execution_context: typing.Union[str, int]
|
|
834
|
-
:type undo: bool
|
|
957
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
958
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
959
|
+
:type undo: typing.Optional[bool]
|
|
835
960
|
"""
|
|
836
961
|
|
|
837
962
|
...
|
|
838
963
|
|
|
839
964
|
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",
|
|
965
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
966
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
967
|
+
undo: typing.Optional[bool] = None,
|
|
968
|
+
slot: typing.Optional[typing.Union[str, int, typing.Any]] = "DEFAULT",
|
|
844
969
|
):
|
|
845
970
|
"""Set active material
|
|
846
971
|
|
|
847
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
848
|
-
:type execution_context: typing.Union[str, int]
|
|
849
|
-
:type undo: bool
|
|
972
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
973
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
974
|
+
:type undo: typing.Optional[bool]
|
|
850
975
|
:param slot: Material Slot
|
|
851
|
-
:type slot: typing.Union[str, int, typing.Any]
|
|
976
|
+
:type slot: typing.Optional[typing.Union[str, int, typing.Any]]
|
|
852
977
|
"""
|
|
853
978
|
|
|
854
979
|
...
|
|
855
980
|
|
|
856
981
|
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",
|
|
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
|
+
mode: typing.Optional[typing.Union[str, int]] = "POINT",
|
|
861
986
|
):
|
|
862
987
|
"""Change the selection mode for Grease Pencil strokes
|
|
863
988
|
|
|
864
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
865
|
-
:type execution_context: typing.Union[str, int]
|
|
866
|
-
:type undo: bool
|
|
989
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
990
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
991
|
+
:type undo: typing.Optional[bool]
|
|
867
992
|
:param mode: Mode
|
|
868
|
-
:type mode: typing.Union[str, int]
|
|
993
|
+
:type mode: typing.Optional[typing.Union[str, int]]
|
|
869
994
|
"""
|
|
870
995
|
|
|
871
996
|
...
|
|
872
997
|
|
|
873
998
|
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,
|
|
999
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1000
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1001
|
+
undo: typing.Optional[bool] = None,
|
|
1002
|
+
opacity: typing.Optional[typing.Any] = 1.0,
|
|
878
1003
|
):
|
|
879
1004
|
"""Set all stroke points to same opacity
|
|
880
1005
|
|
|
881
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
882
|
-
:type execution_context: typing.Union[str, int]
|
|
883
|
-
:type undo: bool
|
|
1006
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1007
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1008
|
+
:type undo: typing.Optional[bool]
|
|
884
1009
|
:param opacity: Opacity
|
|
885
|
-
:type opacity: typing.Any
|
|
1010
|
+
:type opacity: typing.Optional[typing.Any]
|
|
886
1011
|
"""
|
|
887
1012
|
|
|
888
1013
|
...
|
|
889
1014
|
|
|
890
1015
|
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,
|
|
1016
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1017
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1018
|
+
undo: typing.Optional[bool] = None,
|
|
1019
|
+
thickness: typing.Optional[typing.Any] = 0.1,
|
|
895
1020
|
):
|
|
896
1021
|
"""Set all stroke points to same thickness
|
|
897
1022
|
|
|
898
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
899
|
-
:type execution_context: typing.Union[str, int]
|
|
900
|
-
:type undo: bool
|
|
1023
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1024
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1025
|
+
:type undo: typing.Optional[bool]
|
|
901
1026
|
:param thickness: Thickness, Thickness
|
|
902
|
-
:type thickness: typing.Any
|
|
1027
|
+
:type thickness: typing.Optional[typing.Any]
|
|
1028
|
+
"""
|
|
1029
|
+
|
|
1030
|
+
...
|
|
1031
|
+
|
|
1032
|
+
def stroke_cutter(
|
|
1033
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1034
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1035
|
+
undo: typing.Optional[bool] = None,
|
|
1036
|
+
path: typing.Optional[
|
|
1037
|
+
bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath]
|
|
1038
|
+
] = None,
|
|
1039
|
+
):
|
|
1040
|
+
"""Delete stroke points in between intersecting strokes
|
|
1041
|
+
|
|
1042
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1043
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1044
|
+
:type undo: typing.Optional[bool]
|
|
1045
|
+
:param path: Path
|
|
1046
|
+
:type path: typing.Optional[bpy.types.bpy_prop_collection[bpy.types.OperatorMousePath]]
|
|
903
1047
|
"""
|
|
904
1048
|
|
|
905
1049
|
...
|
|
906
1050
|
|
|
907
1051
|
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,
|
|
1052
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1053
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1054
|
+
undo: typing.Optional[bool] = None,
|
|
911
1055
|
material: typing.Union[str, typing.Any] = "",
|
|
912
1056
|
):
|
|
913
1057
|
"""Assign the active material slot to the selected strokes
|
|
914
1058
|
|
|
915
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
916
|
-
:type execution_context: typing.Union[str, int]
|
|
917
|
-
:type undo: bool
|
|
1059
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1060
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1061
|
+
:type undo: typing.Optional[bool]
|
|
918
1062
|
:param material: Material, Name of the material
|
|
919
1063
|
:type material: typing.Union[str, typing.Any]
|
|
920
1064
|
"""
|
|
@@ -922,107 +1066,107 @@ def stroke_material_set(
|
|
|
922
1066
|
...
|
|
923
1067
|
|
|
924
1068
|
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,
|
|
1069
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1070
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1071
|
+
undo: typing.Optional[bool] = None,
|
|
1072
|
+
factor: typing.Optional[typing.Any] = 0.01,
|
|
929
1073
|
):
|
|
930
1074
|
"""Simplify selected strokes
|
|
931
1075
|
|
|
932
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
933
|
-
:type execution_context: typing.Union[str, int]
|
|
934
|
-
:type undo: bool
|
|
1076
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1077
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1078
|
+
:type undo: typing.Optional[bool]
|
|
935
1079
|
:param factor: Factor
|
|
936
|
-
:type factor: typing.Any
|
|
1080
|
+
:type factor: typing.Optional[typing.Any]
|
|
937
1081
|
"""
|
|
938
1082
|
|
|
939
1083
|
...
|
|
940
1084
|
|
|
941
1085
|
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,
|
|
1086
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1087
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1088
|
+
undo: typing.Optional[bool] = None,
|
|
1089
|
+
iterations: typing.Optional[typing.Any] = 10,
|
|
1090
|
+
factor: typing.Optional[typing.Any] = 1.0,
|
|
1091
|
+
smooth_ends: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1092
|
+
keep_shape: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
1093
|
+
smooth_position: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1094
|
+
smooth_radius: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
1095
|
+
smooth_opacity: typing.Optional[typing.Union[bool, typing.Any]] = False,
|
|
952
1096
|
):
|
|
953
1097
|
"""Smooth selected strokes
|
|
954
1098
|
|
|
955
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
956
|
-
:type execution_context: typing.Union[str, int]
|
|
957
|
-
:type undo: bool
|
|
1099
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1100
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1101
|
+
:type undo: typing.Optional[bool]
|
|
958
1102
|
:param iterations: Iterations
|
|
959
|
-
:type iterations: typing.Any
|
|
1103
|
+
:type iterations: typing.Optional[typing.Any]
|
|
960
1104
|
:param factor: Factor
|
|
961
|
-
:type factor: typing.Any
|
|
1105
|
+
:type factor: typing.Optional[typing.Any]
|
|
962
1106
|
:param smooth_ends: Smooth Endpoints
|
|
963
|
-
:type smooth_ends: typing.Union[bool, typing.Any]
|
|
1107
|
+
:type smooth_ends: typing.Optional[typing.Union[bool, typing.Any]]
|
|
964
1108
|
:param keep_shape: Keep Shape
|
|
965
|
-
:type keep_shape: typing.Union[bool, typing.Any]
|
|
1109
|
+
:type keep_shape: typing.Optional[typing.Union[bool, typing.Any]]
|
|
966
1110
|
:param smooth_position: Position
|
|
967
|
-
:type smooth_position: typing.Union[bool, typing.Any]
|
|
1111
|
+
:type smooth_position: typing.Optional[typing.Union[bool, typing.Any]]
|
|
968
1112
|
:param smooth_radius: Radius
|
|
969
|
-
:type smooth_radius: typing.Union[bool, typing.Any]
|
|
1113
|
+
:type smooth_radius: typing.Optional[typing.Union[bool, typing.Any]]
|
|
970
1114
|
:param smooth_opacity: Opacity
|
|
971
|
-
:type smooth_opacity: typing.Union[bool, typing.Any]
|
|
1115
|
+
:type smooth_opacity: typing.Optional[typing.Union[bool, typing.Any]]
|
|
972
1116
|
"""
|
|
973
1117
|
|
|
974
1118
|
...
|
|
975
1119
|
|
|
976
1120
|
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,
|
|
1121
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1122
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1123
|
+
undo: typing.Optional[bool] = None,
|
|
1124
|
+
number_cuts: typing.Optional[typing.Any] = 1,
|
|
1125
|
+
only_selected: typing.Optional[typing.Union[bool, typing.Any]] = True,
|
|
982
1126
|
):
|
|
983
1127
|
"""Subdivide between continuous selected points of the stroke adding a point half way between them
|
|
984
1128
|
|
|
985
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
986
|
-
:type execution_context: typing.Union[str, int]
|
|
987
|
-
:type undo: bool
|
|
1129
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1130
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1131
|
+
:type undo: typing.Optional[bool]
|
|
988
1132
|
:param number_cuts: Number of Cuts
|
|
989
|
-
:type number_cuts: typing.Any
|
|
1133
|
+
:type number_cuts: typing.Optional[typing.Any]
|
|
990
1134
|
:param only_selected: Selected Points, Smooth only selected points in the stroke
|
|
991
|
-
:type only_selected: typing.Union[bool, typing.Any]
|
|
1135
|
+
:type only_selected: typing.Optional[typing.Union[bool, typing.Any]]
|
|
992
1136
|
"""
|
|
993
1137
|
|
|
994
1138
|
...
|
|
995
1139
|
|
|
996
1140
|
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,
|
|
1141
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1142
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1143
|
+
undo: typing.Optional[bool] = None,
|
|
1144
|
+
GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any] = None,
|
|
1145
|
+
GREASE_PENCIL_OT_stroke_smooth: typing.Optional[typing.Any] = None,
|
|
1002
1146
|
):
|
|
1003
1147
|
"""Subdivide strokes and smooth them
|
|
1004
1148
|
|
|
1005
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1006
|
-
:type execution_context: typing.Union[str, int]
|
|
1007
|
-
:type undo: bool
|
|
1149
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1150
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1151
|
+
:type undo: typing.Optional[bool]
|
|
1008
1152
|
: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
|
|
1153
|
+
:type GREASE_PENCIL_OT_stroke_subdivide: typing.Optional[typing.Any]
|
|
1010
1154
|
:param GREASE_PENCIL_OT_stroke_smooth: Smooth Stroke, Smooth selected strokes
|
|
1011
|
-
:type GREASE_PENCIL_OT_stroke_smooth: typing.Any
|
|
1155
|
+
:type GREASE_PENCIL_OT_stroke_smooth: typing.Optional[typing.Any]
|
|
1012
1156
|
"""
|
|
1013
1157
|
|
|
1014
1158
|
...
|
|
1015
1159
|
|
|
1016
1160
|
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,
|
|
1161
|
+
override_context: typing.Optional[typing.Union[dict, bpy.types.Context]] = None,
|
|
1162
|
+
execution_context: typing.Optional[typing.Union[str, int]] = None,
|
|
1163
|
+
undo: typing.Optional[bool] = None,
|
|
1020
1164
|
):
|
|
1021
1165
|
"""Change direction of the points of the selected strokes
|
|
1022
1166
|
|
|
1023
|
-
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
1024
|
-
:type execution_context: typing.Union[str, int]
|
|
1025
|
-
:type undo: bool
|
|
1167
|
+
:type override_context: typing.Optional[typing.Union[dict, bpy.types.Context]]
|
|
1168
|
+
:type execution_context: typing.Optional[typing.Union[str, int]]
|
|
1169
|
+
:type undo: typing.Optional[bool]
|
|
1026
1170
|
"""
|
|
1027
1171
|
|
|
1028
1172
|
...
|