fake-bpy-module 20250828__py3-none-any.whl → 20260118__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -11
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +1 -0
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +2 -0
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- _bpy_internal/__init__.pyi +3 -1
- _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
- _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
- _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
- _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
- _bpy_internal/filesystem/__init__.pyi +5 -0
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_types/__init__.pyi +115 -117
- {rna_info → _rna_info}/__init__.pyi +0 -1
- addon_utils/__init__.pyi +0 -13
- aud/__init__.pyi +66 -142
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +5 -0
- bl_app_templates_system/py.typed +0 -0
- bl_math/__init__.pyi +2 -12
- bl_operators/__init__.pyi +1 -0
- bl_operators/add_mesh_torus/__init__.pyi +0 -2
- bl_operators/anim/__init__.pyi +47 -24
- bl_operators/assets/__init__.pyi +0 -6
- bl_operators/bone_selection_sets/__init__.pyi +0 -28
- bl_operators/clip/__init__.pyi +0 -20
- bl_operators/connect_to_output/__init__.pyi +0 -2
- bl_operators/console/__init__.pyi +0 -10
- bl_operators/constraint/__init__.pyi +0 -8
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +0 -6
- bl_operators/freestyle/__init__.pyi +0 -8
- bl_operators/geometry_nodes/__init__.pyi +0 -8
- bl_operators/grease_pencil/__init__.pyi +0 -2
- bl_operators/image/__init__.pyi +0 -10
- bl_operators/image_as_planes/__init__.pyi +0 -4
- bl_operators/mesh/__init__.pyi +0 -47
- bl_operators/node/__init__.pyi +277 -57
- bl_operators/object/__init__.pyi +0 -37
- bl_operators/object_align/__init__.pyi +0 -2
- bl_operators/object_quick_effects/__init__.pyi +0 -8
- bl_operators/object_randomize_transform/__init__.pyi +0 -2
- bl_operators/presets/__init__.pyi +1 -51
- bl_operators/rigidbody/__init__.pyi +0 -6
- bl_operators/screen_play_rendered_anim/__init__.pyi +0 -2
- bl_operators/sequencer/__init__.pyi +0 -16
- bl_operators/spreadsheet/__init__.pyi +0 -2
- bl_operators/userpref/__init__.pyi +0 -50
- bl_operators/uvcalc_follow_active/__init__.pyi +1 -3
- bl_operators/uvcalc_lightmap/__init__.pyi +0 -2
- bl_operators/uvcalc_transform/__init__.pyi +21 -12
- bl_operators/vertexpaint_dirt/__init__.pyi +0 -2
- bl_operators/view3d/__init__.pyi +0 -16
- bl_operators/wm/__init__.pyi +0 -92
- bl_operators/world/__init__.pyi +0 -2
- bl_ui/__init__.pyi +3 -4
- bl_ui/anim/__init__.pyi +0 -2
- bl_ui/asset_shelf/__init__.pyi +0 -2
- bl_ui/generic_ui_list/__init__.pyi +1 -17
- bl_ui/node_add_menu/__init__.pyi +261 -6
- bl_ui/node_add_menu_compositor/__init__.pyi +96 -80
- bl_ui/node_add_menu_geometry/__init__.pyi +266 -306
- bl_ui/node_add_menu_shader/__init__.pyi +49 -50
- bl_ui/node_add_menu_texture/__init__.pyi +16 -62
- bl_ui/properties_collection/__init__.pyi +0 -14
- bl_ui/properties_constraint/__init__.pyi +55 -209
- bl_ui/properties_data_armature/__init__.pyi +0 -36
- bl_ui/properties_data_bone/__init__.pyi +0 -20
- bl_ui/properties_data_camera/__init__.pyi +0 -30
- bl_ui/properties_data_curve/__init__.pyi +0 -30
- bl_ui/properties_data_curves/__init__.pyi +0 -16
- bl_ui/properties_data_empty/__init__.pyi +0 -4
- bl_ui/properties_data_grease_pencil/__init__.pyi +0 -40
- bl_ui/properties_data_lattice/__init__.pyi +0 -8
- bl_ui/properties_data_light/__init__.pyi +0 -20
- bl_ui/properties_data_lightprobe/__init__.pyi +0 -28
- bl_ui/properties_data_mesh/__init__.pyi +1 -42
- bl_ui/properties_data_metaball/__init__.pyi +0 -12
- bl_ui/properties_data_modifier/__init__.pyi +12 -19
- bl_ui/properties_data_pointcloud/__init__.pyi +0 -12
- bl_ui/properties_data_shaderfx/__init__.pyi +0 -2
- bl_ui/properties_data_speaker/__init__.pyi +0 -12
- bl_ui/properties_data_volume/__init__.pyi +0 -18
- bl_ui/properties_freestyle/__init__.pyi +0 -50
- bl_ui/properties_grease_pencil_common/__init__.pyi +0 -159
- bl_ui/properties_mask_common/__init__.pyi +0 -14
- bl_ui/properties_material/__init__.pyi +0 -32
- bl_ui/properties_material_gpencil/__init__.pyi +23 -45
- bl_ui/properties_object/__init__.pyi +35 -42
- bl_ui/properties_output/__init__.pyi +0 -40
- bl_ui/properties_paint_common/__init__.pyi +23 -19
- bl_ui/properties_particle/__init__.pyi +0 -106
- bl_ui/properties_physics_cloth/__init__.pyi +0 -28
- bl_ui/properties_physics_common/__init__.pyi +0 -2
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +0 -44
- bl_ui/properties_physics_field/__init__.pyi +0 -20
- bl_ui/properties_physics_fluid/__init__.pyi +0 -56
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +0 -2
- bl_ui/properties_physics_rigidbody/__init__.pyi +0 -16
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +0 -26
- bl_ui/properties_physics_softbody/__init__.pyi +0 -30
- bl_ui/properties_render/__init__.pyi +58 -86
- bl_ui/properties_scene/__init__.pyi +0 -34
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +0 -54
- bl_ui/properties_view_layer/__init__.pyi +7 -28
- bl_ui/properties_workspace/__init__.pyi +0 -8
- bl_ui/properties_world/__init__.pyi +0 -22
- bl_ui/space_clip/__init__.pyi +82 -166
- bl_ui/space_console/__init__.pyi +0 -12
- bl_ui/space_dopesheet/__init__.pyi +67 -76
- bl_ui/space_filebrowser/__init__.pyi +0 -60
- bl_ui/space_graph/__init__.pyi +0 -66
- bl_ui/space_image/__init__.pyi +28 -162
- bl_ui/space_info/__init__.pyi +0 -12
- bl_ui/space_nla/__init__.pyi +0 -58
- bl_ui/space_node/__init__.pyi +99 -132
- bl_ui/space_outliner/__init__.pyi +0 -30
- bl_ui/space_properties/__init__.pyi +29 -6
- bl_ui/space_sequencer/__init__.pyi +159 -987
- bl_ui/space_spreadsheet/__init__.pyi +0 -6
- bl_ui/space_statusbar/__init__.pyi +0 -2
- bl_ui/space_text/__init__.pyi +0 -32
- bl_ui/space_time/__init__.pyi +29 -22
- bl_ui/space_toolsystem_toolbar/__init__.pyi +7 -2
- bl_ui/space_topbar/__init__.pyi +7 -52
- bl_ui/space_userpref/__init__.pyi +77 -225
- bl_ui/space_view3d/__init__.pyi +69 -551
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +22 -799
- bl_ui/utils/__init__.pyi +0 -17
- blf/__init__.pyi +6 -50
- bmesh/__init__.pyi +0 -7
- bmesh/geometry/__init__.pyi +0 -3
- bmesh/ops/__init__.pyi +5 -450
- bmesh/types/__init__.pyi +298 -639
- bmesh/utils/__init__.pyi +16 -43
- bpy/app/__init__.pyi +66 -58
- bpy/app/icons/__init__.pyi +0 -6
- bpy/app/timers/__init__.pyi +0 -6
- bpy/app/translations/__init__.pyi +1 -16
- bpy/msgbus/__init__.pyi +1 -4
- bpy/ops/action/__init__.pyi +17 -186
- bpy/ops/anim/__init__.pyi +38 -279
- bpy/ops/armature/__init__.pyi +20 -191
- bpy/ops/asset/__init__.pyi +11 -97
- bpy/ops/boid/__init__.pyi +7 -38
- bpy/ops/brush/__init__.pyi +3 -104
- bpy/ops/buttons/__init__.pyi +4 -71
- bpy/ops/cachefile/__init__.pyi +2 -63
- bpy/ops/camera/__init__.pyi +0 -11
- bpy/ops/clip/__init__.pyi +43 -427
- bpy/ops/cloth/__init__.pyi +0 -5
- bpy/ops/collection/__init__.pyi +3 -35
- bpy/ops/console/__init__.pyi +10 -88
- bpy/ops/constraint/__init__.pyi +3 -80
- bpy/ops/curve/__init__.pyi +23 -254
- bpy/ops/curves/__init__.pyi +54 -149
- bpy/ops/cycles/__init__.pyi +1 -14
- bpy/ops/dpaint/__init__.pyi +3 -21
- bpy/ops/ed/__init__.pyi +10 -82
- bpy/ops/export_anim/__init__.pyi +2 -10
- bpy/ops/export_scene/__init__.pyi +1 -155
- bpy/ops/extensions/__init__.pyi +15 -150
- bpy/ops/file/__init__.pyi +29 -216
- bpy/ops/fluid/__init__.pyi +13 -70
- bpy/ops/font/__init__.pyi +10 -134
- bpy/ops/geometry/__init__.pyi +3 -124
- bpy/ops/gizmogroup/__init__.pyi +1 -12
- bpy/ops/gpencil/__init__.pyi +5 -49
- bpy/ops/graph/__init__.pyi +20 -315
- bpy/ops/grease_pencil/__init__.pyi +62 -523
- bpy/ops/image/__init__.pyi +19 -379
- bpy/ops/import_anim/__init__.pyi +2 -16
- bpy/ops/import_curve/__init__.pyi +0 -6
- bpy/ops/import_scene/__init__.pyi +0 -50
- bpy/ops/info/__init__.pyi +4 -35
- bpy/ops/lattice/__init__.pyi +3 -33
- bpy/ops/marker/__init__.pyi +4 -49
- bpy/ops/mask/__init__.pyi +17 -176
- bpy/ops/material/__init__.pyi +3 -15
- bpy/ops/mball/__init__.pyi +1 -30
- bpy/ops/mesh/__init__.pyi +34 -932
- bpy/ops/nla/__init__.pyi +22 -183
- bpy/ops/node/__init__.pyi +420 -625
- bpy/ops/object/__init__.pyi +197 -1239
- bpy/ops/outliner/__init__.pyi +47 -327
- bpy/ops/paint/__init__.pyi +29 -282
- bpy/ops/paintcurve/__init__.pyi +4 -36
- bpy/ops/palette/__init__.pyi +3 -27
- bpy/ops/particle/__init__.pyi +20 -160
- bpy/ops/pointcloud/__init__.pyi +3 -35
- bpy/ops/pose/__init__.pyi +29 -234
- bpy/ops/poselib/__init__.pyi +19 -66
- bpy/ops/preferences/__init__.pyi +9 -177
- bpy/ops/ptcache/__init__.pyi +5 -31
- bpy/ops/render/__init__.pyi +10 -68
- bpy/ops/rigidbody/__init__.pyi +6 -56
- bpy/ops/scene/__init__.pyi +23 -168
- bpy/ops/screen/__init__.pyi +36 -202
- bpy/ops/script/__init__.pyi +1 -12
- bpy/ops/sculpt/__init__.pyi +42 -313
- bpy/ops/sculpt_curves/__init__.pyi +6 -21
- bpy/ops/sequencer/__init__.pyi +187 -644
- bpy/ops/sound/__init__.pyi +3 -109
- bpy/ops/spreadsheet/__init__.pyi +5 -32
- bpy/ops/surface/__init__.pyi +0 -48
- bpy/ops/text/__init__.pyi +27 -225
- bpy/ops/text_editor/__init__.pyi +0 -5
- bpy/ops/texture/__init__.pyi +3 -18
- bpy/ops/transform/__init__.pyi +10 -382
- bpy/ops/ui/__init__.pyi +29 -154
- bpy/ops/uilist/__init__.pyi +0 -13
- bpy/ops/uv/__init__.pyi +195 -288
- bpy/ops/view2d/__init__.pyi +3 -73
- bpy/ops/view3d/__init__.pyi +37 -339
- bpy/ops/wm/__init__.pyi +129 -1317
- bpy/ops/workspace/__init__.pyi +7 -39
- bpy/ops/world/__init__.pyi +2 -10
- bpy/path/__init__.pyi +0 -34
- bpy/props/__init__.pyi +332 -203
- bpy/stub_internal/rna_enums/__init__.pyi +102 -82
- bpy/types/__init__.pyi +51712 -89245
- bpy/utils/__init__.pyi +4 -75
- bpy/utils/previews/__init__.pyi +1 -10
- bpy/utils/units/__init__.pyi +0 -12
- bpy_extras/anim_utils/__init__.pyi +24 -16
- bpy_extras/bmesh_utils/__init__.pyi +0 -1
- bpy_extras/id_map_utils/__init__.pyi +14 -6
- bpy_extras/image_utils/__init__.pyi +0 -9
- bpy_extras/io_utils/__init__.pyi +4 -23
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/mesh_utils/__init__.pyi +0 -12
- bpy_extras/node_shader_utils/__init__.pyi +0 -8
- bpy_extras/object_utils/__init__.pyi +0 -14
- bpy_extras/view3d_utils/__init__.pyi +0 -18
- {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260118.dist-info}/METADATA +4 -1
- fake_bpy_module-20260118.dist-info/RECORD +385 -0
- {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260118.dist-info}/top_level.txt +15 -14
- freestyle/chainingiterators/__init__.pyi +0 -22
- freestyle/functions/__init__.pyi +0 -139
- freestyle/predicates/__init__.pyi +0 -51
- freestyle/shaders/__init__.pyi +0 -65
- freestyle/types/__init__.pyi +139 -777
- freestyle/utils/ContextFunctions/__init__.pyi +0 -23
- freestyle/utils/__init__.pyi +0 -6
- gpu/capabilities/__init__.pyi +0 -21
- gpu/matrix/__init__.pyi +1 -10
- gpu/platform/__init__.pyi +0 -5
- gpu/shader/__init__.pyi +22 -6
- gpu/state/__init__.pyi +59 -38
- gpu/texture/__init__.pyi +0 -2
- gpu/types/__init__.pyi +84 -152
- gpu_extras/batch/__init__.pyi +0 -4
- gpu_extras/presets/__init__.pyi +6 -8
- idprop/types/__init__.pyi +6 -6
- imbuf/__init__.pyi +2 -9
- imbuf/types/__init__.pyi +5 -25
- keyingsets_builtins/__init__.pyi +1 -45
- mathutils/__init__.pyi +106 -2168
- mathutils/bvhtree/__init__.pyi +3 -25
- mathutils/geometry/__init__.pyi +41 -133
- mathutils/interpolate/__init__.pyi +3 -4
- mathutils/kdtree/__init__.pyi +0 -11
- mathutils/noise/__init__.pyi +0 -62
- fake_bpy_module-20250828.dist-info/RECORD +0 -370
- {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
- {bl_console_utils → _bl_console_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
- {bl_previews_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
- {bl_rna_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
- {bl_text_utils → _bl_text_utils}/py.typed +0 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
- {bl_ui_utils → _bl_ui_utils}/py.typed +0 -0
- /_bpy_internal/{freedesktop → platform/freedesktop}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {console_python → _console_python}/__init__.pyi +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/__init__.pyi +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/__init__.pyi +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/__init__.pyi +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
- {fake_bpy_module-20250828.dist-info → fake_bpy_module-20260118.dist-info}/WHEEL +0 -0
bmesh/utils/__init__.pyi
CHANGED
|
@@ -14,11 +14,8 @@ def edge_rotate(edge: bmesh.types.BMEdge, ccw: bool = False) -> bmesh.types.BMEd
|
|
|
14
14
|
If rotating the edge fails, None will be returned.
|
|
15
15
|
|
|
16
16
|
:param edge: The edge to rotate.
|
|
17
|
-
:type edge: bmesh.types.BMEdge
|
|
18
17
|
:param ccw: When True the edge will be rotated counter clockwise.
|
|
19
|
-
:type ccw: bool
|
|
20
18
|
:return: The newly rotated edge.
|
|
21
|
-
:rtype: bmesh.types.BMEdge
|
|
22
19
|
"""
|
|
23
20
|
|
|
24
21
|
def edge_split(
|
|
@@ -27,27 +24,22 @@ def edge_split(
|
|
|
27
24
|
"""Split an edge, return the newly created data.
|
|
28
25
|
|
|
29
26
|
:param edge: The edge to split.
|
|
30
|
-
:type edge: bmesh.types.BMEdge
|
|
31
27
|
:param vert: One of the verts on the edge, defines the split direction.
|
|
32
|
-
:type vert: bmesh.types.BMVert
|
|
33
28
|
:param fac: The point on the edge where the new vert will be created [0 - 1].
|
|
34
|
-
:type fac: float
|
|
35
29
|
:return: The newly created (edge, vert) pair.
|
|
36
|
-
:rtype: tuple[bmesh.types.BMEdge, bmesh.types.BMVert]
|
|
37
30
|
"""
|
|
38
31
|
|
|
39
32
|
def face_flip(faces) -> None:
|
|
40
33
|
"""Flip the faces direction."""
|
|
41
34
|
|
|
42
|
-
def face_join(
|
|
35
|
+
def face_join(
|
|
36
|
+
faces: collections.abc.Sequence[bmesh.types.BMFace], remove: bool = True
|
|
37
|
+
) -> bmesh.types.BMFace:
|
|
43
38
|
"""Joins a sequence of faces.
|
|
44
39
|
|
|
45
40
|
:param faces: Sequence of faces.
|
|
46
|
-
:type faces: bmesh.types.BMFace
|
|
47
41
|
:param remove: Remove the edges and vertices between the faces.
|
|
48
|
-
:type remove: bool
|
|
49
42
|
:return: The newly created face or None on failure.
|
|
50
|
-
:rtype: bmesh.types.BMFace
|
|
51
43
|
"""
|
|
52
44
|
|
|
53
45
|
def face_split(
|
|
@@ -62,19 +54,12 @@ def face_split(
|
|
|
62
54
|
"""Face split with optional intermediate points.
|
|
63
55
|
|
|
64
56
|
:param face: The face to cut.
|
|
65
|
-
:type face: bmesh.types.BMFace
|
|
66
57
|
:param vert_a: First vertex to cut in the face (face must contain the vert).
|
|
67
|
-
:type vert_a: bmesh.types.BMVert
|
|
68
58
|
:param vert_b: Second vertex to cut in the face (face must contain the vert).
|
|
69
|
-
:type vert_b: bmesh.types.BMVert
|
|
70
59
|
:param coords: Optional sequence of 3D points in between vert_a and vert_b.
|
|
71
|
-
:type coords: collections.abc.Sequence[collections.abc.Sequence[float]]
|
|
72
60
|
:param use_exist: .Use an existing edge if it exists (Only used when coords argument is empty or omitted)
|
|
73
|
-
:type use_exist: bool
|
|
74
61
|
:param example: Newly created edge will copy settings from this one.
|
|
75
|
-
:type example: bmesh.types.BMEdge | None
|
|
76
62
|
:return: The newly created face or None on failure.
|
|
77
|
-
:rtype: tuple[bmesh.types.BMFace, bmesh.types.BMLoop]
|
|
78
63
|
"""
|
|
79
64
|
|
|
80
65
|
def face_split_edgenet(
|
|
@@ -82,12 +67,9 @@ def face_split_edgenet(
|
|
|
82
67
|
) -> tuple[bmesh.types.BMFace, ...]:
|
|
83
68
|
"""Splits a face into any number of regions defined by an edgenet.
|
|
84
69
|
|
|
85
|
-
:param face: The face to split.
|
|
86
|
-
:type face: bmesh.types.BMFace
|
|
70
|
+
:param face: The face to split.
|
|
87
71
|
:param edgenet: Sequence of edges.
|
|
88
|
-
:type edgenet: collections.abc.Sequence[bmesh.types.BMEdge]
|
|
89
72
|
:return: The newly created faces.
|
|
90
|
-
:rtype: tuple[bmesh.types.BMFace, ...]
|
|
91
73
|
"""
|
|
92
74
|
|
|
93
75
|
def face_vert_separate(
|
|
@@ -96,20 +78,26 @@ def face_vert_separate(
|
|
|
96
78
|
"""Rip a vertex in a face away and add a new vertex.
|
|
97
79
|
|
|
98
80
|
:param face: The face to separate.
|
|
99
|
-
:type face: bmesh.types.BMFace
|
|
100
81
|
:param vert: A vertex in the face to separate.
|
|
101
|
-
:type vert: bmesh.types.BMVert
|
|
102
82
|
:return: The newly created vertex or None on failure.
|
|
103
|
-
:rtype: bmesh.types.BMVert
|
|
104
83
|
"""
|
|
105
84
|
|
|
106
85
|
def loop_separate(loop: bmesh.types.BMLoop) -> bmesh.types.BMVert:
|
|
107
86
|
"""Rip a vertex in a face away and add a new vertex.
|
|
108
87
|
|
|
109
88
|
:param loop: The loop to separate.
|
|
110
|
-
:type loop: bmesh.types.BMLoop
|
|
111
89
|
:return: The newly created vertex or None on failure.
|
|
112
|
-
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
def uv_select_check(
|
|
93
|
+
bm, /, *, sync: bool = True, flush: bool = False, contiguous: bool = False
|
|
94
|
+
) -> None | dict[str, int]:
|
|
95
|
+
"""Check UV selection state for consistency issues.
|
|
96
|
+
|
|
97
|
+
:param sync: Check the data is properly synchronized between UVs and the underlying mesh. Failure to synchronize with the mesh selection may cause tools not to behave properly.
|
|
98
|
+
:param flush: Check the selection has been properly flushed between elements (based on the current `BMesh.select_mode`).
|
|
99
|
+
:param contiguous: Check connected UVs and edges have a matching selection state.
|
|
100
|
+
:return: An error dictionary or None when there are no errors found.
|
|
113
101
|
"""
|
|
114
102
|
|
|
115
103
|
def vert_collapse_edge(
|
|
@@ -118,11 +106,8 @@ def vert_collapse_edge(
|
|
|
118
106
|
"""Collapse a vertex into an edge.
|
|
119
107
|
|
|
120
108
|
:param vert: The vert that will be collapsed.
|
|
121
|
-
:type vert: bmesh.types.BMVert
|
|
122
109
|
:param edge: The edge to collapse into.
|
|
123
|
-
:type edge: bmesh.types.BMEdge
|
|
124
110
|
:return: The resulting edge from the collapse operation.
|
|
125
|
-
:rtype: bmesh.types.BMEdge
|
|
126
111
|
"""
|
|
127
112
|
|
|
128
113
|
def vert_collapse_faces(
|
|
@@ -131,44 +116,32 @@ def vert_collapse_faces(
|
|
|
131
116
|
"""Collapses a vertex that has only two manifold edges onto a vertex it shares an edge with.
|
|
132
117
|
|
|
133
118
|
:param vert: The vert that will be collapsed.
|
|
134
|
-
:type vert: bmesh.types.BMVert
|
|
135
119
|
:param edge: The edge to collapse into.
|
|
136
|
-
:type edge: bmesh.types.BMEdge
|
|
137
120
|
:param fac: The factor to use when merging customdata [0 - 1].
|
|
138
|
-
:type fac: float
|
|
139
121
|
:param join_faces: When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one.
|
|
140
|
-
:type join_faces: bool
|
|
141
122
|
:return: The resulting edge from the collapse operation.
|
|
142
|
-
:rtype: bmesh.types.BMEdge
|
|
143
123
|
"""
|
|
144
124
|
|
|
145
125
|
def vert_dissolve(vert: bmesh.types.BMVert) -> bool:
|
|
146
126
|
"""Dissolve this vertex (will be removed).
|
|
147
127
|
|
|
148
128
|
:param vert: The vert to be dissolved.
|
|
149
|
-
:type vert: bmesh.types.BMVert
|
|
150
129
|
:return: True when the vertex dissolve is successful.
|
|
151
|
-
:rtype: bool
|
|
152
130
|
"""
|
|
153
131
|
|
|
154
132
|
def vert_separate(
|
|
155
|
-
vert: bmesh.types.BMVert, edges: bmesh.types.BMEdge
|
|
133
|
+
vert: bmesh.types.BMVert, edges: collections.abc.Sequence[bmesh.types.BMEdge]
|
|
156
134
|
) -> tuple[bmesh.types.BMVert, ...]:
|
|
157
135
|
"""Separate this vertex at every edge.
|
|
158
136
|
|
|
159
137
|
:param vert: The vert to be separated.
|
|
160
|
-
:type vert: bmesh.types.BMVert
|
|
161
138
|
:param edges: The edges to separated.
|
|
162
|
-
:type edges: bmesh.types.BMEdge
|
|
163
139
|
:return: The newly separated verts (including the vertex passed).
|
|
164
|
-
:rtype: tuple[bmesh.types.BMVert, ...]
|
|
165
140
|
"""
|
|
166
141
|
|
|
167
142
|
def vert_splice(vert: bmesh.types.BMVert, vert_target: bmesh.types.BMVert) -> None:
|
|
168
143
|
"""Splice vert into vert_target.
|
|
169
144
|
|
|
170
145
|
:param vert: The vertex to be removed.
|
|
171
|
-
:type vert: bmesh.types.BMVert
|
|
172
146
|
:param vert_target: The vertex to use.
|
|
173
|
-
:type vert_target: bmesh.types.BMVert
|
|
174
147
|
"""
|
bpy/app/__init__.pyi
CHANGED
|
@@ -22,39 +22,43 @@ from . import icons as icons
|
|
|
22
22
|
from . import timers as timers
|
|
23
23
|
from . import translations as translations
|
|
24
24
|
|
|
25
|
-
def help_text(*, all: bool | None = False) ->
|
|
25
|
+
def help_text(*, all: bool | None = False) -> str:
|
|
26
26
|
"""Return the help text as a string.
|
|
27
27
|
|
|
28
28
|
:param all: Return all arguments, even those which arent available for the current platform.
|
|
29
|
-
:
|
|
29
|
+
:return: Help text.
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
def is_job_running(job_type: bpy.stub_internal.rna_enums.WmJobTypeItems) -> bool:
|
|
33
33
|
"""Check whether a job of the given type is running.
|
|
34
34
|
|
|
35
35
|
:param job_type: job type in `rna_enum_wm_job_type_items`.
|
|
36
|
-
:type job_type: bpy.stub_internal.rna_enums.WmJobTypeItems
|
|
37
36
|
:return: Whether a job of the given type is currently running.
|
|
38
|
-
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def memory_usage_undo() -> int:
|
|
40
|
+
"""Get undo memory usage information.
|
|
41
|
+
|
|
42
|
+
:return: Memory usage of the undo stack in bytes.
|
|
39
43
|
"""
|
|
40
44
|
|
|
41
45
|
alembic: typing.Any
|
|
42
46
|
""" Constant value bpy.app.alembic(supported=True, version=(1, 8, 3), version_string= 1, 8, 3)
|
|
43
47
|
"""
|
|
44
48
|
|
|
45
|
-
autoexec_fail:
|
|
46
|
-
"""
|
|
49
|
+
autoexec_fail: bool
|
|
50
|
+
""" Boolean, True when auto-execution of scripts failed (read-only).
|
|
47
51
|
"""
|
|
48
52
|
|
|
49
|
-
autoexec_fail_message:
|
|
50
|
-
"""
|
|
53
|
+
autoexec_fail_message: str
|
|
54
|
+
""" String, message describing the auto-execution failure (read-only).
|
|
51
55
|
"""
|
|
52
56
|
|
|
53
|
-
autoexec_fail_quiet:
|
|
54
|
-
"""
|
|
57
|
+
autoexec_fail_quiet: bool
|
|
58
|
+
""" Boolean, True when auto-execution failure should be quiet, set after the warning is shown once for the current blend file (read-only).
|
|
55
59
|
"""
|
|
56
60
|
|
|
57
|
-
background:
|
|
61
|
+
background: bool
|
|
58
62
|
""" Boolean, True when blender is running without a user interface (started with -b)
|
|
59
63
|
"""
|
|
60
64
|
|
|
@@ -62,39 +66,39 @@ binary_path: str
|
|
|
62
66
|
""" The location of Blenders executable, useful for utilities that open new instances. Read-only unless Blender is built as a Python module - in this case the value is an empty string which script authors may point to a Blender binary.
|
|
63
67
|
"""
|
|
64
68
|
|
|
65
|
-
build_branch:
|
|
69
|
+
build_branch: bytes
|
|
66
70
|
""" The branch this blender instance was built from
|
|
67
71
|
"""
|
|
68
72
|
|
|
69
|
-
build_cflags:
|
|
73
|
+
build_cflags: bytes
|
|
70
74
|
""" C compiler flags
|
|
71
75
|
"""
|
|
72
76
|
|
|
73
|
-
build_commit_date:
|
|
77
|
+
build_commit_date: bytes
|
|
74
78
|
""" The date of commit this blender instance was built
|
|
75
79
|
"""
|
|
76
80
|
|
|
77
|
-
build_commit_time:
|
|
81
|
+
build_commit_time: bytes
|
|
78
82
|
""" The time of commit this blender instance was built
|
|
79
83
|
"""
|
|
80
84
|
|
|
81
|
-
build_commit_timestamp:
|
|
85
|
+
build_commit_timestamp: int
|
|
82
86
|
""" The unix timestamp of commit this blender instance was built
|
|
83
87
|
"""
|
|
84
88
|
|
|
85
|
-
build_cxxflags:
|
|
89
|
+
build_cxxflags: bytes
|
|
86
90
|
""" C++ compiler flags
|
|
87
91
|
"""
|
|
88
92
|
|
|
89
|
-
build_date:
|
|
93
|
+
build_date: bytes
|
|
90
94
|
""" The date this blender instance was built
|
|
91
95
|
"""
|
|
92
96
|
|
|
93
|
-
build_hash:
|
|
97
|
+
build_hash: bytes
|
|
94
98
|
""" The commit hash this blender instance was built with
|
|
95
99
|
"""
|
|
96
100
|
|
|
97
|
-
build_linkflags:
|
|
101
|
+
build_linkflags: bytes
|
|
98
102
|
""" Binary linking flags
|
|
99
103
|
"""
|
|
100
104
|
|
|
@@ -102,111 +106,115 @@ build_options: typing.Any
|
|
|
102
106
|
""" Constant value bpy.app.build_options(bullet=True, codec_avi=False, codec_ffmpeg=True, codec_sndfile=True, compositor_cpu=True, cycles=True, cycles_osl=True, freestyle=True, image_cineon=True, image_dds=True, image_hdr=True, image_openexr=True, image_openjpeg=True, image_tiff=True, image_webp=True, input_ndof=True, audaspace=True, international=True, openal=True, opensubdiv=True, sdl=False, coreaudio=False, jack=False, pulseaudio=False, wasapi=False, libmv=True, mod_oceansim=True, mod_remesh=True, io_wavefront_obj=True, io_ply=True, io_stl=True, io_fbx=True, io_gpencil=True, opencolorio=True, openmp=False, openvdb=True, alembic=True, usd=True, fluid=True, xr_openxr=True, potrace=True, pugixml=True, haru=True, experimental_features=True)
|
|
103
107
|
"""
|
|
104
108
|
|
|
105
|
-
build_platform:
|
|
109
|
+
build_platform: bytes
|
|
106
110
|
""" The platform this blender instance was built for
|
|
107
111
|
"""
|
|
108
112
|
|
|
109
|
-
build_system:
|
|
113
|
+
build_system: bytes
|
|
110
114
|
""" Build system used
|
|
111
115
|
"""
|
|
112
116
|
|
|
113
|
-
build_time:
|
|
117
|
+
build_time: bytes
|
|
114
118
|
""" The time this blender instance was built
|
|
115
119
|
"""
|
|
116
120
|
|
|
117
|
-
build_type:
|
|
121
|
+
build_type: bytes
|
|
118
122
|
""" The type of build (Release, Debug)
|
|
119
123
|
"""
|
|
120
124
|
|
|
121
|
-
|
|
125
|
+
cachedir: None | str
|
|
126
|
+
""" String, the cache directory used by blender (read-only).If the parent of the cache folder (i.e. the part of the path that is not Blender-specific) does not exist, returns None.
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
debug: bool
|
|
122
130
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
123
131
|
"""
|
|
124
132
|
|
|
125
|
-
debug_depsgraph:
|
|
133
|
+
debug_depsgraph: bool
|
|
126
134
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
127
135
|
"""
|
|
128
136
|
|
|
129
|
-
debug_depsgraph_build:
|
|
137
|
+
debug_depsgraph_build: bool
|
|
130
138
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
131
139
|
"""
|
|
132
140
|
|
|
133
|
-
debug_depsgraph_eval:
|
|
141
|
+
debug_depsgraph_eval: bool
|
|
134
142
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
135
143
|
"""
|
|
136
144
|
|
|
137
|
-
debug_depsgraph_pretty:
|
|
145
|
+
debug_depsgraph_pretty: bool
|
|
138
146
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
139
147
|
"""
|
|
140
148
|
|
|
141
|
-
debug_depsgraph_tag:
|
|
149
|
+
debug_depsgraph_tag: bool
|
|
142
150
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
143
151
|
"""
|
|
144
152
|
|
|
145
|
-
debug_depsgraph_time:
|
|
153
|
+
debug_depsgraph_time: bool
|
|
146
154
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
147
155
|
"""
|
|
148
156
|
|
|
149
|
-
debug_events:
|
|
157
|
+
debug_events: bool
|
|
150
158
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
151
159
|
"""
|
|
152
160
|
|
|
153
|
-
debug_freestyle:
|
|
161
|
+
debug_freestyle: bool
|
|
154
162
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
155
163
|
"""
|
|
156
164
|
|
|
157
|
-
debug_handlers:
|
|
165
|
+
debug_handlers: bool
|
|
158
166
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
159
167
|
"""
|
|
160
168
|
|
|
161
|
-
debug_io:
|
|
169
|
+
debug_io: bool
|
|
162
170
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
163
171
|
"""
|
|
164
172
|
|
|
165
|
-
debug_python:
|
|
173
|
+
debug_python: bool
|
|
166
174
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
167
175
|
"""
|
|
168
176
|
|
|
169
|
-
debug_simdata:
|
|
177
|
+
debug_simdata: bool
|
|
170
178
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
171
179
|
"""
|
|
172
180
|
|
|
173
|
-
debug_value:
|
|
181
|
+
debug_value: int
|
|
174
182
|
""" Short, number which can be set to non-zero values for testing purposes.
|
|
175
183
|
"""
|
|
176
184
|
|
|
177
|
-
debug_wm:
|
|
185
|
+
debug_wm: bool
|
|
178
186
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
179
187
|
"""
|
|
180
188
|
|
|
181
|
-
driver_namespace: typing.Any
|
|
189
|
+
driver_namespace: dict[str, typing.Any]
|
|
182
190
|
""" Dictionary for drivers namespace, editable in-place, reset on file load (read-only).
|
|
183
191
|
"""
|
|
184
192
|
|
|
185
|
-
factory_startup:
|
|
186
|
-
""" Boolean, True when blender is running with --factory-startup
|
|
193
|
+
factory_startup: bool
|
|
194
|
+
""" Boolean, True when blender is running with --factory-startup
|
|
187
195
|
"""
|
|
188
196
|
|
|
189
197
|
ffmpeg: typing.Any
|
|
190
198
|
""" Constant value bpy.app.ffmpeg(supported=True, avcodec_version=(61, 19, 101), avcodec_version_string=61, 19, 101, avdevice_version=(61, 3, 100), avdevice_version_string=61, 3, 100, avformat_version=(61, 7, 100), avformat_version_string=61, 7, 100, avutil_version=(59, 39, 100), avutil_version_string=59, 39, 100, swscale_version=(8, 3, 100), swscale_version_string= 8, 3, 100)
|
|
191
199
|
"""
|
|
192
200
|
|
|
193
|
-
module:
|
|
201
|
+
module: bool
|
|
194
202
|
""" Boolean, True when running Blender as a python module
|
|
195
203
|
"""
|
|
196
204
|
|
|
197
205
|
ocio: typing.Any
|
|
198
|
-
""" Constant value bpy.app.ocio(supported=True, version=(2, 4,
|
|
206
|
+
""" Constant value bpy.app.ocio(supported=True, version=(2, 4, 2), version_string= 2, 4, 2)
|
|
199
207
|
"""
|
|
200
208
|
|
|
201
209
|
oiio: typing.Any
|
|
202
|
-
""" Constant value bpy.app.oiio(supported=True, version=(3, 0,
|
|
210
|
+
""" Constant value bpy.app.oiio(supported=True, version=(3, 0, 9), version_string= 3, 0, 9)
|
|
203
211
|
"""
|
|
204
212
|
|
|
205
|
-
online_access:
|
|
213
|
+
online_access: bool
|
|
206
214
|
""" Boolean, true when internet access is allowed by Blender & 3rd party scripts (read-only).
|
|
207
215
|
"""
|
|
208
216
|
|
|
209
|
-
online_access_override:
|
|
217
|
+
online_access_override: bool
|
|
210
218
|
""" Boolean, true when internet access preference is overridden by the command line (read-only).
|
|
211
219
|
"""
|
|
212
220
|
|
|
@@ -218,19 +226,19 @@ openvdb: typing.Any
|
|
|
218
226
|
""" Constant value bpy.app.openvdb(supported=True, version=(12, 0, 0), version_string=12, 0, 0)
|
|
219
227
|
"""
|
|
220
228
|
|
|
221
|
-
portable:
|
|
229
|
+
portable: bool
|
|
222
230
|
""" Boolean, True unless blender was built to reference absolute paths (on UNIX).
|
|
223
231
|
"""
|
|
224
232
|
|
|
225
|
-
python_args:
|
|
233
|
+
python_args: tuple[str, ...]
|
|
226
234
|
""" Leading arguments to use when calling Python directly (via sys.executable). These arguments match settings Blender uses to ensure Python runs with a compatible environment (read-only).
|
|
227
235
|
"""
|
|
228
236
|
|
|
229
|
-
render_icon_size:
|
|
237
|
+
render_icon_size: int
|
|
230
238
|
""" Reference size for icon/preview renders (read-only).
|
|
231
239
|
"""
|
|
232
240
|
|
|
233
|
-
render_preview_size:
|
|
241
|
+
render_preview_size: int
|
|
234
242
|
""" Reference size for icon/preview renders (read-only).
|
|
235
243
|
"""
|
|
236
244
|
|
|
@@ -238,19 +246,19 @@ sdl: typing.Any
|
|
|
238
246
|
""" Constant value bpy.app.sdl(supported=False, version=(0, 0, 0), version_string=Unknown)
|
|
239
247
|
"""
|
|
240
248
|
|
|
241
|
-
tempdir:
|
|
249
|
+
tempdir: str
|
|
242
250
|
""" String, the temp directory used by blender (read-only).
|
|
243
251
|
"""
|
|
244
252
|
|
|
245
253
|
usd: typing.Any
|
|
246
|
-
""" Constant value bpy.app.usd(supported=True, version=(0, 25,
|
|
254
|
+
""" Constant value bpy.app.usd(supported=True, version=(0, 25, 8), version_string= 0, 25, 8)
|
|
247
255
|
"""
|
|
248
256
|
|
|
249
|
-
use_event_simulate:
|
|
257
|
+
use_event_simulate: bool
|
|
250
258
|
""" Boolean, for application behavior (started with --enable-* matching this attribute name)
|
|
251
259
|
"""
|
|
252
260
|
|
|
253
|
-
use_userpref_skip_save_on_exit:
|
|
261
|
+
use_userpref_skip_save_on_exit: bool
|
|
254
262
|
""" Boolean, for application behavior (started with --enable-* matching this attribute name)
|
|
255
263
|
"""
|
|
256
264
|
|
|
@@ -258,14 +266,14 @@ version: tuple[int, int, int]
|
|
|
258
266
|
""" The Blender version as a tuple of 3 numbers (major, minor, micro). eg. (4, 3, 1)
|
|
259
267
|
"""
|
|
260
268
|
|
|
261
|
-
version_cycle:
|
|
269
|
+
version_cycle: str
|
|
262
270
|
""" The release status of this build alpha/beta/rc/release
|
|
263
271
|
"""
|
|
264
272
|
|
|
265
|
-
version_file:
|
|
273
|
+
version_file: tuple[int, int, int]
|
|
266
274
|
""" The Blender File version, as a tuple of 3 numbers (major, minor, file sub-version), that will be used to save a .blend file. The last item in this tuple indicates the file sub-version, which is different from the release micro version (the last item of the bpy.app.version tuple). The file sub-version can be incremented multiple times while a Blender version is under development. This value is, and should be, used for handling compatibility changes between Blender versions
|
|
267
275
|
"""
|
|
268
276
|
|
|
269
|
-
version_string:
|
|
277
|
+
version_string: str
|
|
270
278
|
""" The Blender version formatted as a string
|
|
271
279
|
"""
|
bpy/app/icons/__init__.pyi
CHANGED
|
@@ -9,22 +9,16 @@ def new_triangles(
|
|
|
9
9
|
"""Create a new icon from triangle geometry.
|
|
10
10
|
|
|
11
11
|
:param range: Pair of ints.
|
|
12
|
-
:type range: tuple[int, int] | None
|
|
13
12
|
:param coords: Sequence of bytes (6 floats for one triangle) for (X, Y) coordinates.
|
|
14
|
-
:type coords: bytes | None
|
|
15
13
|
:param colors: Sequence of bytes (12 for one triangles) for RGBA.
|
|
16
|
-
:type colors: bytes | None
|
|
17
14
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
18
|
-
:rtype: int
|
|
19
15
|
"""
|
|
20
16
|
|
|
21
17
|
def new_triangles_from_file(filepath: str | None) -> int:
|
|
22
18
|
"""Create a new icon from triangle geometry.
|
|
23
19
|
|
|
24
20
|
:param filepath: File path.
|
|
25
|
-
:type filepath: str | None
|
|
26
21
|
:return: Unique icon value (pass to interface icon_value argument).
|
|
27
|
-
:rtype: int
|
|
28
22
|
"""
|
|
29
23
|
|
|
30
24
|
def release(icon_id) -> None:
|
bpy/app/timers/__init__.pyi
CHANGED
|
@@ -30,9 +30,7 @@ def is_registered(function: collections.abc.Callable[[], float | None]) -> bool:
|
|
|
30
30
|
"""Check if this function is registered as a timer.
|
|
31
31
|
|
|
32
32
|
:param function: Function to check.
|
|
33
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
34
33
|
:return: True when this function is registered, otherwise False.
|
|
35
|
-
:rtype: bool
|
|
36
34
|
"""
|
|
37
35
|
|
|
38
36
|
def register(
|
|
@@ -48,16 +46,12 @@ def register(
|
|
|
48
46
|
functools.partial can be used to assign some parameters.
|
|
49
47
|
|
|
50
48
|
:param function: The function that should called.
|
|
51
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
52
49
|
:param first_interval: Seconds until the callback should be called the first time.
|
|
53
|
-
:type first_interval: float | None
|
|
54
50
|
:param persistent: Dont remove timer when a new file is loaded.
|
|
55
|
-
:type persistent: bool | None
|
|
56
51
|
"""
|
|
57
52
|
|
|
58
53
|
def unregister(function: collections.abc.Callable[[], float | None]) -> None:
|
|
59
54
|
"""Unregister timer.
|
|
60
55
|
|
|
61
56
|
:param function: Function to unregister.
|
|
62
|
-
:type function: collections.abc.Callable[[], float | None]
|
|
63
57
|
"""
|
|
@@ -72,9 +72,7 @@ def pgettext(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
72
72
|
"""Try to translate the given msgid (with optional msgctxt).
|
|
73
73
|
|
|
74
74
|
:param msgid: The string to translate.
|
|
75
|
-
:type msgid: str | None
|
|
76
75
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
77
|
-
:type msgctxt: None | str | None
|
|
78
76
|
:return: The translated string (or msgid if no translation was found).
|
|
79
77
|
"""
|
|
80
78
|
|
|
@@ -82,9 +80,7 @@ def pgettext_data(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
82
80
|
"""Try to translate the given msgid (with optional msgctxt), if new data names translation is enabled.
|
|
83
81
|
|
|
84
82
|
:param msgid: The string to translate.
|
|
85
|
-
:type msgid: str | None
|
|
86
83
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
87
|
-
:type msgctxt: None | str | None
|
|
88
84
|
:return: The translated string (or msgid if no translation was found).
|
|
89
85
|
"""
|
|
90
86
|
|
|
@@ -92,9 +88,7 @@ def pgettext_iface(msgid: str | None, msgctxt: None | str | None = None) -> None
|
|
|
92
88
|
"""Try to translate the given msgid (with optional msgctxt), if labels translation is enabled.
|
|
93
89
|
|
|
94
90
|
:param msgid: The string to translate.
|
|
95
|
-
:type msgid: str | None
|
|
96
91
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
97
|
-
:type msgctxt: None | str | None
|
|
98
92
|
:return: The translated string (or msgid if no translation was found).
|
|
99
93
|
"""
|
|
100
94
|
|
|
@@ -102,9 +96,7 @@ def pgettext_n(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
102
96
|
"""Extract the given msgid to translation files. This is a no-op function that will only mark the string to extract, but not perform the actual translation.
|
|
103
97
|
|
|
104
98
|
:param msgid: The string to extract.
|
|
105
|
-
:type msgid: str | None
|
|
106
99
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
107
|
-
:type msgctxt: None | str | None
|
|
108
100
|
:return: The original string.
|
|
109
101
|
"""
|
|
110
102
|
|
|
@@ -112,9 +104,7 @@ def pgettext_rpt(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
112
104
|
"""Try to translate the given msgid (with optional msgctxt), if reports translation is enabled.
|
|
113
105
|
|
|
114
106
|
:param msgid: The string to translate.
|
|
115
|
-
:type msgid: str | None
|
|
116
107
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
117
|
-
:type msgctxt: None | str | None
|
|
118
108
|
:return: The translated string (or msgid if no translation was found).
|
|
119
109
|
"""
|
|
120
110
|
|
|
@@ -122,9 +112,7 @@ def pgettext_tip(msgid: str | None, msgctxt: None | str | None = None) -> None:
|
|
|
122
112
|
"""Try to translate the given msgid (with optional msgctxt), if tooltips translation is enabled.
|
|
123
113
|
|
|
124
114
|
:param msgid: The string to translate.
|
|
125
|
-
:type msgid: str | None
|
|
126
115
|
:param msgctxt: The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
|
|
127
|
-
:type msgctxt: None | str | None
|
|
128
116
|
:return: The translated string (or msgid if no translation was found).
|
|
129
117
|
"""
|
|
130
118
|
|
|
@@ -134,21 +122,18 @@ def register(
|
|
|
134
122
|
"""Registers an addons UI translations.
|
|
135
123
|
|
|
136
124
|
:param module_name: The name identifying the addon.
|
|
137
|
-
:type module_name: str | None
|
|
138
125
|
:param translations_dict: A dictionary built like that:
|
|
139
126
|
{locale: {msg_key: msg_translation, ...}, ...}
|
|
140
|
-
:type translations_dict: dict[str, dict[str, str]] | None
|
|
141
127
|
"""
|
|
142
128
|
|
|
143
129
|
def unregister(module_name: str | None) -> None:
|
|
144
130
|
"""Unregisters an addons UI translations.
|
|
145
131
|
|
|
146
132
|
:param module_name: The name identifying the addon.
|
|
147
|
-
:type module_name: str | None
|
|
148
133
|
"""
|
|
149
134
|
|
|
150
135
|
contexts: typing.Any
|
|
151
|
-
""" Constant value bpy.app.translations.contexts(default_real=None, default=*, operator_default=Operator, ui_events_keymaps=UI_Events_KeyMaps, plural=Plural, id_action=Action, id_armature=Armature, id_brush=Brush, id_cachefile=CacheFile, id_camera=Camera, id_collection=Collection, id_curves=Curves, id_curve=Curve, id_fs_linestyle=FreestyleLineStyle, id_gpencil=GPencil, id_id=ID, id_image=Image, id_lattice=Lattice, id_library=Library, id_light=Light, id_lightprobe=LightProbe, id_mask=Mask, id_material=Material, id_mesh=Mesh, id_metaball=Metaball, id_movieclip=MovieClip, id_nodetree=NodeTree, id_object=Object, id_paintcurve=PaintCurve, id_palette=Palette, id_particlesettings=ParticleSettings, id_pointcloud=PointCloud, id_scene=Scene, id_screen=Screen, id_sequence=Sequence, id_shapekey=Key, id_simulation=Simulation, id_sound=Sound, id_speaker=Speaker, id_text=Text, id_texture=Texture, id_vfont=VFont, id_volume=Volume, id_windowmanager=WindowManager, id_workspace=WorkSpace, id_world=World, editor_filebrowser=File browser, editor_python_console=Python console, editor_preferences=Preferences, editor_view3d=View3D, amount=Amount, color=Color, constraint=Constraint, modifier=Modifier, navigation=Navigation, render_layer=Render Layer, time=Time, unit=Unit)
|
|
136
|
+
""" Constant value bpy.app.translations.contexts(default_real=None, default=*, operator_default=Operator, ui_events_keymaps=UI_Events_KeyMaps, plural=Plural, countable=Countable, id_action=Action, id_armature=Armature, no_translation=Do not translate, id_brush=Brush, id_cachefile=CacheFile, id_camera=Camera, id_collection=Collection, id_curves=Curves, id_curve=Curve, id_fs_linestyle=FreestyleLineStyle, id_gpencil=GPencil, id_id=ID, id_image=Image, id_lattice=Lattice, id_library=Library, id_light=Light, id_lightprobe=LightProbe, id_mask=Mask, id_material=Material, id_mesh=Mesh, id_metaball=Metaball, id_movieclip=MovieClip, id_nodetree=NodeTree, id_object=Object, id_paintcurve=PaintCurve, id_palette=Palette, id_particlesettings=ParticleSettings, id_pointcloud=PointCloud, id_scene=Scene, id_screen=Screen, id_sequence=Sequence, id_shapekey=Key, id_simulation=Simulation, id_sound=Sound, id_speaker=Speaker, id_text=Text, id_texture=Texture, id_vfont=VFont, id_volume=Volume, id_windowmanager=WindowManager, id_workspace=WorkSpace, id_world=World, editor_filebrowser=File browser, editor_python_console=Python console, editor_preferences=Preferences, editor_view3d=View3D, amount=Amount, color=Color, constraint=Constraint, modifier=Modifier, navigation=Navigation, render_layer=Render Layer, time=Time, unit=Unit)
|
|
152
137
|
"""
|
|
153
138
|
|
|
154
139
|
contexts_C_to_py: typing.Any
|
bpy/msgbus/__init__.pyi
CHANGED
|
@@ -78,7 +78,6 @@ def publish_rna(
|
|
|
78
78
|
- A property instance.
|
|
79
79
|
- A struct type.
|
|
80
80
|
- A tuple representing a (struct, property name) pair.
|
|
81
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
82
81
|
"""
|
|
83
82
|
|
|
84
83
|
def subscribe_rna(
|
|
@@ -87,7 +86,7 @@ def subscribe_rna(
|
|
|
87
86
|
args,
|
|
88
87
|
notify,
|
|
89
88
|
*,
|
|
90
|
-
options=set(),
|
|
89
|
+
options: set[str] | None = set(),
|
|
91
90
|
) -> None:
|
|
92
91
|
"""Register a message bus subscription. It will be cleared when another blend file is
|
|
93
92
|
loaded, or can be cleared explicitly via `bpy.msgbus.clear_by_owner`.
|
|
@@ -98,9 +97,7 @@ def subscribe_rna(
|
|
|
98
97
|
- A property instance.
|
|
99
98
|
- A struct type.
|
|
100
99
|
- A tuple representing a (struct, property name) pair.
|
|
101
|
-
:type key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | None
|
|
102
100
|
:param owner: Handle for this subscription (compared by identity).
|
|
103
|
-
:type owner: typing.Any | None
|
|
104
101
|
:param options: Change the behavior of the subscriber.
|
|
105
102
|
|
|
106
103
|
PERSISTENT when set, the subscriber will be kept when remapping ID data.
|