fake-bpy-module 20250902__py3-none-any.whl → 20250904__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/node/__init__.pyi +2 -2
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/space_dopesheet/__init__.pyi +0 -24
- bl_ui/space_graph/__init__.pyi +0 -22
- bl_ui/space_nla/__init__.pyi +0 -22
- bl_ui/space_node/__init__.pyi +31 -0
- bl_ui/space_sequencer/__init__.pyi +0 -24
- bl_ui/space_time/__init__.pyi +34 -0
- bl_ui/space_toolsystem_toolbar/__init__.pyi +2 -0
- bl_ui/utils/__init__.pyi +0 -17
- bmesh/types/__init__.pyi +6 -7
- bpy/app/__init__.pyi +7 -0
- bpy/ops/node/__init__.pyi +2 -2
- bpy/ops/sequencer/__init__.pyi +39 -0
- bpy/ops/uv/__init__.pyi +38 -8
- bpy/props/__init__.pyi +293 -19
- bpy/stub_internal/rna_enums/__init__.pyi +2 -0
- bpy/types/__init__.pyi +32 -68
- {fake_bpy_module-20250902.dist-info → fake_bpy_module-20250904.dist-info}/METADATA +1 -1
- {fake_bpy_module-20250902.dist-info → fake_bpy_module-20250904.dist-info}/RECORD +24 -24
- freestyle/utils/__init__.pyi +1 -1
- mathutils/bvhtree/__init__.pyi +2 -3
- {fake_bpy_module-20250902.dist-info → fake_bpy_module-20250904.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20250902.dist-info → fake_bpy_module-20250904.dist-info}/top_level.txt +0 -0
bpy/props/__init__.pyi
CHANGED
|
@@ -69,18 +69,71 @@ of the operator, only its other properties.
|
|
|
69
69
|
|
|
70
70
|
--------------------
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
Accessor functions can be used for boolean, int, float, string and enum properties.
|
|
73
|
+
|
|
74
|
+
If get
|
|
75
|
+
|
|
76
|
+
or set
|
|
77
|
+
|
|
78
|
+
callbacks are defined, the property will not be stored in the ID properties
|
|
74
79
|
automatically. Instead, the get
|
|
75
80
|
|
|
76
81
|
and set
|
|
77
82
|
|
|
78
83
|
functions will be called when the property
|
|
79
|
-
is respectively read or written from the API.
|
|
84
|
+
is respectively read or written from the API, and are responsible to handle the data storage.
|
|
85
|
+
|
|
86
|
+
Note that:
|
|
87
|
+
|
|
88
|
+
* It is illegal to define a set
|
|
89
|
+
|
|
90
|
+
callback without a matching get
|
|
91
|
+
|
|
92
|
+
one.
|
|
93
|
+
* When a get
|
|
94
|
+
|
|
95
|
+
callback is defined but no set
|
|
96
|
+
|
|
97
|
+
one, the property is read-only.
|
|
98
|
+
|
|
99
|
+
get_transform
|
|
100
|
+
|
|
101
|
+
and set_transform
|
|
102
|
+
|
|
103
|
+
can be used when the returned value needs to be modified,
|
|
104
|
+
but the default internal storage is still used. They can only transform the value before it is
|
|
105
|
+
set or returned, but do not control how/where that data is stored.
|
|
106
|
+
|
|
107
|
+
[NOTE]
|
|
108
|
+
It is possible to define both get
|
|
109
|
+
|
|
110
|
+
/set
|
|
111
|
+
|
|
112
|
+
and get_transform
|
|
113
|
+
|
|
114
|
+
/set_transform
|
|
115
|
+
|
|
116
|
+
callbacks
|
|
117
|
+
for a same property. In practice however, this should rarely be needed, as most 'transform'
|
|
118
|
+
operation can also happen within a get
|
|
119
|
+
|
|
120
|
+
/set
|
|
121
|
+
|
|
122
|
+
callback.
|
|
80
123
|
|
|
81
124
|
[WARNING]
|
|
82
125
|
Remember that these callbacks may be executed in threaded context.
|
|
83
126
|
|
|
127
|
+
[WARNING]
|
|
128
|
+
Take care when accessing other properties in these callbacks, as it can easily trigger
|
|
129
|
+
complex issues, such as infinite loops (if e.g. two properties try to also set the other
|
|
130
|
+
property's value in their own set
|
|
131
|
+
|
|
132
|
+
callback), or unexpected side effects due to changes
|
|
133
|
+
in data, caused e.g. by an update
|
|
134
|
+
|
|
135
|
+
callback.
|
|
136
|
+
|
|
84
137
|
```../examples/bpy.props.5.py```
|
|
85
138
|
|
|
86
139
|
[NOTE]
|
|
@@ -116,6 +169,12 @@ def BoolProperty(
|
|
|
116
169
|
| None = None,
|
|
117
170
|
get: collections.abc.Callable[[bpy.types.bpy_struct], bool] | None = None,
|
|
118
171
|
set: collections.abc.Callable[[bpy.types.bpy_struct, bool], None] | None = None,
|
|
172
|
+
get_transform: collections.abc.Callable[[bpy.types.bpy_struct, bool, bool], bool]
|
|
173
|
+
| None = None,
|
|
174
|
+
set_transform: collections.abc.Callable[
|
|
175
|
+
[bpy.types.bpy_struct, bool, bool, bool], bool
|
|
176
|
+
]
|
|
177
|
+
| None = None,
|
|
119
178
|
) -> None:
|
|
120
179
|
"""Returns a new boolean property definition.
|
|
121
180
|
|
|
@@ -136,12 +195,35 @@ def BoolProperty(
|
|
|
136
195
|
This function must take 2 values (self, context) and return None.
|
|
137
196
|
Warning there are no safety checks to avoid infinite recursion.
|
|
138
197
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
139
|
-
:param get: Function to be called when this value is read,
|
|
198
|
+
:param get: Function to be called when this value is read, and the default,
|
|
199
|
+
system-defined storage is not used for this property.
|
|
140
200
|
This function must take 1 value (self) and return the value of the property.
|
|
201
|
+
|
|
202
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
141
203
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], bool] | None
|
|
142
|
-
:param set: Function to be called when this value is written,
|
|
204
|
+
:param set: Function to be called when this value is written, and the default,
|
|
205
|
+
system-defined storage is not used for this property.
|
|
143
206
|
This function must take 2 values (self, value) and return None.
|
|
207
|
+
|
|
208
|
+
Defining this callback without a matching get one is invalid.
|
|
144
209
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, bool], None] | None
|
|
210
|
+
:param get_transform: Function to be called when this value is read,
|
|
211
|
+
if some additional processing must be performed on the stored value.
|
|
212
|
+
This function must take three arguments (self, the stored value,
|
|
213
|
+
and a boolean indicating if the property is currently set),
|
|
214
|
+
and return the final, transformed value of the property.
|
|
215
|
+
|
|
216
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
217
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, bool, bool], bool] | None
|
|
218
|
+
:param set_transform: Function to be called when this value is written,
|
|
219
|
+
if some additional processing must be performed on the given value before storing it.
|
|
220
|
+
This function must take four arguments (self, the given value to store,
|
|
221
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
222
|
+
and a boolean indicating if the property is currently set),
|
|
223
|
+
and return the final, transformed value of the property.
|
|
224
|
+
|
|
225
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
226
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, bool, bool, bool], bool] | None
|
|
145
227
|
"""
|
|
146
228
|
|
|
147
229
|
def BoolVectorProperty(
|
|
@@ -163,6 +245,21 @@ def BoolVectorProperty(
|
|
|
163
245
|
| None = None,
|
|
164
246
|
set: collections.abc.Callable[[bpy.types.bpy_struct, tuple[bool, ...]], None]
|
|
165
247
|
| None = None,
|
|
248
|
+
get_transform: collections.abc.Callable[
|
|
249
|
+
[bpy.types.bpy_struct, collections.abc.Sequence[bool], bool],
|
|
250
|
+
collections.abc.Sequence[bool],
|
|
251
|
+
]
|
|
252
|
+
| None = None,
|
|
253
|
+
set_transform: collections.abc.Callable[
|
|
254
|
+
[
|
|
255
|
+
bpy.types.bpy_struct,
|
|
256
|
+
collections.abc.Sequence[bool],
|
|
257
|
+
collections.abc.Sequence[bool],
|
|
258
|
+
bool,
|
|
259
|
+
],
|
|
260
|
+
collections.abc.Sequence[bool],
|
|
261
|
+
]
|
|
262
|
+
| None = None,
|
|
166
263
|
) -> None:
|
|
167
264
|
"""Returns a new vector boolean property definition.
|
|
168
265
|
|
|
@@ -187,12 +284,35 @@ def BoolVectorProperty(
|
|
|
187
284
|
This function must take 2 values (self, context) and return None.
|
|
188
285
|
Warning there are no safety checks to avoid infinite recursion.
|
|
189
286
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
190
|
-
:param get: Function to be called when this value is read,
|
|
287
|
+
:param get: Function to be called when this value is read, and the default,
|
|
288
|
+
system-defined storage is not used for this property.
|
|
191
289
|
This function must take 1 value (self) and return the value of the property.
|
|
290
|
+
|
|
291
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
192
292
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], collections.abc.Sequence[bool]] | None
|
|
193
|
-
:param set: Function to be called when this value is written,
|
|
293
|
+
:param set: Function to be called when this value is written, and the default,
|
|
294
|
+
system-defined storage is not used for this property.
|
|
194
295
|
This function must take 2 values (self, value) and return None.
|
|
296
|
+
|
|
297
|
+
Defining this callback without a matching get one is invalid.
|
|
195
298
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, tuple[bool, ...]], None] | None
|
|
299
|
+
:param get_transform: Function to be called when this value is read,
|
|
300
|
+
if some additional processing must be performed on the stored value.
|
|
301
|
+
This function must take three arguments (self, the stored value,
|
|
302
|
+
and a boolean indicating if the property is currently set),
|
|
303
|
+
and return the final, transformed value of the property.
|
|
304
|
+
|
|
305
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
306
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, collections.abc.Sequence[bool], bool], collections.abc.Sequence[bool]] | None
|
|
307
|
+
:param set_transform: Function to be called when this value is written,
|
|
308
|
+
if some additional processing must be performed on the given value before storing it.
|
|
309
|
+
This function must take four arguments (self, the given value to store,
|
|
310
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
311
|
+
and a boolean indicating if the property is currently set),
|
|
312
|
+
and return the final, transformed value of the property.
|
|
313
|
+
|
|
314
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
315
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, collections.abc.Sequence[bool], collections.abc.Sequence[bool], bool], collections.abc.Sequence[bool]] | None
|
|
196
316
|
"""
|
|
197
317
|
|
|
198
318
|
def CollectionProperty(
|
|
@@ -252,6 +372,10 @@ def EnumProperty(
|
|
|
252
372
|
| None = None,
|
|
253
373
|
get: collections.abc.Callable[[bpy.types.bpy_struct], int] | None = None,
|
|
254
374
|
set: collections.abc.Callable[[bpy.types.bpy_struct, int], None] | None = None,
|
|
375
|
+
get_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, bool], int]
|
|
376
|
+
| None = None,
|
|
377
|
+
set_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, int, bool], int]
|
|
378
|
+
| None = None,
|
|
255
379
|
) -> None:
|
|
256
380
|
"""Returns a new enumerator property definition.
|
|
257
381
|
|
|
@@ -317,12 +441,35 @@ def EnumProperty(
|
|
|
317
441
|
This function must take 2 values (self, context) and return None.
|
|
318
442
|
Warning there are no safety checks to avoid infinite recursion.
|
|
319
443
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
320
|
-
:param get: Function to be called when this value is read,
|
|
444
|
+
:param get: Function to be called when this value is read, and the default,
|
|
445
|
+
system-defined storage is not used for this property.
|
|
321
446
|
This function must take 1 value (self) and return the value of the property.
|
|
447
|
+
|
|
448
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
322
449
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], int] | None
|
|
323
|
-
:param set: Function to be called when this value is written,
|
|
450
|
+
:param set: Function to be called when this value is written, and the default,
|
|
451
|
+
system-defined storage is not used for this property.
|
|
324
452
|
This function must take 2 values (self, value) and return None.
|
|
453
|
+
|
|
454
|
+
Defining this callback without a matching get one is invalid.
|
|
325
455
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, int], None] | None
|
|
456
|
+
:param get_transform: Function to be called when this value is read,
|
|
457
|
+
if some additional processing must be performed on the stored value.
|
|
458
|
+
This function must take three arguments (self, the stored value,
|
|
459
|
+
and a boolean indicating if the property is currently set),
|
|
460
|
+
and return the final, transformed value of the property.
|
|
461
|
+
|
|
462
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
463
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, bool], int] | None
|
|
464
|
+
:param set_transform: Function to be called when this value is written,
|
|
465
|
+
if some additional processing must be performed on the given value before storing it.
|
|
466
|
+
This function must take four arguments (self, the given value to store,
|
|
467
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
468
|
+
and a boolean indicating if the property is currently set),
|
|
469
|
+
and return the final, transformed value of the property.
|
|
470
|
+
|
|
471
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
472
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, int, bool], int] | None
|
|
326
473
|
"""
|
|
327
474
|
|
|
328
475
|
def FloatProperty(
|
|
@@ -346,6 +493,12 @@ def FloatProperty(
|
|
|
346
493
|
| None = None,
|
|
347
494
|
get: collections.abc.Callable[[bpy.types.bpy_struct], float] | None = None,
|
|
348
495
|
set: collections.abc.Callable[[bpy.types.bpy_struct, float], None] | None = None,
|
|
496
|
+
get_transform: collections.abc.Callable[[bpy.types.bpy_struct, float, bool], float]
|
|
497
|
+
| None = None,
|
|
498
|
+
set_transform: collections.abc.Callable[
|
|
499
|
+
[bpy.types.bpy_struct, float, float, bool], float
|
|
500
|
+
]
|
|
501
|
+
| None = None,
|
|
349
502
|
) -> None:
|
|
350
503
|
"""Returns a new float (single precision) property definition.
|
|
351
504
|
|
|
@@ -380,12 +533,35 @@ def FloatProperty(
|
|
|
380
533
|
This function must take 2 values (self, context) and return None.
|
|
381
534
|
Warning there are no safety checks to avoid infinite recursion.
|
|
382
535
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
383
|
-
:param get: Function to be called when this value is read,
|
|
536
|
+
:param get: Function to be called when this value is read, and the default,
|
|
537
|
+
system-defined storage is not used for this property.
|
|
384
538
|
This function must take 1 value (self) and return the value of the property.
|
|
539
|
+
|
|
540
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
385
541
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], float] | None
|
|
386
|
-
:param set: Function to be called when this value is written,
|
|
542
|
+
:param set: Function to be called when this value is written, and the default,
|
|
543
|
+
system-defined storage is not used for this property.
|
|
387
544
|
This function must take 2 values (self, value) and return None.
|
|
545
|
+
|
|
546
|
+
Defining this callback without a matching get one is invalid.
|
|
388
547
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, float], None] | None
|
|
548
|
+
:param get_transform: Function to be called when this value is read,
|
|
549
|
+
if some additional processing must be performed on the stored value.
|
|
550
|
+
This function must take three arguments (self, the stored value,
|
|
551
|
+
and a boolean indicating if the property is currently set),
|
|
552
|
+
and return the final, transformed value of the property.
|
|
553
|
+
|
|
554
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
555
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, float, bool], float] | None
|
|
556
|
+
:param set_transform: Function to be called when this value is written,
|
|
557
|
+
if some additional processing must be performed on the given value before storing it.
|
|
558
|
+
This function must take four arguments (self, the given value to store,
|
|
559
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
560
|
+
and a boolean indicating if the property is currently set),
|
|
561
|
+
and return the final, transformed value of the property.
|
|
562
|
+
|
|
563
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
564
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, float, float, bool], float] | None
|
|
389
565
|
"""
|
|
390
566
|
|
|
391
567
|
def FloatVectorProperty(
|
|
@@ -452,11 +628,17 @@ def FloatVectorProperty(
|
|
|
452
628
|
This function must take 2 values (self, context) and return None.
|
|
453
629
|
Warning there are no safety checks to avoid infinite recursion.
|
|
454
630
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
455
|
-
:param get: Function to be called when this value is read,
|
|
631
|
+
:param get: Function to be called when this value is read, and the default,
|
|
632
|
+
system-defined storage is not used for this property.
|
|
456
633
|
This function must take 1 value (self) and return the value of the property.
|
|
634
|
+
|
|
635
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
457
636
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], collections.abc.Sequence[float]] | None
|
|
458
|
-
:param set: Function to be called when this value is written,
|
|
637
|
+
:param set: Function to be called when this value is written, and the default,
|
|
638
|
+
system-defined storage is not used for this property.
|
|
459
639
|
This function must take 2 values (self, value) and return None.
|
|
640
|
+
|
|
641
|
+
Defining this callback without a matching get one is invalid.
|
|
460
642
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, tuple[float, ...]], None] | None
|
|
461
643
|
"""
|
|
462
644
|
|
|
@@ -479,6 +661,10 @@ def IntProperty(
|
|
|
479
661
|
| None = None,
|
|
480
662
|
get: collections.abc.Callable[[bpy.types.bpy_struct], int] | None = None,
|
|
481
663
|
set: collections.abc.Callable[[bpy.types.bpy_struct, int], None] | None = None,
|
|
664
|
+
get_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, bool], int]
|
|
665
|
+
| None = None,
|
|
666
|
+
set_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, int, bool], int]
|
|
667
|
+
| None = None,
|
|
482
668
|
) -> None:
|
|
483
669
|
"""Returns a new int property definition.
|
|
484
670
|
|
|
@@ -509,12 +695,35 @@ def IntProperty(
|
|
|
509
695
|
This function must take 2 values (self, context) and return None.
|
|
510
696
|
Warning there are no safety checks to avoid infinite recursion.
|
|
511
697
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
512
|
-
:param get: Function to be called when this value is read,
|
|
698
|
+
:param get: Function to be called when this value is read, and the default,
|
|
699
|
+
system-defined storage is not used for this property.
|
|
513
700
|
This function must take 1 value (self) and return the value of the property.
|
|
701
|
+
|
|
702
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
514
703
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], int] | None
|
|
515
|
-
:param set: Function to be called when this value is written,
|
|
704
|
+
:param set: Function to be called when this value is written, and the default,
|
|
705
|
+
system-defined storage is not used for this property.
|
|
516
706
|
This function must take 2 values (self, value) and return None.
|
|
707
|
+
|
|
708
|
+
Defining this callback without a matching get one is invalid.
|
|
517
709
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, int], None] | None
|
|
710
|
+
:param get_transform: Function to be called when this value is read,
|
|
711
|
+
if some additional processing must be performed on the stored value.
|
|
712
|
+
This function must take three arguments (self, the stored value,
|
|
713
|
+
and a boolean indicating if the property is currently set),
|
|
714
|
+
and return the final, transformed value of the property.
|
|
715
|
+
|
|
716
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
717
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, bool], int] | None
|
|
718
|
+
:param set_transform: Function to be called when this value is written,
|
|
719
|
+
if some additional processing must be performed on the given value before storing it.
|
|
720
|
+
This function must take four arguments (self, the given value to store,
|
|
721
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
722
|
+
and a boolean indicating if the property is currently set),
|
|
723
|
+
and return the final, transformed value of the property.
|
|
724
|
+
|
|
725
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
726
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, int, int, bool], int] | None
|
|
518
727
|
"""
|
|
519
728
|
|
|
520
729
|
def IntVectorProperty(
|
|
@@ -539,6 +748,21 @@ def IntVectorProperty(
|
|
|
539
748
|
| None = None,
|
|
540
749
|
set: collections.abc.Callable[[bpy.types.bpy_struct, tuple[int, ...]], None]
|
|
541
750
|
| None = None,
|
|
751
|
+
get_transform: collections.abc.Callable[
|
|
752
|
+
[bpy.types.bpy_struct, collections.abc.Sequence[int], bool],
|
|
753
|
+
collections.abc.Sequence[int],
|
|
754
|
+
]
|
|
755
|
+
| None = None,
|
|
756
|
+
set_transform: collections.abc.Callable[
|
|
757
|
+
[
|
|
758
|
+
bpy.types.bpy_struct,
|
|
759
|
+
collections.abc.Sequence[int],
|
|
760
|
+
collections.abc.Sequence[int],
|
|
761
|
+
bool,
|
|
762
|
+
],
|
|
763
|
+
collections.abc.Sequence[int],
|
|
764
|
+
]
|
|
765
|
+
| None = None,
|
|
542
766
|
) -> None:
|
|
543
767
|
"""Returns a new vector int property definition.
|
|
544
768
|
|
|
@@ -573,12 +797,35 @@ def IntVectorProperty(
|
|
|
573
797
|
This function must take 2 values (self, context) and return None.
|
|
574
798
|
Warning there are no safety checks to avoid infinite recursion.
|
|
575
799
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
576
|
-
:param get: Function to be called when this value is read,
|
|
800
|
+
:param get: Function to be called when this value is read, and the default,
|
|
801
|
+
system-defined storage is not used for this property.
|
|
577
802
|
This function must take 1 value (self) and return the value of the property.
|
|
803
|
+
|
|
804
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
578
805
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], collections.abc.Sequence[int]] | None
|
|
579
|
-
:param set: Function to be called when this value is written,
|
|
806
|
+
:param set: Function to be called when this value is written, and the default,
|
|
807
|
+
system-defined storage is not used for this property.
|
|
580
808
|
This function must take 2 values (self, value) and return None.
|
|
809
|
+
|
|
810
|
+
Defining this callback without a matching get one is invalid.
|
|
581
811
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, tuple[int, ...]], None] | None
|
|
812
|
+
:param get_transform: Function to be called when this value is read,
|
|
813
|
+
if some additional processing must be performed on the stored value.
|
|
814
|
+
This function must take three arguments (self, the stored value,
|
|
815
|
+
and a boolean indicating if the property is currently set),
|
|
816
|
+
and return the final, transformed value of the property.
|
|
817
|
+
|
|
818
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
819
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, collections.abc.Sequence[int], bool], collections.abc.Sequence[int]] | None
|
|
820
|
+
:param set_transform: Function to be called when this value is written,
|
|
821
|
+
if some additional processing must be performed on the given value before storing it.
|
|
822
|
+
This function must take four arguments (self, the given value to store,
|
|
823
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
824
|
+
and a boolean indicating if the property is currently set),
|
|
825
|
+
and return the final, transformed value of the property.
|
|
826
|
+
|
|
827
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
828
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, collections.abc.Sequence[int], collections.abc.Sequence[int], bool], collections.abc.Sequence[int]] | None
|
|
582
829
|
"""
|
|
583
830
|
|
|
584
831
|
def PointerProperty(
|
|
@@ -645,6 +892,10 @@ def StringProperty(
|
|
|
645
892
|
| None = None,
|
|
646
893
|
get: collections.abc.Callable[[bpy.types.bpy_struct], str] | None = None,
|
|
647
894
|
set: collections.abc.Callable[[bpy.types.bpy_struct, str], None] | None = None,
|
|
895
|
+
get_transform: collections.abc.Callable[[bpy.types.bpy_struct, str, bool], str]
|
|
896
|
+
| None = None,
|
|
897
|
+
set_transform: collections.abc.Callable[[bpy.types.bpy_struct, str, str, bool], str]
|
|
898
|
+
| None = None,
|
|
648
899
|
search: collections.abc.Callable[
|
|
649
900
|
[bpy.types.bpy_struct, bpy.types.Context, str],
|
|
650
901
|
collections.abc.Iterable[str | tuple[str, str]],
|
|
@@ -675,12 +926,35 @@ def StringProperty(
|
|
|
675
926
|
This function must take 2 values (self, context) and return None.
|
|
676
927
|
Warning there are no safety checks to avoid infinite recursion.
|
|
677
928
|
:type update: collections.abc.Callable[[bpy.types.bpy_struct, bpy.types.Context], None] | None
|
|
678
|
-
:param get: Function to be called when this value is read,
|
|
929
|
+
:param get: Function to be called when this value is read, and the default,
|
|
930
|
+
system-defined storage is not used for this property.
|
|
679
931
|
This function must take 1 value (self) and return the value of the property.
|
|
932
|
+
|
|
933
|
+
Defining this callback without a matching set one will make the property read-only (even if READ_ONLY option is not set).
|
|
680
934
|
:type get: collections.abc.Callable[[bpy.types.bpy_struct], str] | None
|
|
681
|
-
:param set: Function to be called when this value is written,
|
|
935
|
+
:param set: Function to be called when this value is written, and the default,
|
|
936
|
+
system-defined storage is not used for this property.
|
|
682
937
|
This function must take 2 values (self, value) and return None.
|
|
938
|
+
|
|
939
|
+
Defining this callback without a matching get one is invalid.
|
|
683
940
|
:type set: collections.abc.Callable[[bpy.types.bpy_struct, str], None] | None
|
|
941
|
+
:param get_transform: Function to be called when this value is read,
|
|
942
|
+
if some additional processing must be performed on the stored value.
|
|
943
|
+
This function must take three arguments (self, the stored value,
|
|
944
|
+
and a boolean indicating if the property is currently set),
|
|
945
|
+
and return the final, transformed value of the property.
|
|
946
|
+
|
|
947
|
+
The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
948
|
+
:type get_transform: collections.abc.Callable[[bpy.types.bpy_struct, str, bool], str] | None
|
|
949
|
+
:param set_transform: Function to be called when this value is written,
|
|
950
|
+
if some additional processing must be performed on the given value before storing it.
|
|
951
|
+
This function must take four arguments (self, the given value to store,
|
|
952
|
+
the currently stored value (raw value, without any get_transform applied to it),
|
|
953
|
+
and a boolean indicating if the property is currently set),
|
|
954
|
+
and return the final, transformed value of the property.
|
|
955
|
+
|
|
956
|
+
The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
|
|
957
|
+
:type set_transform: collections.abc.Callable[[bpy.types.bpy_struct, str, str, bool], str] | None
|
|
684
958
|
:param search: Function to be called to show candidates for this string (shown in the UI).
|
|
685
959
|
This function must take 3 values (self, context, edit_text)
|
|
686
960
|
and return a sequence, iterator or generator where each item must be:
|
|
@@ -2533,6 +2533,7 @@ type PropDynamicpaintTypeItems = typing.Literal[
|
|
|
2533
2533
|
"BRUSH", # Brush.
|
|
2534
2534
|
]
|
|
2535
2535
|
type PropertyFlagEnumItems = typing.Literal[
|
|
2536
|
+
"READ_ONLY", # Read Only.When set, the property cannot be edited.
|
|
2536
2537
|
"HIDDEN", # Hidden.For operators: hide from places in the user interface where Blender would add the property automatically, like Adjust Last Operation. Also this property is not written to presets..
|
|
2537
2538
|
"SKIP_SAVE", # Skip Save.For operators: the value of this property will not be remembered between invocations of the operator; instead, each invocation will start by using the default value. Also this property is not written to presets..
|
|
2538
2539
|
"ANIMATABLE", # Animatable.
|
|
@@ -2540,6 +2541,7 @@ type PropertyFlagEnumItems = typing.Literal[
|
|
|
2540
2541
|
"ENUM_FLAG", # Enum Flag.
|
|
2541
2542
|
]
|
|
2542
2543
|
type PropertyFlagItems = typing.Literal[
|
|
2544
|
+
"READ_ONLY", # Read Only.When set, the property cannot be edited.
|
|
2543
2545
|
"HIDDEN", # Hidden.For operators: hide from places in the user interface where Blender would add the property automatically, like Adjust Last Operation. Also this property is not written to presets..
|
|
2544
2546
|
"SKIP_SAVE", # Skip Save.For operators: the value of this property will not be remembered between invocations of the operator; instead, each invocation will start by using the default value. Also this property is not written to presets..
|
|
2545
2547
|
"SKIP_PRESET", # Skip Preset.Do not write in presets.
|