fake-bpy-module-latest 20251003__py3-none-any.whl → 20260114__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}/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 +1 -0
- _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_types/__init__.pyi +18 -123
- {rna_info → _rna_info}/__init__.pyi +0 -1
- addon_utils/__init__.pyi +0 -13
- aud/__init__.pyi +55 -131
- 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 +40 -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 -4
- bl_operators/node/__init__.pyi +36 -46
- 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 +0 -50
- 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 +13 -16
- bl_ui/node_add_menu_compositor/__init__.pyi +19 -57
- bl_ui/node_add_menu_geometry/__init__.pyi +56 -168
- bl_ui/node_add_menu_shader/__init__.pyi +10 -30
- bl_ui/node_add_menu_texture/__init__.pyi +1 -17
- bl_ui/properties_collection/__init__.pyi +0 -14
- bl_ui/properties_constraint/__init__.pyi +64 -150
- 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 +0 -42
- bl_ui/properties_data_metaball/__init__.pyi +0 -12
- bl_ui/properties_data_modifier/__init__.pyi +0 -18
- 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 -14
- bl_ui/properties_mask_common/__init__.pyi +0 -14
- bl_ui/properties_material/__init__.pyi +0 -32
- bl_ui/properties_material_gpencil/__init__.pyi +0 -22
- bl_ui/properties_object/__init__.pyi +35 -42
- bl_ui/properties_output/__init__.pyi +0 -40
- bl_ui/properties_paint_common/__init__.pyi +23 -7
- 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 +0 -90
- 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 +1 -150
- bl_ui/space_console/__init__.pyi +0 -12
- bl_ui/space_dopesheet/__init__.pyi +52 -60
- bl_ui/space_filebrowser/__init__.pyi +0 -60
- bl_ui/space_graph/__init__.pyi +0 -44
- bl_ui/space_image/__init__.pyi +2 -144
- bl_ui/space_info/__init__.pyi +0 -12
- bl_ui/space_nla/__init__.pyi +0 -36
- bl_ui/space_node/__init__.pyi +27 -66
- bl_ui/space_outliner/__init__.pyi +0 -30
- bl_ui/space_properties/__init__.pyi +29 -6
- bl_ui/space_sequencer/__init__.pyi +46 -912
- 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 +50 -8
- bl_ui/space_topbar/__init__.pyi +7 -52
- bl_ui/space_userpref/__init__.pyi +7 -188
- bl_ui/space_view3d/__init__.pyi +36 -544
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +2 -163
- blf/__init__.pyi +6 -50
- bmesh/__init__.pyi +0 -7
- bmesh/geometry/__init__.pyi +0 -3
- bmesh/ops/__init__.pyi +2 -450
- bmesh/types/__init__.pyi +206 -420
- bmesh/utils/__init__.pyi +16 -43
- bpy/app/__init__.pyi +53 -56
- 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 +15 -165
- bpy/ops/anim/__init__.pyi +38 -279
- bpy/ops/armature/__init__.pyi +18 -192
- bpy/ops/asset/__init__.pyi +11 -97
- bpy/ops/boid/__init__.pyi +7 -38
- bpy/ops/brush/__init__.pyi +3 -72
- 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 +2 -34
- 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 +17 -166
- 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 +27 -217
- 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 -38
- bpy/ops/graph/__init__.pyi +18 -316
- bpy/ops/grease_pencil/__init__.pyi +29 -524
- 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 +2 -50
- 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 +32 -915
- bpy/ops/nla/__init__.pyi +20 -184
- bpy/ops/node/__init__.pyi +71 -741
- bpy/ops/object/__init__.pyi +137 -1254
- bpy/ops/outliner/__init__.pyi +47 -327
- bpy/ops/paint/__init__.pyi +14 -279
- 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 +28 -233
- bpy/ops/poselib/__init__.pyi +4 -47
- bpy/ops/preferences/__init__.pyi +9 -177
- bpy/ops/ptcache/__init__.pyi +5 -31
- bpy/ops/render/__init__.pyi +6 -70
- bpy/ops/rigidbody/__init__.pyi +6 -56
- bpy/ops/scene/__init__.pyi +22 -167
- bpy/ops/screen/__init__.pyi +36 -202
- bpy/ops/script/__init__.pyi +1 -12
- bpy/ops/sculpt/__init__.pyi +36 -311
- bpy/ops/sculpt_curves/__init__.pyi +1 -20
- bpy/ops/sequencer/__init__.pyi +90 -662
- 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 +21 -158
- bpy/ops/uilist/__init__.pyi +0 -13
- bpy/ops/uv/__init__.pyi +52 -305
- bpy/ops/view2d/__init__.pyi +3 -73
- bpy/ops/view3d/__init__.pyi +37 -339
- bpy/ops/wm/__init__.pyi +39 -1334
- bpy/ops/workspace/__init__.pyi +7 -39
- bpy/ops/world/__init__.pyi +2 -10
- bpy/path/__init__.pyi +0 -34
- bpy/props/__init__.pyi +15 -157
- bpy/stub_internal/rna_enums/__init__.pyi +52 -20
- bpy/types/__init__.pyi +15386 -56984
- 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 +9 -8
- 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 +2 -22
- bpy_extras/keyconfig_utils/__init__.pyi +1 -1
- bpy_extras/mesh_utils/__init__.pyi +0 -12
- bpy_extras/object_utils/__init__.pyi +0 -14
- bpy_extras/view3d_utils/__init__.pyi +0 -18
- {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260114.dist-info}/METADATA +4 -1
- fake_bpy_module_latest-20260114.dist-info/RECORD +382 -0
- {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260114.dist-info}/top_level.txt +14 -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 +1 -7
- 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 +5 -5
- imbuf/__init__.pyi +2 -9
- imbuf/types/__init__.pyi +5 -25
- keyingsets_builtins/__init__.pyi +1 -45
- mathutils/__init__.pyi +82 -2172
- mathutils/bvhtree/__init__.pyi +3 -25
- mathutils/geometry/__init__.pyi +24 -135
- mathutils/interpolate/__init__.pyi +3 -4
- mathutils/kdtree/__init__.pyi +0 -11
- mathutils/noise/__init__.pyi +0 -62
- fake_bpy_module_latest-20251003.dist-info/RECORD +0 -373
- {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}/bl_extract_messages/__init__.pyi +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_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_latest-20251003.dist-info → fake_bpy_module_latest-20260114.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,46 +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
|
-
:rtype: bool
|
|
39
37
|
"""
|
|
40
38
|
|
|
41
39
|
def memory_usage_undo() -> int:
|
|
42
40
|
"""Get undo memory usage information.
|
|
43
41
|
|
|
44
42
|
:return: Memory usage of the undo stack in bytes.
|
|
45
|
-
:rtype: int
|
|
46
43
|
"""
|
|
47
44
|
|
|
48
45
|
alembic: typing.Any
|
|
49
46
|
""" Constant value bpy.app.alembic(supported=True, version=(1, 8, 3), version_string= 1, 8, 3)
|
|
50
47
|
"""
|
|
51
48
|
|
|
52
|
-
autoexec_fail:
|
|
53
|
-
"""
|
|
49
|
+
autoexec_fail: bool
|
|
50
|
+
""" Boolean, True when auto-execution of scripts failed (read-only).
|
|
54
51
|
"""
|
|
55
52
|
|
|
56
|
-
autoexec_fail_message:
|
|
57
|
-
"""
|
|
53
|
+
autoexec_fail_message: str
|
|
54
|
+
""" String, message describing the auto-execution failure (read-only).
|
|
58
55
|
"""
|
|
59
56
|
|
|
60
|
-
autoexec_fail_quiet:
|
|
61
|
-
"""
|
|
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).
|
|
62
59
|
"""
|
|
63
60
|
|
|
64
|
-
background:
|
|
61
|
+
background: bool
|
|
65
62
|
""" Boolean, True when blender is running without a user interface (started with -b)
|
|
66
63
|
"""
|
|
67
64
|
|
|
@@ -69,39 +66,39 @@ binary_path: str
|
|
|
69
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.
|
|
70
67
|
"""
|
|
71
68
|
|
|
72
|
-
build_branch:
|
|
69
|
+
build_branch: bytes
|
|
73
70
|
""" The branch this blender instance was built from
|
|
74
71
|
"""
|
|
75
72
|
|
|
76
|
-
build_cflags:
|
|
73
|
+
build_cflags: bytes
|
|
77
74
|
""" C compiler flags
|
|
78
75
|
"""
|
|
79
76
|
|
|
80
|
-
build_commit_date:
|
|
77
|
+
build_commit_date: bytes
|
|
81
78
|
""" The date of commit this blender instance was built
|
|
82
79
|
"""
|
|
83
80
|
|
|
84
|
-
build_commit_time:
|
|
81
|
+
build_commit_time: bytes
|
|
85
82
|
""" The time of commit this blender instance was built
|
|
86
83
|
"""
|
|
87
84
|
|
|
88
|
-
build_commit_timestamp:
|
|
85
|
+
build_commit_timestamp: int
|
|
89
86
|
""" The unix timestamp of commit this blender instance was built
|
|
90
87
|
"""
|
|
91
88
|
|
|
92
|
-
build_cxxflags:
|
|
89
|
+
build_cxxflags: bytes
|
|
93
90
|
""" C++ compiler flags
|
|
94
91
|
"""
|
|
95
92
|
|
|
96
|
-
build_date:
|
|
93
|
+
build_date: bytes
|
|
97
94
|
""" The date this blender instance was built
|
|
98
95
|
"""
|
|
99
96
|
|
|
100
|
-
build_hash:
|
|
97
|
+
build_hash: bytes
|
|
101
98
|
""" The commit hash this blender instance was built with
|
|
102
99
|
"""
|
|
103
100
|
|
|
104
|
-
build_linkflags:
|
|
101
|
+
build_linkflags: bytes
|
|
105
102
|
""" Binary linking flags
|
|
106
103
|
"""
|
|
107
104
|
|
|
@@ -109,95 +106,95 @@ build_options: typing.Any
|
|
|
109
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)
|
|
110
107
|
"""
|
|
111
108
|
|
|
112
|
-
build_platform:
|
|
109
|
+
build_platform: bytes
|
|
113
110
|
""" The platform this blender instance was built for
|
|
114
111
|
"""
|
|
115
112
|
|
|
116
|
-
build_system:
|
|
113
|
+
build_system: bytes
|
|
117
114
|
""" Build system used
|
|
118
115
|
"""
|
|
119
116
|
|
|
120
|
-
build_time:
|
|
117
|
+
build_time: bytes
|
|
121
118
|
""" The time this blender instance was built
|
|
122
119
|
"""
|
|
123
120
|
|
|
124
|
-
build_type:
|
|
121
|
+
build_type: bytes
|
|
125
122
|
""" The type of build (Release, Debug)
|
|
126
123
|
"""
|
|
127
124
|
|
|
128
|
-
debug:
|
|
125
|
+
debug: bool
|
|
129
126
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
130
127
|
"""
|
|
131
128
|
|
|
132
|
-
debug_depsgraph:
|
|
129
|
+
debug_depsgraph: bool
|
|
133
130
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
134
131
|
"""
|
|
135
132
|
|
|
136
|
-
debug_depsgraph_build:
|
|
133
|
+
debug_depsgraph_build: bool
|
|
137
134
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
138
135
|
"""
|
|
139
136
|
|
|
140
|
-
debug_depsgraph_eval:
|
|
137
|
+
debug_depsgraph_eval: bool
|
|
141
138
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
142
139
|
"""
|
|
143
140
|
|
|
144
|
-
debug_depsgraph_pretty:
|
|
141
|
+
debug_depsgraph_pretty: bool
|
|
145
142
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
146
143
|
"""
|
|
147
144
|
|
|
148
|
-
debug_depsgraph_tag:
|
|
145
|
+
debug_depsgraph_tag: bool
|
|
149
146
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
150
147
|
"""
|
|
151
148
|
|
|
152
|
-
debug_depsgraph_time:
|
|
149
|
+
debug_depsgraph_time: bool
|
|
153
150
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
154
151
|
"""
|
|
155
152
|
|
|
156
|
-
debug_events:
|
|
153
|
+
debug_events: bool
|
|
157
154
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
158
155
|
"""
|
|
159
156
|
|
|
160
|
-
debug_freestyle:
|
|
157
|
+
debug_freestyle: bool
|
|
161
158
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
162
159
|
"""
|
|
163
160
|
|
|
164
|
-
debug_handlers:
|
|
161
|
+
debug_handlers: bool
|
|
165
162
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
166
163
|
"""
|
|
167
164
|
|
|
168
|
-
debug_io:
|
|
165
|
+
debug_io: bool
|
|
169
166
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
170
167
|
"""
|
|
171
168
|
|
|
172
|
-
debug_python:
|
|
169
|
+
debug_python: bool
|
|
173
170
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
174
171
|
"""
|
|
175
172
|
|
|
176
|
-
debug_simdata:
|
|
173
|
+
debug_simdata: bool
|
|
177
174
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
178
175
|
"""
|
|
179
176
|
|
|
180
|
-
debug_value:
|
|
177
|
+
debug_value: int
|
|
181
178
|
""" Short, number which can be set to non-zero values for testing purposes.
|
|
182
179
|
"""
|
|
183
180
|
|
|
184
|
-
debug_wm:
|
|
181
|
+
debug_wm: bool
|
|
185
182
|
""" Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
|
|
186
183
|
"""
|
|
187
184
|
|
|
188
|
-
driver_namespace: typing.Any
|
|
185
|
+
driver_namespace: dict[str, typing.Any]
|
|
189
186
|
""" Dictionary for drivers namespace, editable in-place, reset on file load (read-only).
|
|
190
187
|
"""
|
|
191
188
|
|
|
192
|
-
factory_startup:
|
|
193
|
-
""" Boolean, True when blender is running with --factory-startup
|
|
189
|
+
factory_startup: bool
|
|
190
|
+
""" Boolean, True when blender is running with --factory-startup
|
|
194
191
|
"""
|
|
195
192
|
|
|
196
193
|
ffmpeg: typing.Any
|
|
197
194
|
""" 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)
|
|
198
195
|
"""
|
|
199
196
|
|
|
200
|
-
module:
|
|
197
|
+
module: bool
|
|
201
198
|
""" Boolean, True when running Blender as a python module
|
|
202
199
|
"""
|
|
203
200
|
|
|
@@ -209,11 +206,11 @@ oiio: typing.Any
|
|
|
209
206
|
""" Constant value bpy.app.oiio(supported=True, version=(3, 0, 9), version_string= 3, 0, 9)
|
|
210
207
|
"""
|
|
211
208
|
|
|
212
|
-
online_access:
|
|
209
|
+
online_access: bool
|
|
213
210
|
""" Boolean, true when internet access is allowed by Blender & 3rd party scripts (read-only).
|
|
214
211
|
"""
|
|
215
212
|
|
|
216
|
-
online_access_override:
|
|
213
|
+
online_access_override: bool
|
|
217
214
|
""" Boolean, true when internet access preference is overridden by the command line (read-only).
|
|
218
215
|
"""
|
|
219
216
|
|
|
@@ -225,19 +222,19 @@ openvdb: typing.Any
|
|
|
225
222
|
""" Constant value bpy.app.openvdb(supported=True, version=(12, 0, 0), version_string=12, 0, 0)
|
|
226
223
|
"""
|
|
227
224
|
|
|
228
|
-
portable:
|
|
225
|
+
portable: bool
|
|
229
226
|
""" Boolean, True unless blender was built to reference absolute paths (on UNIX).
|
|
230
227
|
"""
|
|
231
228
|
|
|
232
|
-
python_args:
|
|
229
|
+
python_args: tuple[str, ...]
|
|
233
230
|
""" 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).
|
|
234
231
|
"""
|
|
235
232
|
|
|
236
|
-
render_icon_size:
|
|
233
|
+
render_icon_size: int
|
|
237
234
|
""" Reference size for icon/preview renders (read-only).
|
|
238
235
|
"""
|
|
239
236
|
|
|
240
|
-
render_preview_size:
|
|
237
|
+
render_preview_size: int
|
|
241
238
|
""" Reference size for icon/preview renders (read-only).
|
|
242
239
|
"""
|
|
243
240
|
|
|
@@ -245,7 +242,7 @@ sdl: typing.Any
|
|
|
245
242
|
""" Constant value bpy.app.sdl(supported=False, version=(0, 0, 0), version_string=Unknown)
|
|
246
243
|
"""
|
|
247
244
|
|
|
248
|
-
tempdir:
|
|
245
|
+
tempdir: str
|
|
249
246
|
""" String, the temp directory used by blender (read-only).
|
|
250
247
|
"""
|
|
251
248
|
|
|
@@ -253,11 +250,11 @@ usd: typing.Any
|
|
|
253
250
|
""" Constant value bpy.app.usd(supported=True, version=(0, 25, 8), version_string= 0, 25, 8)
|
|
254
251
|
"""
|
|
255
252
|
|
|
256
|
-
use_event_simulate:
|
|
253
|
+
use_event_simulate: bool
|
|
257
254
|
""" Boolean, for application behavior (started with --enable-* matching this attribute name)
|
|
258
255
|
"""
|
|
259
256
|
|
|
260
|
-
use_userpref_skip_save_on_exit:
|
|
257
|
+
use_userpref_skip_save_on_exit: bool
|
|
261
258
|
""" Boolean, for application behavior (started with --enable-* matching this attribute name)
|
|
262
259
|
"""
|
|
263
260
|
|
|
@@ -265,14 +262,14 @@ version: tuple[int, int, int]
|
|
|
265
262
|
""" The Blender version as a tuple of 3 numbers (major, minor, micro). eg. (4, 3, 1)
|
|
266
263
|
"""
|
|
267
264
|
|
|
268
|
-
version_cycle:
|
|
265
|
+
version_cycle: str
|
|
269
266
|
""" The release status of this build alpha/beta/rc/release
|
|
270
267
|
"""
|
|
271
268
|
|
|
272
|
-
version_file:
|
|
269
|
+
version_file: tuple[int, int, int]
|
|
273
270
|
""" 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
|
|
274
271
|
"""
|
|
275
272
|
|
|
276
|
-
version_string:
|
|
273
|
+
version_string: str
|
|
277
274
|
""" The Blender version formatted as a string
|
|
278
275
|
"""
|
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, 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)
|
|
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.
|