fake-bpy-module 20240411__py3-none-any.whl → 20240418__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.
- _bpy_internal/__init__.pyi +4 -0
- _bpy_internal/freedesktop/__init__.pyi +88 -0
- _bpy_internal/freedesktop/py.typed +0 -0
- _bpy_internal/py.typed +0 -0
- aud/__init__.pyi +121 -48
- bgl/__init__.pyi +2443 -1265
- bl_math/__init__.pyi +19 -3
- bl_operators/presets/__init__.pyi +7 -0
- bl_ui/node_add_menu/__init__.pyi +1 -1
- bl_ui/properties_data_lightprobe/__init__.pyi +1134 -0
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +3 -0
- bl_ui/properties_physics_fluid/__init__.pyi +3 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +17 -0
- bl_ui/space_userpref/__init__.pyi +13 -4
- bl_ui/space_view3d/__init__.pyi +190 -0
- blf/__init__.pyi +63 -13
- bmesh/__init__.pyi +13 -0
- bmesh/geometry/__init__.pyi +5 -0
- bmesh/ops/__init__.pyi +157 -68
- bmesh/types/__init__.pyi +109 -62
- bmesh/utils/__init__.pyi +11 -2
- bpy/__init__.pyi +7 -0
- bpy/app/__init__.pyi +13 -0
- bpy/app/handlers/__init__.pyi +41 -0
- bpy/app/icons/__init__.pyi +4 -2
- bpy/app/timers/__init__.pyi +38 -2
- bpy/app/translations/__init__.pyi +59 -1
- bpy/msgbus/__init__.pyi +46 -0
- bpy/ops/__init__.pyi +151 -0
- bpy/ops/action/__init__.pyi +76 -76
- bpy/ops/anim/__init__.pyi +104 -104
- bpy/ops/armature/__init__.pyi +96 -96
- bpy/ops/asset/__init__.pyi +32 -32
- bpy/ops/boid/__init__.pyi +16 -16
- bpy/ops/brush/__init__.pyi +18 -18
- bpy/ops/buttons/__init__.pyi +12 -12
- bpy/ops/cachefile/__init__.pyi +10 -10
- bpy/ops/camera/__init__.pyi +4 -4
- bpy/ops/clip/__init__.pyi +184 -184
- bpy/ops/cloth/__init__.pyi +2 -2
- bpy/ops/collection/__init__.pyi +18 -18
- bpy/ops/console/__init__.pyi +42 -42
- bpy/ops/constraint/__init__.pyi +36 -36
- bpy/ops/curve/__init__.pyi +102 -102
- bpy/ops/curves/__init__.pyi +132 -50
- bpy/ops/cycles/__init__.pyi +6 -6
- bpy/ops/dpaint/__init__.pyi +10 -10
- bpy/ops/ed/__init__.pyi +24 -24
- bpy/ops/export_anim/__init__.pyi +2 -2
- bpy/ops/export_mesh/__init__.pyi +2 -2
- bpy/ops/export_scene/__init__.pyi +11 -8
- bpy/ops/file/__init__.pyi +80 -80
- bpy/ops/fluid/__init__.pyi +28 -28
- bpy/ops/font/__init__.pyi +46 -46
- bpy/ops/geometry/__init__.pyi +20 -20
- bpy/ops/gizmogroup/__init__.pyi +4 -4
- bpy/ops/gpencil/__init__.pyi +300 -300
- bpy/ops/graph/__init__.pyi +130 -130
- bpy/ops/grease_pencil/__init__.pyi +139 -110
- bpy/ops/image/__init__.pyi +92 -92
- bpy/ops/import_anim/__init__.pyi +2 -2
- bpy/ops/import_curve/__init__.pyi +2 -2
- bpy/ops/import_mesh/__init__.pyi +2 -2
- bpy/ops/import_scene/__init__.pyi +6 -6
- bpy/ops/info/__init__.pyi +14 -14
- bpy/ops/lattice/__init__.pyi +16 -16
- bpy/ops/marker/__init__.pyi +22 -22
- bpy/ops/mask/__init__.pyi +78 -78
- bpy/ops/material/__init__.pyi +6 -6
- bpy/ops/mball/__init__.pyi +16 -16
- bpy/ops/mesh/__init__.pyi +327 -327
- bpy/ops/nla/__init__.pyi +80 -80
- bpy/ops/node/__init__.pyi +203 -203
- bpy/ops/object/__init__.pyi +496 -508
- bpy/ops/outliner/__init__.pyi +139 -139
- bpy/ops/paint/__init__.pyi +104 -104
- bpy/ops/paintcurve/__init__.pyi +16 -16
- bpy/ops/palette/__init__.pyi +14 -14
- bpy/ops/particle/__init__.pyi +72 -72
- bpy/ops/pose/__init__.pyi +78 -78
- bpy/ops/poselib/__init__.pyi +18 -18
- bpy/ops/preferences/__init__.pyi +77 -77
- bpy/ops/ptcache/__init__.pyi +14 -14
- bpy/ops/render/__init__.pyi +24 -24
- bpy/ops/rigidbody/__init__.pyi +26 -26
- bpy/ops/scene/__init__.pyi +78 -78
- bpy/ops/screen/__init__.pyi +78 -78
- bpy/ops/script/__init__.pyi +6 -6
- bpy/ops/sculpt/__init__.pyi +68 -62
- bpy/ops/sculpt_curves/__init__.pyi +8 -8
- bpy/ops/sequencer/__init__.pyi +170 -170
- bpy/ops/sound/__init__.pyi +14 -14
- bpy/ops/spreadsheet/__init__.pyi +8 -8
- bpy/ops/surface/__init__.pyi +12 -12
- bpy/ops/text/__init__.pyi +86 -86
- bpy/ops/text_editor/__init__.pyi +2 -2
- bpy/ops/texture/__init__.pyi +8 -8
- bpy/ops/transform/__init__.pyi +54 -54
- bpy/ops/ui/__init__.pyi +64 -64
- bpy/ops/uilist/__init__.pyi +6 -6
- bpy/ops/uv/__init__.pyi +98 -98
- bpy/ops/view2d/__init__.pyi +28 -28
- bpy/ops/view3d/__init__.pyi +134 -134
- bpy/ops/wm/__init__.pyi +225 -225
- bpy/ops/workspace/__init__.pyi +14 -14
- bpy/ops/world/__init__.pyi +2 -2
- bpy/path/__init__.pyi +6 -0
- bpy/props/__init__.pyi +141 -29
- bpy/types/__init__.pyi +101773 -5222
- bpy/utils/__init__.pyi +18 -3
- bpy/utils/previews/__init__.pyi +15 -0
- bpy/utils/units/__init__.pyi +11 -3
- bpy_extras/__init__.pyi +19 -0
- bpy_extras/asset_utils/__init__.pyi +5 -0
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/RECORD +145 -141
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/top_level.txt +1 -0
- freestyle/__init__.pyi +18 -0
- freestyle/chainingiterators/__init__.pyi +20 -5
- freestyle/functions/__init__.pyi +151 -155
- freestyle/predicates/__init__.pyi +53 -46
- freestyle/shaders/__init__.pyi +91 -32
- freestyle/types/__init__.pyi +362 -120
- freestyle/utils/ContextFunctions/__init__.pyi +32 -7
- freestyle/utils/__init__.pyi +13 -1
- gpu/__init__.pyi +225 -0
- gpu/capabilities/__init__.pyi +37 -15
- gpu/matrix/__init__.pyi +7 -1
- gpu/platform/__init__.pyi +5 -0
- gpu/select/__init__.pyi +5 -0
- gpu/shader/__init__.pyi +77 -0
- gpu/state/__init__.pyi +15 -4
- gpu/texture/__init__.pyi +5 -0
- gpu/types/__init__.pyi +91 -33
- gpu_extras/__init__.pyi +15 -0
- gpu_extras/presets/__init__.pyi +16 -4
- imbuf/__init__.pyi +13 -0
- imbuf/types/__init__.pyi +20 -5
- mathutils/__init__.pyi +349 -227
- mathutils/bvhtree/__init__.pyi +21 -8
- mathutils/geometry/__init__.pyi +23 -9
- mathutils/interpolate/__init__.pyi +5 -0
- mathutils/kdtree/__init__.pyi +19 -5
- mathutils/noise/__init__.pyi +87 -41
- {fake_bpy_module-20240411.dist-info → fake_bpy_module-20240418.dist-info}/WHEEL +0 -0
bpy/ops/workspace/__init__.pyi
CHANGED
|
@@ -5,13 +5,13 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
5
5
|
|
|
6
6
|
def add(
|
|
7
7
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
-
execution_context: str = None,
|
|
8
|
+
execution_context: typing.Union[str, int] = None,
|
|
9
9
|
undo: bool = None,
|
|
10
10
|
):
|
|
11
11
|
"""Add a new workspace by duplicating the current one or appending one from the user configuration
|
|
12
12
|
|
|
13
13
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
14
|
-
:type execution_context: str
|
|
14
|
+
:type execution_context: typing.Union[str, int]
|
|
15
15
|
:type undo: bool
|
|
16
16
|
"""
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ def add(
|
|
|
19
19
|
|
|
20
20
|
def append_activate(
|
|
21
21
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
22
|
-
execution_context: str = None,
|
|
22
|
+
execution_context: typing.Union[str, int] = None,
|
|
23
23
|
undo: bool = None,
|
|
24
24
|
idname: typing.Union[str, typing.Any] = "",
|
|
25
25
|
filepath: typing.Union[str, typing.Any] = "",
|
|
@@ -27,7 +27,7 @@ def append_activate(
|
|
|
27
27
|
"""Append a workspace and make it the active one in the current window
|
|
28
28
|
|
|
29
29
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
30
|
-
:type execution_context: str
|
|
30
|
+
:type execution_context: typing.Union[str, int]
|
|
31
31
|
:type undo: bool
|
|
32
32
|
:param idname: Identifier, Name of the workspace to append and activate
|
|
33
33
|
:type idname: typing.Union[str, typing.Any]
|
|
@@ -39,13 +39,13 @@ def append_activate(
|
|
|
39
39
|
|
|
40
40
|
def delete(
|
|
41
41
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
42
|
-
execution_context: str = None,
|
|
42
|
+
execution_context: typing.Union[str, int] = None,
|
|
43
43
|
undo: bool = None,
|
|
44
44
|
):
|
|
45
45
|
"""Delete the active workspace
|
|
46
46
|
|
|
47
47
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
48
|
-
:type execution_context: str
|
|
48
|
+
:type execution_context: typing.Union[str, int]
|
|
49
49
|
:type undo: bool
|
|
50
50
|
"""
|
|
51
51
|
|
|
@@ -53,13 +53,13 @@ def delete(
|
|
|
53
53
|
|
|
54
54
|
def duplicate(
|
|
55
55
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
56
|
-
execution_context: str = None,
|
|
56
|
+
execution_context: typing.Union[str, int] = None,
|
|
57
57
|
undo: bool = None,
|
|
58
58
|
):
|
|
59
59
|
"""Add a new workspace
|
|
60
60
|
|
|
61
61
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
62
|
-
:type execution_context: str
|
|
62
|
+
:type execution_context: typing.Union[str, int]
|
|
63
63
|
:type undo: bool
|
|
64
64
|
"""
|
|
65
65
|
|
|
@@ -67,13 +67,13 @@ def duplicate(
|
|
|
67
67
|
|
|
68
68
|
def reorder_to_back(
|
|
69
69
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
70
|
-
execution_context: str = None,
|
|
70
|
+
execution_context: typing.Union[str, int] = None,
|
|
71
71
|
undo: bool = None,
|
|
72
72
|
):
|
|
73
73
|
"""Reorder workspace to be last in the list
|
|
74
74
|
|
|
75
75
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
76
|
-
:type execution_context: str
|
|
76
|
+
:type execution_context: typing.Union[str, int]
|
|
77
77
|
:type undo: bool
|
|
78
78
|
"""
|
|
79
79
|
|
|
@@ -81,13 +81,13 @@ def reorder_to_back(
|
|
|
81
81
|
|
|
82
82
|
def reorder_to_front(
|
|
83
83
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
84
|
-
execution_context: str = None,
|
|
84
|
+
execution_context: typing.Union[str, int] = None,
|
|
85
85
|
undo: bool = None,
|
|
86
86
|
):
|
|
87
87
|
"""Reorder workspace to be first in the list
|
|
88
88
|
|
|
89
89
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
90
|
-
:type execution_context: str
|
|
90
|
+
:type execution_context: typing.Union[str, int]
|
|
91
91
|
:type undo: bool
|
|
92
92
|
"""
|
|
93
93
|
|
|
@@ -95,13 +95,13 @@ def reorder_to_front(
|
|
|
95
95
|
|
|
96
96
|
def scene_pin_toggle(
|
|
97
97
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
98
|
-
execution_context: str = None,
|
|
98
|
+
execution_context: typing.Union[str, int] = None,
|
|
99
99
|
undo: bool = None,
|
|
100
100
|
):
|
|
101
101
|
"""Remember the last used scene for the current workspace and switch to it whenever this workspace is activated again
|
|
102
102
|
|
|
103
103
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
104
|
-
:type execution_context: str
|
|
104
|
+
:type execution_context: typing.Union[str, int]
|
|
105
105
|
:type undo: bool
|
|
106
106
|
"""
|
|
107
107
|
|
bpy/ops/world/__init__.pyi
CHANGED
|
@@ -5,13 +5,13 @@ GenericType = typing.TypeVar("GenericType")
|
|
|
5
5
|
|
|
6
6
|
def new(
|
|
7
7
|
override_context: typing.Union[dict, bpy.types.Context] = None,
|
|
8
|
-
execution_context: str = None,
|
|
8
|
+
execution_context: typing.Union[str, int] = None,
|
|
9
9
|
undo: bool = None,
|
|
10
10
|
):
|
|
11
11
|
"""Create a new world Data-Block
|
|
12
12
|
|
|
13
13
|
:type override_context: typing.Union[dict, bpy.types.Context]
|
|
14
|
-
:type execution_context: str
|
|
14
|
+
:type execution_context: typing.Union[str, int]
|
|
15
15
|
:type undo: bool
|
|
16
16
|
"""
|
|
17
17
|
|
bpy/path/__init__.pyi
CHANGED
bpy/props/__init__.pyi
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This module defines properties to extend Blender's internal data. The result of these functions is used to assign properties to classes registered with Blender and can't be used directly.
|
|
3
|
+
|
|
4
|
+
[NOTE]
|
|
5
|
+
All parameters to these functions must be passed as keywords.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
--------------------
|
|
9
|
+
|
|
10
|
+
Custom properties can be added to any subclass of an ID,
|
|
11
|
+
Bone and PoseBone.
|
|
12
|
+
|
|
13
|
+
These properties can be animated, accessed by the user interface and python
|
|
14
|
+
like Blender's existing properties.
|
|
15
|
+
|
|
16
|
+
[WARNING]
|
|
17
|
+
Access to these properties might happen in threaded context, on a per-data-block level.
|
|
18
|
+
This has to be carefully considered when using accessors or update callbacks.
|
|
19
|
+
Typically, these callbacks should not affect any other data that the one owned by their data-block.
|
|
20
|
+
When accessing external non-Blender data, thread safety mechanisms should be considered.
|
|
21
|
+
|
|
22
|
+
```../examples/bpy.props.py```
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
--------------------
|
|
26
|
+
|
|
27
|
+
A common use of custom properties is for python based Operator
|
|
28
|
+
classes. Test this code by running it in the text editor, or by clicking the
|
|
29
|
+
button in the 3D Viewport's Tools panel. The latter will show the properties
|
|
30
|
+
in the Redo panel and allow you to change them.
|
|
31
|
+
|
|
32
|
+
```../examples/bpy.props.1.py```
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
--------------------
|
|
36
|
+
|
|
37
|
+
PropertyGroups can be used for collecting custom settings into one value
|
|
38
|
+
to avoid many individual settings mixed in together.
|
|
39
|
+
|
|
40
|
+
```../examples/bpy.props.2.py```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
--------------------
|
|
44
|
+
|
|
45
|
+
Custom properties can be added to any subclass of an ID,
|
|
46
|
+
Bone and PoseBone.
|
|
47
|
+
|
|
48
|
+
```../examples/bpy.props.3.py```
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
--------------------
|
|
52
|
+
|
|
53
|
+
It can be useful to perform an action when a property is changed and can be
|
|
54
|
+
used to update other properties or synchronize with external data.
|
|
55
|
+
|
|
56
|
+
All properties define update functions except for CollectionProperty.
|
|
57
|
+
|
|
58
|
+
[WARNING]
|
|
59
|
+
Remember that these callbacks may be executed in threaded context.
|
|
60
|
+
|
|
61
|
+
[WARNING]
|
|
62
|
+
If the property belongs to an Operator, the update callback's first
|
|
63
|
+
parameter will be an OperatorProperties instance, rather than an instance
|
|
64
|
+
of the operator itself. This means you can't access other internal functions
|
|
65
|
+
of the operator, only its other properties.
|
|
66
|
+
|
|
67
|
+
```../examples/bpy.props.4.py```
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
--------------------
|
|
71
|
+
|
|
72
|
+
Getter/setter functions can be used for boolean, int, float, string and enum properties.
|
|
73
|
+
If these callbacks are defined the property will not be stored in the ID properties
|
|
74
|
+
automatically. Instead, the get and set functions will be called when the property
|
|
75
|
+
is respectively read or written from the API.
|
|
76
|
+
|
|
77
|
+
[WARNING]
|
|
78
|
+
Remember that these callbacks may be executed in threaded context.
|
|
79
|
+
|
|
80
|
+
```../examples/bpy.props.5.py```
|
|
81
|
+
|
|
82
|
+
[NOTE]
|
|
83
|
+
Typically this function doesn't need to be accessed directly.
|
|
84
|
+
Instead use del cls.attr
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
"""
|
|
89
|
+
|
|
1
90
|
import typing
|
|
2
91
|
|
|
3
92
|
GenericType = typing.TypeVar("GenericType")
|
|
@@ -54,7 +143,7 @@ def BoolVectorProperty(
|
|
|
54
143
|
override: set = None(),
|
|
55
144
|
tags: set = None(),
|
|
56
145
|
subtype: str = "NONE",
|
|
57
|
-
size: typing.Sequence[int] = 3,
|
|
146
|
+
size: typing.Union[int, typing.Sequence[int]] = 3,
|
|
58
147
|
update: typing.Any = None,
|
|
59
148
|
get: typing.Any = None,
|
|
60
149
|
set: typing.Any = None,
|
|
@@ -78,7 +167,7 @@ def BoolVectorProperty(
|
|
|
78
167
|
:param subtype: Enumerator in `rna_enum_property_subtype_number_array_items`.
|
|
79
168
|
:type subtype: str
|
|
80
169
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
81
|
-
:type size: typing.Sequence[int]
|
|
170
|
+
:type size: typing.Union[int, typing.Sequence[int]]
|
|
82
171
|
:param update: Function to be called when this value is modified,
|
|
83
172
|
This function must take 2 values (self, context) and return None.
|
|
84
173
|
Warning there are no safety checks to avoid infinite recursion.
|
|
@@ -211,12 +300,12 @@ def FloatProperty(
|
|
|
211
300
|
description: str = "",
|
|
212
301
|
translation_context: str = "*",
|
|
213
302
|
default=0.0,
|
|
214
|
-
min
|
|
215
|
-
max=3.402823e38,
|
|
216
|
-
soft_min
|
|
217
|
-
soft_max=3.402823e38,
|
|
218
|
-
step=3,
|
|
219
|
-
precision=2,
|
|
303
|
+
min: float = -3.402823e38,
|
|
304
|
+
max: float = 3.402823e38,
|
|
305
|
+
soft_min: float = -3.402823e38,
|
|
306
|
+
soft_max: float = 3.402823e38,
|
|
307
|
+
step: int = 3,
|
|
308
|
+
precision: int = 2,
|
|
220
309
|
options: set = {'"ANIMATABLE"'},
|
|
221
310
|
override: set = None(),
|
|
222
311
|
tags: set = None(),
|
|
@@ -235,11 +324,17 @@ def FloatProperty(
|
|
|
235
324
|
:param translation_context: Text used as context to disambiguate translations.
|
|
236
325
|
:type translation_context: str
|
|
237
326
|
:param min: Hard minimum, trying to assign a value below will silently assign this minimum instead.
|
|
327
|
+
:type min: float
|
|
238
328
|
:param max: Hard maximum, trying to assign a value above will silently assign this maximum instead.
|
|
329
|
+
:type max: float
|
|
239
330
|
:param soft_min: Soft minimum (>= min), user won't be able to drag the widget below this value in the UI.
|
|
331
|
+
:type soft_min: float
|
|
240
332
|
:param soft_max: Soft maximum (<= max), user won't be able to drag the widget above this value in the UI.
|
|
333
|
+
:type soft_max: float
|
|
241
334
|
:param step: Step of increment/decrement in UI, in [1, 100], defaults to 3 (WARNING: actual value is /100).
|
|
335
|
+
:type step: int
|
|
242
336
|
:param precision: Maximum number of decimal digits to display, in [0, 6]. Fraction is automatically hidden for exact integer values of fields with unit 'NONE' or 'TIME' (frame count) and step divisible by 100.
|
|
337
|
+
:type precision: int
|
|
243
338
|
:param options: Enumerator in `rna_enum_property_flag_items`.
|
|
244
339
|
:type options: set
|
|
245
340
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|
|
@@ -269,18 +364,18 @@ def FloatVectorProperty(
|
|
|
269
364
|
description: str = "",
|
|
270
365
|
translation_context: str = "*",
|
|
271
366
|
default: typing.Sequence = (0.0, 0.0, 0.0),
|
|
272
|
-
min=None,
|
|
273
|
-
max=None,
|
|
274
|
-
soft_min=None,
|
|
275
|
-
soft_max=None,
|
|
276
|
-
step=3,
|
|
277
|
-
precision=2,
|
|
367
|
+
min: float = None,
|
|
368
|
+
max: float = None,
|
|
369
|
+
soft_min: float = None,
|
|
370
|
+
soft_max: float = None,
|
|
371
|
+
step: int = 3,
|
|
372
|
+
precision: int = 2,
|
|
278
373
|
options: set = {'"ANIMATABLE"'},
|
|
279
374
|
override: set = None(),
|
|
280
375
|
tags: set = None(),
|
|
281
376
|
subtype: str = "NONE",
|
|
282
377
|
unit: str = "NONE",
|
|
283
|
-
size: typing.Sequence[int] = 3,
|
|
378
|
+
size: typing.Union[int, typing.Sequence[int]] = 3,
|
|
284
379
|
update: typing.Any = None,
|
|
285
380
|
get: typing.Any = None,
|
|
286
381
|
set: typing.Any = None,
|
|
@@ -296,11 +391,17 @@ def FloatVectorProperty(
|
|
|
296
391
|
:param default: sequence of floats the length of size.
|
|
297
392
|
:type default: typing.Sequence
|
|
298
393
|
:param min: Hard minimum, trying to assign a value below will silently assign this minimum instead.
|
|
394
|
+
:type min: float
|
|
299
395
|
:param max: Hard maximum, trying to assign a value above will silently assign this maximum instead.
|
|
396
|
+
:type max: float
|
|
300
397
|
:param soft_min: Soft minimum (>= min), user won't be able to drag the widget below this value in the UI.
|
|
398
|
+
:type soft_min: float
|
|
301
399
|
:param soft_max: Soft maximum (<= max), user won't be able to drag the widget above this value in the UI.
|
|
400
|
+
:type soft_max: float
|
|
302
401
|
:param step: Step of increment/decrement in UI, in [1, 100], defaults to 3 (WARNING: actual value is /100).
|
|
402
|
+
:type step: int
|
|
303
403
|
:param precision: Maximum number of decimal digits to display, in [0, 6]. Fraction is automatically hidden for exact integer values of fields with unit 'NONE' or 'TIME' (frame count) and step divisible by 100.
|
|
404
|
+
:type precision: int
|
|
304
405
|
:param options: Enumerator in `rna_enum_property_flag_items`.
|
|
305
406
|
:type options: set
|
|
306
407
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|
|
@@ -312,7 +413,7 @@ def FloatVectorProperty(
|
|
|
312
413
|
:param unit: Enumerator in `rna_enum_property_unit_items`.
|
|
313
414
|
:type unit: str
|
|
314
415
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
315
|
-
:type size: typing.Sequence[int]
|
|
416
|
+
:type size: typing.Union[int, typing.Sequence[int]]
|
|
316
417
|
:param update: Function to be called when this value is modified,
|
|
317
418
|
This function must take 2 values (self, context) and return None.
|
|
318
419
|
Warning there are no safety checks to avoid infinite recursion.
|
|
@@ -332,11 +433,11 @@ def IntProperty(
|
|
|
332
433
|
description: str = "",
|
|
333
434
|
translation_context: str = "*",
|
|
334
435
|
default=0,
|
|
335
|
-
min=None,
|
|
336
|
-
max=None,
|
|
337
|
-
soft_min=None,
|
|
338
|
-
soft_max=None,
|
|
339
|
-
step=1,
|
|
436
|
+
min: int = None,
|
|
437
|
+
max: int = None,
|
|
438
|
+
soft_min: int = None,
|
|
439
|
+
soft_max: int = None,
|
|
440
|
+
step: int = 1,
|
|
340
441
|
options: set = {'"ANIMATABLE"'},
|
|
341
442
|
override: set = None(),
|
|
342
443
|
tags: set = None(),
|
|
@@ -354,10 +455,15 @@ def IntProperty(
|
|
|
354
455
|
:param translation_context: Text used as context to disambiguate translations.
|
|
355
456
|
:type translation_context: str
|
|
356
457
|
:param min: Hard minimum, trying to assign a value below will silently assign this minimum instead.
|
|
458
|
+
:type min: int
|
|
357
459
|
:param max: Hard maximum, trying to assign a value above will silently assign this maximum instead.
|
|
460
|
+
:type max: int
|
|
358
461
|
:param soft_min: Soft minimum (>= min), user won't be able to drag the widget below this value in the UI.
|
|
462
|
+
:type soft_min: int
|
|
359
463
|
:param soft_max: Soft maximum (<= max), user won't be able to drag the widget above this value in the UI.
|
|
464
|
+
:type soft_max: int
|
|
360
465
|
:param step: Step of increment/decrement in UI, in [1, 100], defaults to 1 (WARNING: unused currently!).
|
|
466
|
+
:type step: int
|
|
361
467
|
:param options: Enumerator in `rna_enum_property_flag_items`.
|
|
362
468
|
:type options: set
|
|
363
469
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|
|
@@ -385,16 +491,16 @@ def IntVectorProperty(
|
|
|
385
491
|
description: str = "",
|
|
386
492
|
translation_context: str = "*",
|
|
387
493
|
default: typing.Sequence = (0, 0, 0),
|
|
388
|
-
min=None,
|
|
389
|
-
max=None,
|
|
390
|
-
soft_min=None,
|
|
391
|
-
soft_max=None,
|
|
392
|
-
step=1,
|
|
494
|
+
min: int = None,
|
|
495
|
+
max: int = None,
|
|
496
|
+
soft_min: int = None,
|
|
497
|
+
soft_max: int = None,
|
|
498
|
+
step: int = 1,
|
|
393
499
|
options: set = {'"ANIMATABLE"'},
|
|
394
500
|
override: set = None(),
|
|
395
501
|
tags: set = None(),
|
|
396
502
|
subtype: str = "NONE",
|
|
397
|
-
size: typing.Sequence[int] = 3,
|
|
503
|
+
size: typing.Union[int, typing.Sequence[int]] = 3,
|
|
398
504
|
update: typing.Any = None,
|
|
399
505
|
get: typing.Any = None,
|
|
400
506
|
set: typing.Any = None,
|
|
@@ -410,10 +516,15 @@ def IntVectorProperty(
|
|
|
410
516
|
:param default: sequence of ints the length of size.
|
|
411
517
|
:type default: typing.Sequence
|
|
412
518
|
:param min: Hard minimum, trying to assign a value below will silently assign this minimum instead.
|
|
519
|
+
:type min: int
|
|
413
520
|
:param max: Hard maximum, trying to assign a value above will silently assign this maximum instead.
|
|
521
|
+
:type max: int
|
|
414
522
|
:param soft_min: Soft minimum (>= min), user won't be able to drag the widget below this value in the UI.
|
|
523
|
+
:type soft_min: int
|
|
415
524
|
:param soft_max: Soft maximum (<= max), user won't be able to drag the widget above this value in the UI.
|
|
525
|
+
:type soft_max: int
|
|
416
526
|
:param step: Step of increment/decrement in UI, in [1, 100], defaults to 1 (WARNING: unused currently!).
|
|
527
|
+
:type step: int
|
|
417
528
|
:param options: Enumerator in `rna_enum_property_flag_items`.
|
|
418
529
|
:type options: set
|
|
419
530
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|
|
@@ -423,7 +534,7 @@ def IntVectorProperty(
|
|
|
423
534
|
:param subtype: Enumerator in `rna_enum_property_subtype_number_array_items`.
|
|
424
535
|
:type subtype: str
|
|
425
536
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
426
|
-
:type size: typing.Sequence[int]
|
|
537
|
+
:type size: typing.Union[int, typing.Sequence[int]]
|
|
427
538
|
:param update: Function to be called when this value is modified,
|
|
428
539
|
This function must take 2 values (self, context) and return None.
|
|
429
540
|
Warning there are no safety checks to avoid infinite recursion.
|
|
@@ -491,7 +602,7 @@ def StringProperty(
|
|
|
491
602
|
description: str = "",
|
|
492
603
|
translation_context: str = "*",
|
|
493
604
|
default: str = "",
|
|
494
|
-
maxlen=0,
|
|
605
|
+
maxlen: int = 0,
|
|
495
606
|
options: set = {'"ANIMATABLE"'},
|
|
496
607
|
override: set = None(),
|
|
497
608
|
tags: set = None(),
|
|
@@ -513,6 +624,7 @@ def StringProperty(
|
|
|
513
624
|
:param default: initializer string.
|
|
514
625
|
:type default: str
|
|
515
626
|
:param maxlen: maximum length of the string.
|
|
627
|
+
:type maxlen: int
|
|
516
628
|
:param options: Enumerator in `rna_enum_property_flag_items`.
|
|
517
629
|
:type options: set
|
|
518
630
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|