fake-bpy-module 20250603__py3-none-any.whl → 20250606__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fake-bpy-module might be problematic. Click here for more details.
- _bpy_internal/addons/cli/__init__.pyi +1 -1
- _bpy_internal/extensions/junction_module/__init__.pyi +7 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +8 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -3
- _bpy_internal/freedesktop/__init__.pyi +16 -16
- _bpy_internal/grease_pencil/stroke/__init__.pyi +4 -4
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +1 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +2 -2
- addon_utils/__init__.pyi +12 -12
- animsys_refactor/__init__.pyi +6 -6
- aud/__init__.pyi +11 -11
- bgl/__init__.pyi +272 -252
- bl_app_override/__init__.pyi +3 -3
- bl_app_override/helpers/__init__.pyi +2 -2
- bl_app_template_utils/__init__.pyi +4 -4
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -2
- bl_i18n_utils/bl_extract_messages/__init__.pyi +18 -16
- bl_i18n_utils/merge_po/__init__.pyi +1 -1
- bl_i18n_utils/settings/__init__.pyi +6 -6
- bl_i18n_utils/utils/__init__.pyi +48 -46
- bl_i18n_utils/utils_cli/__init__.pyi +6 -6
- bl_i18n_utils/utils_languages_menu/__init__.pyi +1 -1
- bl_i18n_utils/utils_rtl/__init__.pyi +2 -2
- bl_keymap_utils/io/__init__.pyi +9 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +1 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +1 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +2 -2
- bl_keymap_utils/versioning/__init__.pyi +1 -1
- bl_operators/__init__.pyi +2 -2
- bl_operators/add_mesh_torus/__init__.pyi +6 -6
- bl_operators/anim/__init__.pyi +24 -24
- bl_operators/assets/__init__.pyi +9 -9
- bl_operators/bmesh/find_adjacent/__init__.pyi +11 -9
- bl_operators/bone_selection_sets/__init__.pyi +18 -18
- bl_operators/clip/__init__.pyi +26 -26
- bl_operators/connect_to_output/__init__.pyi +17 -15
- bl_operators/console/__init__.pyi +10 -10
- bl_operators/constraint/__init__.pyi +8 -8
- bl_operators/file/__init__.pyi +6 -6
- bl_operators/freestyle/__init__.pyi +9 -9
- bl_operators/geometry_nodes/__init__.pyi +24 -24
- bl_operators/grease_pencil/__init__.pyi +2 -2
- bl_operators/image/__init__.pyi +7 -7
- bl_operators/image_as_planes/__init__.pyi +32 -32
- bl_operators/mesh/__init__.pyi +7 -7
- bl_operators/node/__init__.pyi +31 -31
- bl_operators/node_editor/node_functions/__init__.pyi +9 -9
- bl_operators/object/__init__.pyi +31 -31
- bl_operators/object_align/__init__.pyi +5 -5
- bl_operators/object_quick_effects/__init__.pyi +9 -9
- bl_operators/object_randomize_transform/__init__.pyi +3 -3
- bl_operators/presets/__init__.pyi +18 -18
- bl_operators/rigidbody/__init__.pyi +7 -7
- bl_operators/screen_play_rendered_anim/__init__.pyi +2 -2
- bl_operators/sequencer/__init__.pyi +19 -19
- bl_operators/spreadsheet/__init__.pyi +4 -4
- bl_operators/userpref/__init__.pyi +42 -42
- bl_operators/uvcalc_follow_active/__init__.pyi +5 -5
- bl_operators/uvcalc_lightmap/__init__.pyi +8 -8
- bl_operators/uvcalc_transform/__init__.pyi +20 -20
- bl_operators/vertexpaint_dirt/__init__.pyi +4 -4
- bl_operators/view3d/__init__.pyi +21 -19
- bl_operators/wm/__init__.pyi +88 -88
- bl_operators/world/__init__.pyi +2 -2
- bl_previews_utils/bl_previews_render/__init__.pyi +9 -7
- bl_rna_utils/data_path/__init__.pyi +2 -2
- bl_text_utils/external_editor/__init__.pyi +1 -1
- bl_ui/__init__.pyi +10 -10
- bl_ui/anim/__init__.pyi +2 -2
- bl_ui/asset_shelf/__init__.pyi +2 -2
- bl_ui/generic_ui_list/__init__.pyi +6 -6
- bl_ui/node_add_menu/__init__.pyi +15 -13
- bl_ui/node_add_menu_compositor/__init__.pyi +18 -18
- bl_ui/node_add_menu_geometry/__init__.pyi +54 -54
- bl_ui/node_add_menu_shader/__init__.pyi +16 -16
- bl_ui/node_add_menu_texture/__init__.pyi +9 -9
- bl_ui/properties_animviz/__init__.pyi +2 -2
- bl_ui/properties_collection/__init__.pyi +10 -8
- bl_ui/properties_constraint/__init__.pyi +125 -125
- bl_ui/properties_data_armature/__init__.pyi +22 -22
- bl_ui/properties_data_bone/__init__.pyi +20 -20
- bl_ui/properties_data_camera/__init__.pyi +19 -19
- bl_ui/properties_data_curve/__init__.pyi +23 -23
- bl_ui/properties_data_curves/__init__.pyi +9 -9
- bl_ui/properties_data_empty/__init__.pyi +4 -4
- bl_ui/properties_data_grease_pencil/__init__.pyi +25 -25
- bl_ui/properties_data_lattice/__init__.pyi +4 -4
- bl_ui/properties_data_light/__init__.pyi +14 -14
- bl_ui/properties_data_lightprobe/__init__.pyi +18 -18
- bl_ui/properties_data_mesh/__init__.pyi +26 -26
- bl_ui/properties_data_metaball/__init__.pyi +6 -6
- bl_ui/properties_data_modifier/__init__.pyi +12 -12
- bl_ui/properties_data_pointcloud/__init__.pyi +8 -8
- bl_ui/properties_data_shaderfx/__init__.pyi +1 -1
- bl_ui/properties_data_speaker/__init__.pyi +5 -5
- bl_ui/properties_data_volume/__init__.pyi +9 -9
- bl_ui/properties_freestyle/__init__.pyi +51 -51
- bl_ui/properties_grease_pencil_common/__init__.pyi +30 -30
- bl_ui/properties_mask_common/__init__.pyi +24 -24
- bl_ui/properties_material/__init__.pyi +27 -27
- bl_ui/properties_material_gpencil/__init__.pyi +12 -12
- bl_ui/properties_object/__init__.pyi +29 -29
- bl_ui/properties_output/__init__.pyi +29 -29
- bl_ui/properties_paint_common/__init__.pyi +59 -49
- bl_ui/properties_particle/__init__.pyi +101 -101
- bl_ui/properties_physics_cloth/__init__.pyi +20 -20
- bl_ui/properties_physics_common/__init__.pyi +8 -8
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +57 -57
- bl_ui/properties_physics_field/__init__.pyi +23 -23
- bl_ui/properties_physics_fluid/__init__.pyi +76 -76
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -3
- bl_ui/properties_physics_rigidbody/__init__.pyi +18 -18
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +29 -29
- bl_ui/properties_physics_softbody/__init__.pyi +21 -21
- bl_ui/properties_render/__init__.pyi +81 -81
- bl_ui/properties_scene/__init__.pyi +22 -22
- bl_ui/properties_texture/__init__.pyi +39 -39
- bl_ui/properties_view_layer/__init__.pyi +12 -12
- bl_ui/properties_workspace/__init__.pyi +5 -5
- bl_ui/properties_world/__init__.pyi +18 -18
- bl_ui/space_clip/__init__.pyi +81 -81
- bl_ui/space_console/__init__.pyi +6 -6
- bl_ui/space_dopesheet/__init__.pyi +32 -32
- bl_ui/space_filebrowser/__init__.pyi +45 -45
- bl_ui/space_graph/__init__.pyi +21 -21
- bl_ui/space_image/__init__.pyi +73 -73
- bl_ui/space_info/__init__.pyi +6 -6
- bl_ui/space_nla/__init__.pyi +18 -18
- bl_ui/space_node/__init__.pyi +42 -42
- bl_ui/space_outliner/__init__.pyi +21 -21
- bl_ui/space_properties/__init__.pyi +6 -6
- bl_ui/space_sequencer/__init__.pyi +133 -133
- bl_ui/space_spreadsheet/__init__.pyi +4 -4
- bl_ui/space_statusbar/__init__.pyi +1 -1
- bl_ui/space_text/__init__.pyi +17 -17
- bl_ui/space_time/__init__.pyi +12 -12
- bl_ui/space_toolsystem_common/__init__.pyi +28 -26
- bl_ui/space_toolsystem_toolbar/__init__.pyi +36 -36
- bl_ui/space_topbar/__init__.pyi +32 -32
- bl_ui/space_userpref/__init__.pyi +132 -132
- bl_ui/space_view3d/__init__.pyi +297 -297
- bl_ui/space_view3d_toolbar/__init__.pyi +148 -149
- bl_ui/utils/__init__.pyi +5 -5
- bl_ui_utils/layout/__init__.pyi +1 -1
- blend_render_info/__init__.pyi +2 -2
- blf/__init__.pyi +15 -15
- bmesh/__init__.pyi +1 -1
- bmesh/ops/__init__.pyi +366 -357
- bmesh/types/__init__.pyi +59 -57
- bmesh/utils/__init__.pyi +2 -2
- bpy/app/__init__.pyi +5 -5
- bpy/app/icons/__init__.pyi +1 -1
- bpy/app/timers/__init__.pyi +2 -2
- bpy/app/translations/__init__.pyi +9 -9
- bpy/msgbus/__init__.pyi +3 -3
- bpy/ops/action/__init__.pyi +62 -38
- bpy/ops/anim/__init__.pyi +63 -61
- bpy/ops/armature/__init__.pyi +58 -48
- bpy/ops/asset/__init__.pyi +31 -17
- bpy/ops/boid/__init__.pyi +18 -8
- bpy/ops/brush/__init__.pyi +19 -13
- bpy/ops/buttons/__init__.pyi +14 -6
- bpy/ops/cachefile/__init__.pyi +9 -5
- bpy/ops/camera/__init__.pyi +2 -2
- bpy/ops/clip/__init__.pyi +112 -92
- bpy/ops/cloth/__init__.pyi +1 -1
- bpy/ops/collection/__init__.pyi +11 -9
- bpy/ops/console/__init__.pyi +37 -21
- bpy/ops/constraint/__init__.pyi +20 -18
- bpy/ops/curve/__init__.pyi +81 -51
- bpy/ops/curves/__init__.pyi +50 -30
- bpy/ops/cycles/__init__.pyi +3 -3
- bpy/ops/dpaint/__init__.pyi +5 -5
- bpy/ops/ed/__init__.pyi +19 -13
- bpy/ops/export_anim/__init__.pyi +1 -1
- bpy/ops/export_scene/__init__.pyi +2 -2
- bpy/ops/extensions/__init__.pyi +38 -32
- bpy/ops/file/__init__.pyi +72 -40
- bpy/ops/fluid/__init__.pyi +36 -14
- bpy/ops/font/__init__.pyi +41 -23
- bpy/ops/geometry/__init__.pyi +10 -10
- bpy/ops/gizmogroup/__init__.pyi +4 -2
- bpy/ops/gpencil/__init__.pyi +12 -8
- bpy/ops/graph/__init__.pyi +81 -65
- bpy/ops/grease_pencil/__init__.pyi +159 -115
- bpy/ops/image/__init__.pyi +63 -49
- bpy/ops/import_anim/__init__.pyi +1 -1
- bpy/ops/import_curve/__init__.pyi +1 -1
- bpy/ops/import_scene/__init__.pyi +2 -2
- bpy/ops/info/__init__.pyi +13 -7
- bpy/ops/lattice/__init__.pyi +14 -8
- bpy/ops/marker/__init__.pyi +13 -11
- bpy/ops/mask/__init__.pyi +59 -39
- bpy/ops/material/__init__.pyi +3 -3
- bpy/ops/mball/__init__.pyi +8 -8
- bpy/ops/mesh/__init__.pyi +182 -164
- bpy/ops/nla/__init__.pyi +65 -39
- bpy/ops/node/__init__.pyi +181 -147
- bpy/ops/object/__init__.pyi +262 -242
- bpy/ops/outliner/__init__.pyi +98 -72
- bpy/ops/paint/__init__.pyi +58 -54
- bpy/ops/paintcurve/__init__.pyi +12 -8
- bpy/ops/palette/__init__.pyi +11 -7
- bpy/ops/particle/__init__.pyi +58 -36
- bpy/ops/pointcloud/__init__.pyi +13 -7
- bpy/ops/pose/__init__.pyi +65 -51
- bpy/ops/poselib/__init__.pyi +17 -11
- bpy/ops/preferences/__init__.pyi +41 -35
- bpy/ops/ptcache/__init__.pyi +13 -7
- bpy/ops/render/__init__.pyi +17 -13
- bpy/ops/rigidbody/__init__.pyi +19 -13
- bpy/ops/scene/__init__.pyi +39 -37
- bpy/ops/screen/__init__.pyi +59 -39
- bpy/ops/script/__init__.pyi +5 -3
- bpy/ops/sculpt/__init__.pyi +44 -40
- bpy/ops/sculpt_curves/__init__.pyi +4 -4
- bpy/ops/sequencer/__init__.pyi +142 -100
- bpy/ops/sound/__init__.pyi +7 -7
- bpy/ops/spreadsheet/__init__.pyi +13 -7
- bpy/ops/surface/__init__.pyi +6 -6
- bpy/ops/text/__init__.pyi +73 -43
- bpy/ops/text_editor/__init__.pyi +1 -1
- bpy/ops/texture/__init__.pyi +8 -4
- bpy/ops/transform/__init__.pyi +29 -27
- bpy/ops/ui/__init__.pyi +42 -34
- bpy/ops/uilist/__init__.pyi +3 -3
- bpy/ops/uv/__init__.pyi +59 -49
- bpy/ops/view2d/__init__.pyi +14 -14
- bpy/ops/view3d/__init__.pyi +87 -67
- bpy/ops/wm/__init__.pyi +138 -116
- bpy/ops/workspace/__init__.pyi +11 -7
- bpy/ops/world/__init__.pyi +2 -2
- bpy/props/__init__.pyi +16 -13
- bpy/types/__init__.pyi +1220 -1157
- bpy/utils/__init__.pyi +23 -23
- bpy/utils/previews/__init__.pyi +3 -3
- bpy_extras/anim_utils/__init__.pyi +7 -7
- bpy_extras/bmesh_utils/__init__.pyi +1 -1
- bpy_extras/id_map_utils/__init__.pyi +3 -3
- bpy_extras/io_utils/__init__.pyi +14 -12
- bpy_extras/keyconfig_utils/__init__.pyi +3 -3
- bpy_extras/mesh_utils/__init__.pyi +2 -2
- bpy_extras/node_shader_utils/__init__.pyi +63 -63
- bpy_extras/node_utils/__init__.pyi +3 -3
- bpy_extras/object_utils/__init__.pyi +4 -4
- bpy_extras/wm_utils/progress_report/__init__.pyi +10 -10
- bpy_types/__init__.pyi +4 -4
- console_python/__init__.pyi +7 -7
- console_shell/__init__.pyi +5 -5
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/METADATA +1 -1
- fake_bpy_module-20250606.dist-info/RECORD +367 -0
- freestyle/chainingiterators/__init__.pyi +35 -33
- freestyle/functions/__init__.pyi +55 -55
- freestyle/predicates/__init__.pyi +8 -8
- freestyle/shaders/__init__.pyi +79 -75
- freestyle/types/__init__.pyi +146 -142
- freestyle/utils/ContextFunctions/__init__.pyi +3 -1
- freestyle/utils/__init__.pyi +25 -25
- gpu/matrix/__init__.pyi +14 -14
- gpu/select/__init__.pyi +1 -1
- gpu/shader/__init__.pyi +1 -1
- gpu/state/__init__.pyi +19 -19
- gpu/types/__init__.pyi +50 -44
- gpu_extras/presets/__init__.pyi +2 -2
- graphviz_export/__init__.pyi +2 -2
- idprop/types/__init__.pyi +9 -9
- imbuf/__init__.pyi +3 -1
- imbuf/types/__init__.pyi +3 -3
- keyingsets_builtins/__init__.pyi +26 -26
- keyingsets_utils/__init__.pyi +14 -14
- mathutils/__init__.pyi +61 -53
- mathutils/bvhtree/__init__.pyi +4 -4
- mathutils/kdtree/__init__.pyi +3 -3
- mathutils/noise/__init__.pyi +1 -1
- nodeitems_builtins/__init__.pyi +4 -4
- nodeitems_utils/__init__.pyi +9 -9
- rna_info/__init__.pyi +25 -25
- rna_keymap_ui/__init__.pyi +6 -6
- rna_prop_ui/__init__.pyi +12 -12
- rna_xml/__init__.pyi +6 -6
- fake_bpy_module-20250603.dist-info/RECORD +0 -367
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20250603.dist-info → fake_bpy_module-20250606.dist-info}/top_level.txt +0 -0
bpy/utils/__init__.pyi
CHANGED
|
@@ -19,7 +19,7 @@ import bpy.types
|
|
|
19
19
|
from . import previews as previews
|
|
20
20
|
from . import units as units
|
|
21
21
|
|
|
22
|
-
def app_template_paths(*, path: str | None = None):
|
|
22
|
+
def app_template_paths(*, path: str | None = None) -> None:
|
|
23
23
|
"""Returns valid application template paths.
|
|
24
24
|
|
|
25
25
|
:param path: Optional subdir.
|
|
@@ -51,7 +51,7 @@ def escape_identifier(string: str) -> str:
|
|
|
51
51
|
:rtype: str
|
|
52
52
|
"""
|
|
53
53
|
|
|
54
|
-
def execfile(filepath: str, *, mod: None | None = None):
|
|
54
|
+
def execfile(filepath: str, *, mod: None | None = None) -> None:
|
|
55
55
|
"""Execute a file path as a Python script.
|
|
56
56
|
|
|
57
57
|
:param filepath: Path of the script to execute.
|
|
@@ -61,7 +61,7 @@ def execfile(filepath: str, *, mod: None | None = None):
|
|
|
61
61
|
:return: The module which can be passed back in as mod.
|
|
62
62
|
"""
|
|
63
63
|
|
|
64
|
-
def expose_bundled_modules():
|
|
64
|
+
def expose_bundled_modules() -> None:
|
|
65
65
|
"""For Blender as a Python module, add bundled VFX library python bindings
|
|
66
66
|
to sys.path. These may be used instead of dedicated packages, to ensure
|
|
67
67
|
the libraries are compatible with Blender.
|
|
@@ -109,14 +109,14 @@ def is_path_extension(path: str) -> bool:
|
|
|
109
109
|
:rtype: bool
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
|
-
def keyconfig_init(): ...
|
|
113
|
-
def keyconfig_set(filepath, *, report=None): ...
|
|
112
|
+
def keyconfig_init() -> None: ...
|
|
113
|
+
def keyconfig_set(filepath, *, report=None) -> None: ...
|
|
114
114
|
def load_scripts(
|
|
115
115
|
*,
|
|
116
116
|
reload_scripts: bool = False,
|
|
117
117
|
refresh_scripts: bool = False,
|
|
118
118
|
extensions: bool = True,
|
|
119
|
-
):
|
|
119
|
+
) -> None:
|
|
120
120
|
"""Load scripts and run each modules register function.
|
|
121
121
|
|
|
122
122
|
:param reload_scripts: Causes all scripts to have their unregister method
|
|
@@ -129,7 +129,7 @@ def load_scripts(
|
|
|
129
129
|
:type extensions: bool
|
|
130
130
|
"""
|
|
131
131
|
|
|
132
|
-
def load_scripts_extensions(*, reload_scripts: bool = False):
|
|
132
|
+
def load_scripts_extensions(*, reload_scripts: bool = False) -> None:
|
|
133
133
|
"""Load extensions scripts (add-ons and app-templates)
|
|
134
134
|
|
|
135
135
|
:param reload_scripts: Causes all scripts to have their unregister method
|
|
@@ -162,7 +162,7 @@ def manual_language_code(default="en") -> str:
|
|
|
162
162
|
:rtype: str
|
|
163
163
|
"""
|
|
164
164
|
|
|
165
|
-
def manual_map(): ...
|
|
165
|
+
def manual_map() -> None: ...
|
|
166
166
|
def modules_from_path(path: str, loaded_modules) -> list:
|
|
167
167
|
"""Load all modules in a path and return them as a list.
|
|
168
168
|
|
|
@@ -174,7 +174,7 @@ def modules_from_path(path: str, loaded_modules) -> list:
|
|
|
174
174
|
:rtype: list
|
|
175
175
|
"""
|
|
176
176
|
|
|
177
|
-
def preset_find(name, preset_path, *, display_name=False, ext=".py"): ...
|
|
177
|
+
def preset_find(name, preset_path, *, display_name=False, ext=".py") -> None: ...
|
|
178
178
|
def preset_paths(subdir: str) -> list[str]:
|
|
179
179
|
"""Returns a list of paths for a specific preset.
|
|
180
180
|
|
|
@@ -184,7 +184,7 @@ def preset_paths(subdir: str) -> list[str]:
|
|
|
184
184
|
:rtype: list[str]
|
|
185
185
|
"""
|
|
186
186
|
|
|
187
|
-
def refresh_script_paths():
|
|
187
|
+
def refresh_script_paths() -> None:
|
|
188
188
|
"""Run this after creating new script paths to update sys.path"""
|
|
189
189
|
|
|
190
190
|
def register_class(
|
|
@@ -204,20 +204,20 @@ def register_class(
|
|
|
204
204
|
| bpy.types.Node
|
|
205
205
|
| bpy.types.NodeSocket
|
|
206
206
|
],
|
|
207
|
-
):
|
|
207
|
+
) -> None:
|
|
208
208
|
"""Register a subclass of a Blender type class.
|
|
209
209
|
|
|
210
210
|
:param cls: Registerable Blender class type.
|
|
211
211
|
:type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences | bpy.types.NodeTree | bpy.types.Node | bpy.types.NodeSocket]
|
|
212
212
|
"""
|
|
213
213
|
|
|
214
|
-
def register_classes_factory(classes):
|
|
214
|
+
def register_classes_factory(classes) -> None:
|
|
215
215
|
"""Utility function to create register and unregister functions
|
|
216
216
|
which simply registers and unregisters a sequence of classes.
|
|
217
217
|
|
|
218
218
|
"""
|
|
219
219
|
|
|
220
|
-
def register_cli_command(id: str, execute: collections.abc.Callable):
|
|
220
|
+
def register_cli_command(id: str, execute: collections.abc.Callable) -> None:
|
|
221
221
|
"""Register a command, accessible via the (-c / --command) command-line argument.Custom CommandsRegistering commands makes it possible to conveniently expose command line
|
|
222
222
|
functionality via commands passed to (-c / --command).Using Python Argument ParsingThis example shows how the Python argparse module can be used with a custom command.Using argparse is generally recommended as it has many useful utilities and
|
|
223
223
|
generates a --help message for your command.
|
|
@@ -235,7 +235,7 @@ def register_cli_command(id: str, execute: collections.abc.Callable):
|
|
|
235
235
|
This uses Python's capsule type however the result should be considered an opaque handle only used for unregistering.
|
|
236
236
|
"""
|
|
237
237
|
|
|
238
|
-
def register_manual_map(manual_hook): ...
|
|
238
|
+
def register_manual_map(manual_hook) -> None: ...
|
|
239
239
|
def register_preset_path(path: str) -> bool:
|
|
240
240
|
"""Register a preset search path.
|
|
241
241
|
|
|
@@ -273,7 +273,7 @@ def register_tool(
|
|
|
273
273
|
after: None | collections.abc.Sequence[str] | None = None,
|
|
274
274
|
separator: bool = False,
|
|
275
275
|
group: bool = False,
|
|
276
|
-
):
|
|
276
|
+
) -> None:
|
|
277
277
|
"""Register a tool in the toolbar.
|
|
278
278
|
|
|
279
279
|
:param tool_cls: A tool subclass.
|
|
@@ -301,7 +301,7 @@ def resource_path(
|
|
|
301
301
|
:rtype: str
|
|
302
302
|
"""
|
|
303
303
|
|
|
304
|
-
def script_path_user():
|
|
304
|
+
def script_path_user() -> None:
|
|
305
305
|
"""returns the env var and falls back to home dir or None"""
|
|
306
306
|
|
|
307
307
|
def script_paths(
|
|
@@ -328,10 +328,10 @@ def script_paths(
|
|
|
328
328
|
:rtype: list[str]
|
|
329
329
|
"""
|
|
330
330
|
|
|
331
|
-
def script_paths_pref():
|
|
331
|
+
def script_paths_pref() -> None:
|
|
332
332
|
"""Returns a list of user preference script directories."""
|
|
333
333
|
|
|
334
|
-
def script_paths_system_environment():
|
|
334
|
+
def script_paths_system_environment() -> None:
|
|
335
335
|
"""Returns a list of system script directories from environment variables."""
|
|
336
336
|
|
|
337
337
|
def smpte_from_frame(frame: float, *, fps=None, fps_base=None) -> str:
|
|
@@ -354,7 +354,7 @@ def smpte_from_seconds(time: float, *, fps=None, fps_base=None) -> str:
|
|
|
354
354
|
:rtype: str
|
|
355
355
|
"""
|
|
356
356
|
|
|
357
|
-
def time_from_frame(frame: float, *, fps=None, fps_base=None):
|
|
357
|
+
def time_from_frame(frame: float, *, fps=None, fps_base=None) -> None:
|
|
358
358
|
"""Returns the time from a frame number .If fps and fps_base are not given the current scene is used.
|
|
359
359
|
|
|
360
360
|
:param frame: number.
|
|
@@ -399,7 +399,7 @@ def unregister_class(
|
|
|
399
399
|
| bpy.types.Node
|
|
400
400
|
| bpy.types.NodeSocket
|
|
401
401
|
],
|
|
402
|
-
):
|
|
402
|
+
) -> None:
|
|
403
403
|
"""Unload the Python class from blender.
|
|
404
404
|
|
|
405
405
|
:param cls: Blender type class,
|
|
@@ -408,13 +408,13 @@ def unregister_class(
|
|
|
408
408
|
:type cls: type[bpy.types.Panel | bpy.types.UIList | bpy.types.Menu | bpy.types.Header | bpy.types.Operator | bpy.types.KeyingSetInfo | bpy.types.RenderEngine | bpy.types.AssetShelf | bpy.types.FileHandler | bpy.types.PropertyGroup | bpy.types.AddonPreferences | bpy.types.NodeTree | bpy.types.Node | bpy.types.NodeSocket]
|
|
409
409
|
"""
|
|
410
410
|
|
|
411
|
-
def unregister_cli_command(handle):
|
|
411
|
+
def unregister_cli_command(handle) -> None:
|
|
412
412
|
"""Unregister a CLI command.
|
|
413
413
|
|
|
414
414
|
:param handle: The return value of `register_cli_command`.
|
|
415
415
|
"""
|
|
416
416
|
|
|
417
|
-
def unregister_manual_map(manual_hook): ...
|
|
417
|
+
def unregister_manual_map(manual_hook) -> None: ...
|
|
418
418
|
def unregister_preset_path(path: str) -> bool:
|
|
419
419
|
"""Unregister a preset search path.
|
|
420
420
|
|
|
@@ -426,7 +426,7 @@ def unregister_preset_path(path: str) -> bool:
|
|
|
426
426
|
:rtype: bool
|
|
427
427
|
"""
|
|
428
428
|
|
|
429
|
-
def unregister_tool(tool_cls): ...
|
|
429
|
+
def unregister_tool(tool_cls) -> None: ...
|
|
430
430
|
def user_resource(resource_type: str, *, path: str = "", create: bool = False) -> str:
|
|
431
431
|
"""Return a user resource path (normally from the users home directory).
|
|
432
432
|
|
bpy/utils/previews/__init__.pyi
CHANGED
|
@@ -24,10 +24,10 @@ class ImagePreviewCollection(dict[str, bpy.types.ImagePreview]):
|
|
|
24
24
|
used to store multiple image previews.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
-
def clear(self):
|
|
27
|
+
def clear(self) -> None:
|
|
28
28
|
"""Clear all previews."""
|
|
29
29
|
|
|
30
|
-
def close(self):
|
|
30
|
+
def close(self) -> None:
|
|
31
31
|
"""Close the collection and clear all previews."""
|
|
32
32
|
|
|
33
33
|
def load(
|
|
@@ -67,7 +67,7 @@ def new() -> ImagePreviewCollection:
|
|
|
67
67
|
:rtype: ImagePreviewCollection
|
|
68
68
|
"""
|
|
69
69
|
|
|
70
|
-
def remove(pcoll: ImagePreviewCollection | None):
|
|
70
|
+
def remove(pcoll: ImagePreviewCollection | None) -> None:
|
|
71
71
|
"""Remove the specified previews collection.
|
|
72
72
|
|
|
73
73
|
:param pcoll: Preview collection to close.
|
|
@@ -15,14 +15,14 @@ class KeyframesCo:
|
|
|
15
15
|
|
|
16
16
|
keyframes_from_fcurve: typing.Any
|
|
17
17
|
|
|
18
|
-
def add_paths(self, rna_path, total_indices):
|
|
18
|
+
def add_paths(self, rna_path, total_indices) -> None:
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
21
|
:param rna_path:
|
|
22
22
|
:param total_indices:
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
-
def extend_co_value(self, rna_path, frame, value):
|
|
25
|
+
def extend_co_value(self, rna_path, frame, value) -> None:
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
:param rna_path:
|
|
@@ -30,7 +30,7 @@ class KeyframesCo:
|
|
|
30
30
|
:param value:
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
-
def extend_co_values(self, rna_path, total_indices, frame, values):
|
|
33
|
+
def extend_co_values(self, rna_path, total_indices, frame, values) -> None:
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
:param rna_path:
|
|
@@ -41,7 +41,7 @@ class KeyframesCo:
|
|
|
41
41
|
|
|
42
42
|
def insert_keyframes_into_existing_action(
|
|
43
43
|
self, lookup_fcurves, total_new_keys, action, action_slot
|
|
44
|
-
):
|
|
44
|
+
) -> None:
|
|
45
45
|
"""Assumes the action already exists, that it might already have F-curves. Otherwise, the
|
|
46
46
|
only difference between versions is performance and implementation simplicity.
|
|
47
47
|
|
|
@@ -54,7 +54,7 @@ class KeyframesCo:
|
|
|
54
54
|
|
|
55
55
|
def insert_keyframes_into_new_action(
|
|
56
56
|
self, total_new_keys, action, action_group_name: str
|
|
57
|
-
):
|
|
57
|
+
) -> None:
|
|
58
58
|
"""Assumes the action is new, that it has no F-curves. Otherwise, the only difference between versions is
|
|
59
59
|
performance and implementation simplicity.
|
|
60
60
|
|
|
@@ -64,7 +64,7 @@ class KeyframesCo:
|
|
|
64
64
|
:type action_group_name: str
|
|
65
65
|
"""
|
|
66
66
|
|
|
67
|
-
def action_get_channelbag_for_slot(action, slot):
|
|
67
|
+
def action_get_channelbag_for_slot(action, slot) -> None:
|
|
68
68
|
"""Returns the first channelbag found for the slot.
|
|
69
69
|
In case there are multiple layers or strips they are iterated until a
|
|
70
70
|
channelbag for that slot is found. In case no matching channelbag is found, returns None.
|
|
@@ -114,7 +114,7 @@ def bake_action_objects(
|
|
|
114
114
|
:rtype: collections.abc.Sequence[bpy.types.Action]
|
|
115
115
|
"""
|
|
116
116
|
|
|
117
|
-
def bake_action_objects_iter(object_action_pairs, bake_options):
|
|
117
|
+
def bake_action_objects_iter(object_action_pairs, bake_options) -> None:
|
|
118
118
|
"""An coroutine that bakes actions for multiple objects.
|
|
119
119
|
|
|
120
120
|
:param object_action_pairs: Sequence of object action tuples,
|
|
@@ -3,11 +3,11 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
import numpy.typing as npt
|
|
5
5
|
|
|
6
|
-
def get_all_referenced_ids(id, ref_map):
|
|
6
|
+
def get_all_referenced_ids(id, ref_map) -> None:
|
|
7
7
|
"""Return a set of IDs directly or indirectly referenced by id."""
|
|
8
8
|
|
|
9
|
-
def get_id_reference_map():
|
|
9
|
+
def get_id_reference_map() -> None:
|
|
10
10
|
"""Return a dictionary of direct datablock references for every datablock in the blend file."""
|
|
11
11
|
|
|
12
|
-
def recursive_get_referenced_ids(ref_map, id, referenced_ids, visited):
|
|
12
|
+
def recursive_get_referenced_ids(ref_map, id, referenced_ids, visited) -> None:
|
|
13
13
|
"""Recursively populate referenced_ids with IDs referenced by id."""
|
bpy_extras/io_utils/__init__.pyi
CHANGED
|
@@ -6,13 +6,13 @@ import bpy.types
|
|
|
6
6
|
import mathutils
|
|
7
7
|
|
|
8
8
|
class ExportHelper:
|
|
9
|
-
def check(self, _context):
|
|
9
|
+
def check(self, _context) -> None:
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
:param _context:
|
|
13
13
|
"""
|
|
14
14
|
|
|
15
|
-
def invoke(self, context, _event):
|
|
15
|
+
def invoke(self, context, _event) -> None:
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
:param context:
|
|
@@ -20,27 +20,27 @@ class ExportHelper:
|
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
class ImportHelper:
|
|
23
|
-
def check(self, _context):
|
|
23
|
+
def check(self, _context) -> None:
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
26
|
:param _context:
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
-
def invoke(self, context, _event):
|
|
29
|
+
def invoke(self, context, _event) -> None:
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
:param context:
|
|
33
33
|
:param _event:
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
|
-
def invoke_popup(self, context, confirm_text=""):
|
|
36
|
+
def invoke_popup(self, context, confirm_text="") -> None:
|
|
37
37
|
"""
|
|
38
38
|
|
|
39
39
|
:param context:
|
|
40
40
|
:param confirm_text:
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
|
-
def axis_conversion(from_forward="Y", from_up="Z", to_forward="Y", to_up="Z"):
|
|
43
|
+
def axis_conversion(from_forward="Y", from_up="Z", to_forward="Y", to_up="Z") -> None:
|
|
44
44
|
"""Each argument us an axis in ['X', 'Y', 'Z', '-X', '-Y', '-Z']
|
|
45
45
|
where the first 2 are a source and the second 2 are the target.
|
|
46
46
|
|
|
@@ -76,7 +76,7 @@ def create_derived_objects(
|
|
|
76
76
|
:rtype: dict[bpy.types.Object, list[tuple[bpy.types.Object, mathutils.Matrix]]]
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
|
-
def orientation_helper(axis_forward="Y", axis_up="Z"):
|
|
79
|
+
def orientation_helper(axis_forward="Y", axis_up="Z") -> None:
|
|
80
80
|
"""A decorator for import/export classes, generating properties needed by the axis conversion system and IO helpers,
|
|
81
81
|
with specified default values (axes).
|
|
82
82
|
|
|
@@ -116,7 +116,9 @@ def path_reference(
|
|
|
116
116
|
:rtype: str
|
|
117
117
|
"""
|
|
118
118
|
|
|
119
|
-
def path_reference_copy(
|
|
119
|
+
def path_reference_copy(
|
|
120
|
+
copy_set, report: collections.abc.Callable[str, None] = print
|
|
121
|
+
) -> None:
|
|
120
122
|
"""Execute copying files of path_reference
|
|
121
123
|
|
|
122
124
|
:param copy_set: set of (from, to) pairs to copy.
|
|
@@ -124,7 +126,7 @@ def path_reference_copy(copy_set, report: collections.abc.Callable[str, None] =
|
|
|
124
126
|
:type report: collections.abc.Callable[str, None]
|
|
125
127
|
"""
|
|
126
128
|
|
|
127
|
-
def poll_file_object_drop(context):
|
|
129
|
+
def poll_file_object_drop(context) -> None:
|
|
128
130
|
"""A default implementation for FileHandler poll_drop methods. Allows for both the 3D Viewport and
|
|
129
131
|
the Outliner (in ViewLayer display mode) to be targets for file drag and drop.
|
|
130
132
|
|
|
@@ -137,7 +139,7 @@ def unique_name(
|
|
|
137
139
|
name_max=-1,
|
|
138
140
|
clean_func: typing.Any | None = None,
|
|
139
141
|
sep: str = ".",
|
|
140
|
-
):
|
|
142
|
+
) -> None:
|
|
141
143
|
"""Helper function for storing unique names which may have special characters
|
|
142
144
|
stripped and restricted to a maximum length.
|
|
143
145
|
|
|
@@ -159,5 +161,5 @@ def unique_name(
|
|
|
159
161
|
:type sep: str
|
|
160
162
|
"""
|
|
161
163
|
|
|
162
|
-
def unpack_face_list(list_of_tuples): ...
|
|
163
|
-
def unpack_list(list_of_tuples): ...
|
|
164
|
+
def unpack_face_list(list_of_tuples) -> None: ...
|
|
165
|
+
def unpack_list(list_of_tuples) -> None: ...
|
|
@@ -3,10 +3,10 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
import numpy.typing as npt
|
|
5
5
|
|
|
6
|
-
def addon_keymap_register(keymap_data):
|
|
6
|
+
def addon_keymap_register(keymap_data) -> None:
|
|
7
7
|
"""Register a set of keymaps for addons using a list of keymaps.See 'blender_defaults.py' for examples of the format this takes."""
|
|
8
8
|
|
|
9
|
-
def addon_keymap_unregister(keymap_data):
|
|
9
|
+
def addon_keymap_unregister(keymap_data) -> None:
|
|
10
10
|
"""Unregister a set of keymaps for addons."""
|
|
11
11
|
|
|
12
|
-
def keyconfig_test(kc): ...
|
|
12
|
+
def keyconfig_test(kc) -> None: ...
|
|
@@ -19,7 +19,7 @@ def edge_face_count_dict(mesh) -> dict[tuple[int, int], int]:
|
|
|
19
19
|
:rtype: dict[tuple[int, int], int]
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
|
-
def edge_loops_from_edges(mesh, edges=None):
|
|
22
|
+
def edge_loops_from_edges(mesh, edges=None) -> None:
|
|
23
23
|
"""Edge loops defined by edgesTakes me.edges or a list of edges and returns the edge loopsreturn a list of vertex indices.
|
|
24
24
|
[ [1, 6, 7, 2], ...]closed loops have matching start and end values.
|
|
25
25
|
|
|
@@ -53,7 +53,7 @@ def ngon_tessellate(
|
|
|
53
53
|
indices: list[int],
|
|
54
54
|
fix_loops: bool = True,
|
|
55
55
|
debug_print=True,
|
|
56
|
-
):
|
|
56
|
+
) -> None:
|
|
57
57
|
"""Takes a poly-line of indices (ngon) and returns a list of face
|
|
58
58
|
index lists. Designed to be used for importers that need indices for an
|
|
59
59
|
ngon to create from existing verts.
|
|
@@ -13,10 +13,10 @@ class ShaderWrapper:
|
|
|
13
13
|
node_texcoords: typing.Any
|
|
14
14
|
use_nodes: typing.Any
|
|
15
15
|
|
|
16
|
-
def node_texcoords_get(self): ...
|
|
17
|
-
def update(self): ...
|
|
18
|
-
def use_nodes_get(self): ...
|
|
19
|
-
def use_nodes_set(self, val):
|
|
16
|
+
def node_texcoords_get(self) -> None: ...
|
|
17
|
+
def update(self) -> None: ...
|
|
18
|
+
def use_nodes_get(self) -> None: ...
|
|
19
|
+
def use_nodes_set(self, val) -> None:
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
:param val:
|
|
@@ -46,65 +46,65 @@ class ShaderImageTextureWrapper:
|
|
|
46
46
|
translation: typing.Any
|
|
47
47
|
use_alpha: typing.Any
|
|
48
48
|
|
|
49
|
-
def copy_from(self, tex):
|
|
49
|
+
def copy_from(self, tex) -> None:
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
:param tex:
|
|
53
53
|
"""
|
|
54
54
|
|
|
55
|
-
def copy_mapping_from(self, tex):
|
|
55
|
+
def copy_mapping_from(self, tex) -> None:
|
|
56
56
|
"""
|
|
57
57
|
|
|
58
58
|
:param tex:
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
|
-
def extension_get(self): ...
|
|
62
|
-
def extension_set(self, extension):
|
|
61
|
+
def extension_get(self) -> None: ...
|
|
62
|
+
def extension_set(self, extension) -> None:
|
|
63
63
|
"""
|
|
64
64
|
|
|
65
65
|
:param extension:
|
|
66
66
|
"""
|
|
67
67
|
|
|
68
|
-
def has_mapping_node(self): ...
|
|
69
|
-
def image_get(self): ...
|
|
70
|
-
def image_set(self, image):
|
|
68
|
+
def has_mapping_node(self) -> None: ...
|
|
69
|
+
def image_get(self) -> None: ...
|
|
70
|
+
def image_set(self, image) -> None:
|
|
71
71
|
"""
|
|
72
72
|
|
|
73
73
|
:param image:
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
-
def node_image_get(self): ...
|
|
77
|
-
def node_mapping_get(self): ...
|
|
78
|
-
def projection_get(self): ...
|
|
79
|
-
def projection_set(self, projection):
|
|
76
|
+
def node_image_get(self) -> None: ...
|
|
77
|
+
def node_mapping_get(self) -> None: ...
|
|
78
|
+
def projection_get(self) -> None: ...
|
|
79
|
+
def projection_set(self, projection) -> None:
|
|
80
80
|
"""
|
|
81
81
|
|
|
82
82
|
:param projection:
|
|
83
83
|
"""
|
|
84
84
|
|
|
85
|
-
def rotation_get(self): ...
|
|
86
|
-
def rotation_set(self, rotation):
|
|
85
|
+
def rotation_get(self) -> None: ...
|
|
86
|
+
def rotation_set(self, rotation) -> None:
|
|
87
87
|
"""
|
|
88
88
|
|
|
89
89
|
:param rotation:
|
|
90
90
|
"""
|
|
91
91
|
|
|
92
|
-
def scale_get(self): ...
|
|
93
|
-
def scale_set(self, scale):
|
|
92
|
+
def scale_get(self) -> None: ...
|
|
93
|
+
def scale_set(self, scale) -> None:
|
|
94
94
|
"""
|
|
95
95
|
|
|
96
96
|
:param scale:
|
|
97
97
|
"""
|
|
98
98
|
|
|
99
|
-
def texcoords_get(self): ...
|
|
100
|
-
def texcoords_set(self, texcoords):
|
|
99
|
+
def texcoords_get(self) -> None: ...
|
|
100
|
+
def texcoords_set(self, texcoords) -> None:
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
103
|
:param texcoords:
|
|
104
104
|
"""
|
|
105
105
|
|
|
106
|
-
def translation_get(self): ...
|
|
107
|
-
def translation_set(self, translation):
|
|
106
|
+
def translation_get(self) -> None: ...
|
|
107
|
+
def translation_set(self, translation) -> None:
|
|
108
108
|
"""
|
|
109
109
|
|
|
110
110
|
:param translation:
|
|
@@ -147,99 +147,99 @@ class PrincipledBSDFWrapper(ShaderWrapper):
|
|
|
147
147
|
transmission_texture: typing.Any
|
|
148
148
|
use_nodes: typing.Any
|
|
149
149
|
|
|
150
|
-
def alpha_get(self): ...
|
|
151
|
-
def alpha_set(self, value):
|
|
150
|
+
def alpha_get(self) -> None: ...
|
|
151
|
+
def alpha_set(self, value) -> None:
|
|
152
152
|
"""
|
|
153
153
|
|
|
154
154
|
:param value:
|
|
155
155
|
"""
|
|
156
156
|
|
|
157
|
-
def alpha_texture_get(self): ...
|
|
158
|
-
def base_color_get(self): ...
|
|
159
|
-
def base_color_set(self, color):
|
|
157
|
+
def alpha_texture_get(self) -> None: ...
|
|
158
|
+
def base_color_get(self) -> None: ...
|
|
159
|
+
def base_color_set(self, color) -> None:
|
|
160
160
|
"""
|
|
161
161
|
|
|
162
162
|
:param color:
|
|
163
163
|
"""
|
|
164
164
|
|
|
165
|
-
def base_color_texture_get(self): ...
|
|
166
|
-
def emission_color_get(self): ...
|
|
167
|
-
def emission_color_set(self, color):
|
|
165
|
+
def base_color_texture_get(self) -> None: ...
|
|
166
|
+
def emission_color_get(self) -> None: ...
|
|
167
|
+
def emission_color_set(self, color) -> None:
|
|
168
168
|
"""
|
|
169
169
|
|
|
170
170
|
:param color:
|
|
171
171
|
"""
|
|
172
172
|
|
|
173
|
-
def emission_color_texture_get(self): ...
|
|
174
|
-
def emission_strength_get(self): ...
|
|
175
|
-
def emission_strength_set(self, value):
|
|
173
|
+
def emission_color_texture_get(self) -> None: ...
|
|
174
|
+
def emission_strength_get(self) -> None: ...
|
|
175
|
+
def emission_strength_set(self, value) -> None:
|
|
176
176
|
"""
|
|
177
177
|
|
|
178
178
|
:param value:
|
|
179
179
|
"""
|
|
180
180
|
|
|
181
|
-
def emission_strength_texture_get(self): ...
|
|
182
|
-
def ior_get(self): ...
|
|
183
|
-
def ior_set(self, value):
|
|
181
|
+
def emission_strength_texture_get(self) -> None: ...
|
|
182
|
+
def ior_get(self) -> None: ...
|
|
183
|
+
def ior_set(self, value) -> None:
|
|
184
184
|
"""
|
|
185
185
|
|
|
186
186
|
:param value:
|
|
187
187
|
"""
|
|
188
188
|
|
|
189
|
-
def ior_texture_get(self): ...
|
|
190
|
-
def metallic_get(self): ...
|
|
191
|
-
def metallic_set(self, value):
|
|
189
|
+
def ior_texture_get(self) -> None: ...
|
|
190
|
+
def metallic_get(self) -> None: ...
|
|
191
|
+
def metallic_set(self, value) -> None:
|
|
192
192
|
"""
|
|
193
193
|
|
|
194
194
|
:param value:
|
|
195
195
|
"""
|
|
196
196
|
|
|
197
|
-
def metallic_texture_get(self): ...
|
|
198
|
-
def node_normalmap_get(self): ...
|
|
199
|
-
def normalmap_strength_get(self): ...
|
|
200
|
-
def normalmap_strength_set(self, value):
|
|
197
|
+
def metallic_texture_get(self) -> None: ...
|
|
198
|
+
def node_normalmap_get(self) -> None: ...
|
|
199
|
+
def normalmap_strength_get(self) -> None: ...
|
|
200
|
+
def normalmap_strength_set(self, value) -> None:
|
|
201
201
|
"""
|
|
202
202
|
|
|
203
203
|
:param value:
|
|
204
204
|
"""
|
|
205
205
|
|
|
206
|
-
def normalmap_texture_get(self): ...
|
|
207
|
-
def roughness_get(self): ...
|
|
208
|
-
def roughness_set(self, value):
|
|
206
|
+
def normalmap_texture_get(self) -> None: ...
|
|
207
|
+
def roughness_get(self) -> None: ...
|
|
208
|
+
def roughness_set(self, value) -> None:
|
|
209
209
|
"""
|
|
210
210
|
|
|
211
211
|
:param value:
|
|
212
212
|
"""
|
|
213
213
|
|
|
214
|
-
def roughness_texture_get(self): ...
|
|
215
|
-
def specular_get(self): ...
|
|
216
|
-
def specular_set(self, value):
|
|
214
|
+
def roughness_texture_get(self) -> None: ...
|
|
215
|
+
def specular_get(self) -> None: ...
|
|
216
|
+
def specular_set(self, value) -> None:
|
|
217
217
|
"""
|
|
218
218
|
|
|
219
219
|
:param value:
|
|
220
220
|
"""
|
|
221
221
|
|
|
222
|
-
def specular_texture_get(self): ...
|
|
223
|
-
def specular_tint_get(self): ...
|
|
224
|
-
def specular_tint_set(self, color):
|
|
222
|
+
def specular_texture_get(self) -> None: ...
|
|
223
|
+
def specular_tint_get(self) -> None: ...
|
|
224
|
+
def specular_tint_set(self, color) -> None:
|
|
225
225
|
"""
|
|
226
226
|
|
|
227
227
|
:param color:
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
|
-
def specular_tint_texture_get(self): ...
|
|
231
|
-
def transmission_get(self): ...
|
|
232
|
-
def transmission_set(self, value):
|
|
230
|
+
def specular_tint_texture_get(self) -> None: ...
|
|
231
|
+
def transmission_get(self) -> None: ...
|
|
232
|
+
def transmission_set(self, value) -> None:
|
|
233
233
|
"""
|
|
234
234
|
|
|
235
235
|
:param value:
|
|
236
236
|
"""
|
|
237
237
|
|
|
238
|
-
def transmission_texture_get(self): ...
|
|
239
|
-
def update(self): ...
|
|
238
|
+
def transmission_texture_get(self) -> None: ...
|
|
239
|
+
def update(self) -> None: ...
|
|
240
240
|
|
|
241
|
-
def node_input_value_get(node, input, default_value=None): ...
|
|
242
|
-
def node_input_value_set(node, input, value): ...
|
|
243
|
-
def rgb_to_rgba(rgb): ...
|
|
244
|
-
def rgba_to_rgb(rgba): ...
|
|
245
|
-
def values_clamp(val, minv, maxv): ...
|
|
241
|
+
def node_input_value_get(node, input, default_value=None) -> None: ...
|
|
242
|
+
def node_input_value_set(node, input, value) -> None: ...
|
|
243
|
+
def rgb_to_rgba(rgb) -> None: ...
|
|
244
|
+
def rgba_to_rgb(rgba) -> None: ...
|
|
245
|
+
def values_clamp(val, minv, maxv) -> None: ...
|
|
@@ -3,17 +3,17 @@ import collections.abc
|
|
|
3
3
|
import typing_extensions
|
|
4
4
|
import numpy.typing as npt
|
|
5
5
|
|
|
6
|
-
def connect_sockets(input, output):
|
|
6
|
+
def connect_sockets(input, output) -> None:
|
|
7
7
|
"""Connect sockets in a node tree.This is useful because the links created through the normal Python API are
|
|
8
8
|
invalid when one of the sockets is a virtual socket (grayed out sockets in
|
|
9
9
|
Group Input and Group Output nodes).It replaces node_tree.links.new(input, output)
|
|
10
10
|
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
|
-
def find_base_socket_type(socket):
|
|
13
|
+
def find_base_socket_type(socket) -> None:
|
|
14
14
|
"""Find the base class of the socket.Sockets can have a subtype such as NodeSocketFloatFactor,
|
|
15
15
|
but only the base type is allowed, e. g. NodeSocketFloat
|
|
16
16
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
|
-
def find_node_input(node, name): ...
|
|
19
|
+
def find_node_input(node, name) -> None: ...
|