fake-bge-module 20250317__py3-none-any.whl → 20260201__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.
- {animsys_refactor → _animsys_refactor}/__init__.pyi +7 -6
- {bl_console_utils → _bl_console_utils}/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +1 -0
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +1 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +1 -5
- {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +3 -13
- {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +1 -10
- {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +2 -0
- _bl_i18n_utils/bl_extract_messages/__init__.pyi +28 -0
- {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +2 -1
- {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +10 -7
- {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +53 -50
- _bl_i18n_utils/utils_cli/__init__.pyi +11 -0
- _bl_i18n_utils/utils_languages_menu/__init__.pyi +6 -0
- {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +3 -2
- _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
- {bl_previews_utils → _bl_previews_utils}/__init__.pyi +1 -0
- _bl_previews_utils/bl_previews_render/__init__.pyi +14 -0
- {bl_rna_utils → _bl_rna_utils}/__init__.pyi +1 -0
- {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +3 -2
- {bl_text_utils → _bl_text_utils}/__init__.pyi +1 -0
- _bl_text_utils/external_editor/__init__.pyi +6 -0
- {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
- {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +2 -1
- _blendfile_header/__init__.pyi +48 -0
- _bpy_internal/__init__.pyi +5 -1
- _bpy_internal/addons/__init__.pyi +1 -0
- _bpy_internal/addons/cli/__init__.pyi +2 -1
- _bpy_internal/assets/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/__init__.pyi +5 -0
- _bpy_internal/assets/remote_library_listing/blender_asset_library_openapi/__init__.pyi +13 -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_internal/extensions/__init__.pyi +1 -0
- _bpy_internal/extensions/junction_module/__init__.pyi +8 -7
- _bpy_internal/extensions/stale_file_manager/__init__.pyi +9 -8
- _bpy_internal/extensions/wheel_manager/__init__.pyi +6 -5
- {bl_i18n_utils/utils_languages_menu → _bpy_internal/filesystem}/__init__.pyi +2 -2
- _bpy_internal/filesystem/locking/__init__.pyi +28 -0
- _bpy_internal/grease_pencil/__init__.pyi +1 -0
- _bpy_internal/grease_pencil/stroke/__init__.pyi +22 -6
- _bpy_internal/platform/__init__.pyi +5 -0
- _bpy_internal/platform/freedesktop/__init__.pyi +21 -0
- _bpy_internal/system_info/__init__.pyi +1 -0
- _bpy_internal/system_info/text_generate_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_runtime/__init__.pyi +2 -1
- _bpy_internal/system_info/url_prefill_startup/__init__.pyi +3 -2
- {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +1 -0
- _bpy_types/__init__.pyi +1635 -0
- {console_python → _console_python}/__init__.pyi +8 -7
- _console_shell/__init__.pyi +10 -0
- {graphviz_export → _graphviz_export}/__init__.pyi +3 -2
- _keyingsets_utils/__init__.pyi +21 -0
- {rna_info → _rna_info}/__init__.pyi +32 -27
- {rna_xml → _rna_xml}/__init__.pyi +7 -6
- addon_utils/__init__.pyi +13 -25
- aud/__init__.pyi +133 -155
- bge/__init__.pyi +1 -0
- bge/app/__init__.pyi +1 -0
- bge/constraints/__init__.pyi +22 -51
- bge/types/__init__.pyi +618 -1913
- bge_extras/__init__.pyi +1 -0
- bge_extras/logger/__init__.pyi +4 -3
- bgui/__init__.pyi +1 -0
- bgui/frame/__init__.pyi +1 -0
- bgui/frame_button/__init__.pyi +1 -0
- bgui/image/__init__.pyi +1 -1
- bgui/image_button/__init__.pyi +1 -0
- bgui/label/__init__.pyi +1 -0
- bgui/list_box/__init__.pyi +1 -1
- bgui/progress_bar/__init__.pyi +2 -1
- bgui/system/__init__.pyi +3 -5
- bgui/text_block/__init__.pyi +1 -0
- bgui/text_input/__init__.pyi +9 -8
- bgui/theme/__init__.pyi +4 -3
- bgui/widget/__init__.pyi +5 -4
- bl_app_override/__init__.pyi +4 -3
- bl_app_override/helpers/__init__.pyi +3 -2
- bl_app_template_utils/__init__.pyi +5 -4
- bl_app_templates_system/Game_Engine/__init__.pyi +5 -4
- bl_app_templates_system/Storyboarding/__init__.pyi +11 -0
- bl_app_templates_system/__init__.pyi +2 -0
- bl_keymap_utils/__init__.pyi +1 -0
- bl_keymap_utils/io/__init__.pyi +10 -9
- bl_keymap_utils/keymap_from_toolbar/__init__.pyi +2 -1
- bl_keymap_utils/keymap_hierarchy/__init__.pyi +2 -1
- bl_keymap_utils/platform_helpers/__init__.pyi +3 -2
- bl_keymap_utils/versioning/__init__.pyi +2 -1
- bl_math/__init__.pyi +4 -13
- bl_operators/__init__.pyi +4 -2
- bl_operators/add_mesh_torus/__init__.pyi +9 -9
- bl_operators/anim/__init__.pyi +90 -62
- bl_operators/assets/__init__.pyi +14 -18
- bl_operators/bmesh/__init__.pyi +1 -0
- bl_operators/bmesh/find_adjacent/__init__.pyi +12 -9
- bl_operators/bone_selection_sets/__init__.pyi +34 -60
- bl_operators/clip/__init__.pyi +39 -57
- bl_operators/connect_to_output/__init__.pyi +20 -18
- bl_operators/console/__init__.pyi +17 -25
- bl_operators/constraint/__init__.pyi +15 -21
- bl_operators/copy_global_transform/__init__.pyi +261 -0
- bl_operators/file/__init__.pyi +13 -17
- bl_operators/freestyle/__init__.pyi +15 -21
- bl_operators/geometry_nodes/__init__.pyi +30 -36
- bl_operators/grease_pencil/__init__.pyi +5 -5
- bl_operators/image/__init__.pyi +14 -22
- bl_operators/image_as_planes/__init__.pyi +36 -42
- bl_operators/mesh/__init__.pyi +8 -53
- bl_operators/node/__init__.pyi +375 -92
- bl_operators/node_editor/__init__.pyi +1 -0
- bl_operators/node_editor/node_functions/__init__.pyi +10 -9
- bl_operators/object/__init__.pyi +57 -98
- bl_operators/object_align/__init__.pyi +8 -8
- bl_operators/object_quick_effects/__init__.pyi +15 -21
- bl_operators/object_randomize_transform/__init__.pyi +6 -6
- bl_operators/presets/__init__.pyi +46 -94
- bl_operators/rigidbody/__init__.pyi +12 -16
- bl_operators/screen_play_rendered_anim/__init__.pyi +5 -5
- bl_operators/sequencer/__init__.pyi +40 -54
- bl_operators/spreadsheet/__init__.pyi +7 -7
- bl_operators/userpref/__init__.pyi +69 -117
- bl_operators/uvcalc_follow_active/__init__.pyi +8 -8
- bl_operators/uvcalc_lightmap/__init__.pyi +12 -12
- bl_operators/uvcalc_transform/__init__.pyi +39 -28
- bl_operators/vertexpaint_dirt/__init__.pyi +7 -7
- bl_operators/view3d/__init__.pyi +31 -43
- bl_operators/wm/__init__.pyi +139 -231
- bl_operators/world/__init__.pyi +6 -6
- bl_ui/__init__.pyi +18 -17
- bl_ui/anim/__init__.pyi +5 -5
- bl_ui/asset_shelf/__init__.pyi +5 -5
- bl_ui/generic_ui_list/__init__.pyi +11 -25
- bl_ui/node_add_menu/__init__.pyi +281 -12
- bl_ui/node_add_menu_compositor/__init__.pyi +135 -91
- bl_ui/node_add_menu_geometry/__init__.pyi +407 -263
- bl_ui/node_add_menu_shader/__init__.pyi +67 -67
- bl_ui/node_add_menu_texture/__init__.pyi +25 -69
- bl_ui/properties_animviz/__init__.pyi +3 -2
- bl_ui/properties_collection/__init__.pyi +20 -30
- bl_ui/properties_constraint/__init__.pyi +228 -450
- bl_ui/properties_data_armature/__init__.pyi +45 -79
- bl_ui/properties_data_bone/__init__.pyi +33 -51
- bl_ui/properties_data_camera/__init__.pyi +43 -75
- bl_ui/properties_data_curve/__init__.pyi +42 -101
- bl_ui/properties_data_curves/__init__.pyi +21 -35
- bl_ui/properties_data_empty/__init__.pyi +8 -10
- bl_ui/properties_data_grease_pencil/__init__.pyi +49 -87
- bl_ui/properties_data_lattice/__init__.pyi +12 -18
- bl_ui/properties_data_light/__init__.pyi +28 -46
- bl_ui/properties_data_lightprobe/__init__.pyi +35 -61
- bl_ui/properties_data_mesh/__init__.pyi +73 -120
- bl_ui/properties_data_metaball/__init__.pyi +16 -26
- bl_ui/properties_data_modifier/__init__.pyi +34 -39
- bl_ui/properties_data_pointcloud/__init__.pyi +17 -27
- bl_ui/properties_data_shaderfx/__init__.pyi +4 -4
- bl_ui/properties_data_speaker/__init__.pyi +15 -25
- bl_ui/properties_data_volume/__init__.pyi +22 -38
- bl_ui/properties_freestyle/__init__.pyi +79 -127
- bl_ui/properties_game/__init__.pyi +88 -84
- bl_ui/properties_grease_pencil_common/__init__.pyi +33 -190
- bl_ui/properties_mask_common/__init__.pyi +33 -45
- bl_ui/properties_material/__init__.pyi +52 -111
- bl_ui/properties_material_gpencil/__init__.pyi +48 -68
- bl_ui/properties_object/__init__.pyi +123 -93
- bl_ui/properties_output/__init__.pyi +103 -81
- bl_ui/properties_paint_common/__init__.pyi +78 -59
- bl_ui/properties_particle/__init__.pyi +160 -262
- bl_ui/properties_physics_cloth/__init__.pyi +36 -62
- bl_ui/properties_physics_common/__init__.pyi +11 -11
- bl_ui/properties_physics_dynamicpaint/__init__.pyi +81 -123
- bl_ui/properties_physics_field/__init__.pyi +35 -53
- bl_ui/properties_physics_fluid/__init__.pyi +106 -160
- bl_ui/properties_physics_geometry_nodes/__init__.pyi +6 -6
- bl_ui/properties_physics_rigidbody/__init__.pyi +28 -42
- bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +44 -68
- bl_ui/properties_physics_softbody/__init__.pyi +38 -66
- bl_ui/properties_render/__init__.pyi +267 -259
- bl_ui/properties_scene/__init__.pyi +69 -72
- bl_ui/properties_strip/__init__.pyi +744 -0
- bl_ui/properties_strip_modifier/__init__.pyi +45 -0
- bl_ui/properties_texture/__init__.pyi +69 -122
- bl_ui/properties_view_layer/__init__.pyi +97 -51
- bl_ui/properties_workspace/__init__.pyi +12 -18
- bl_ui/properties_world/__init__.pyi +33 -53
- bl_ui/space_clip/__init__.pyi +231 -311
- bl_ui/space_console/__init__.pyi +14 -24
- bl_ui/space_dopesheet/__init__.pyi +193 -125
- bl_ui/space_filebrowser/__init__.pyi +107 -131
- bl_ui/space_graph/__init__.pyi +93 -80
- bl_ui/space_image/__init__.pyi +207 -291
- bl_ui/space_info/__init__.pyi +14 -24
- bl_ui/space_logic/__init__.pyi +14 -22
- bl_ui/space_nla/__init__.pyi +63 -69
- bl_ui/space_node/__init__.pyi +215 -154
- bl_ui/space_outliner/__init__.pyi +65 -61
- bl_ui/space_properties/__init__.pyi +41 -16
- bl_ui/space_sequencer/__init__.pyi +276 -980
- bl_ui/space_spreadsheet/__init__.pyi +27 -23
- bl_ui/space_statusbar/__init__.pyi +4 -4
- bl_ui/space_text/__init__.pyi +39 -73
- bl_ui/space_time/__init__.pyi +33 -78
- bl_ui/space_toolsystem_common/__init__.pyi +31 -28
- bl_ui/space_toolsystem_toolbar/__init__.pyi +67 -43
- bl_ui/space_topbar/__init__.pyi +68 -111
- bl_ui/space_userpref/__init__.pyi +310 -445
- bl_ui/space_view3d/__init__.pyi +667 -1122
- bl_ui/space_view3d_sidebar/__init__.pyi +127 -0
- bl_ui/space_view3d_toolbar/__init__.pyi +237 -966
- bl_ui/utils/__init__.pyi +4 -3
- blend_render_info/__init__.pyi +4 -2
- blf/__init__.pyi +92 -59
- bmesh/__init__.pyi +4 -10
- bmesh/geometry/__init__.pyi +2 -4
- bmesh/ops/__init__.pyi +442 -815
- bmesh/types/__init__.pyi +377 -720
- bmesh/utils/__init__.pyi +20 -45
- bpy/__init__.pyi +2 -1
- bpy/app/__init__.pyi +96 -90
- bpy/app/handlers/__init__.pyi +24 -19
- bpy/app/icons/__init__.pyi +2 -7
- bpy/app/timers/__init__.pyi +5 -18
- bpy/app/translations/__init__.pyi +21 -35
- bpy/msgbus/__init__.pyi +20 -9
- bpy/ops/__init__.pyi +21 -3
- bpy/ops/action/__init__.pyi +121 -226
- bpy/ops/anim/__init__.pyi +204 -358
- bpy/ops/armature/__init__.pyi +129 -249
- bpy/ops/asset/__init__.pyi +82 -111
- bpy/ops/bge_bricknodes/__init__.pyi +61 -0
- bpy/ops/boid/__init__.pyi +44 -50
- bpy/ops/bricknodes/__init__.pyi +37 -0
- bpy/ops/brush/__init__.pyi +33 -120
- bpy/ops/buttons/__init__.pyi +27 -83
- bpy/ops/cachefile/__init__.pyi +16 -74
- bpy/ops/camera/__init__.pyi +3 -13
- bpy/ops/clip/__init__.pyi +278 -558
- bpy/ops/cloth/__init__.pyi +2 -6
- bpy/ops/collection/__init__.pyi +34 -44
- bpy/ops/console/__init__.pyi +70 -111
- bpy/ops/constraint/__init__.pyi +34 -102
- bpy/ops/curve/__init__.pyi +163 -315
- bpy/ops/curves/__init__.pyi +163 -189
- bpy/ops/cycles/__init__.pyi +8 -18
- bpy/ops/dpaint/__init__.pyi +21 -30
- bpy/ops/ed/__init__.pyi +59 -103
- bpy/ops/export_anim/__init__.pyi +4 -11
- bpy/ops/export_scene/__init__.pyi +29 -174
- bpy/ops/extensions/__init__.pyi +102 -194
- bpy/ops/file/__init__.pyi +166 -272
- bpy/ops/fluid/__init__.pyi +78 -86
- bpy/ops/font/__init__.pyi +73 -164
- bpy/ops/geometry/__init__.pyi +33 -144
- bpy/ops/gizmogroup/__init__.pyi +8 -14
- bpy/ops/gpencil/__init__.pyi +31 -58
- bpy/ops/graph/__init__.pyi +176 -411
- bpy/ops/grease_pencil/__init__.pyi +416 -639
- bpy/ops/image/__init__.pyi +148 -492
- bpy/ops/import_anim/__init__.pyi +5 -18
- bpy/ops/import_curve/__init__.pyi +4 -6
- bpy/ops/import_scene/__init__.pyi +22 -49
- bpy/ops/info/__init__.pyi +27 -43
- bpy/ops/lattice/__init__.pyi +26 -43
- bpy/ops/logic/__init__.pyi +49 -122
- bpy/ops/logic_nodes/__init__.pyi +461 -0
- bpy/ops/marker/__init__.pyi +24 -60
- bpy/ops/mask/__init__.pyi +118 -222
- bpy/ops/material/__init__.pyi +19 -18
- bpy/ops/mball/__init__.pyi +13 -39
- bpy/ops/mesh/__init__.pyi +409 -1264
- bpy/ops/nla/__init__.pyi +140 -232
- bpy/ops/node/__init__.pyi +1189 -807
- bpy/ops/object/__init__.pyi +806 -1659
- bpy/ops/outliner/__init__.pyi +284 -432
- bpy/ops/paint/__init__.pyi +189 -381
- bpy/ops/paintcurve/__init__.pyi +29 -44
- bpy/ops/palette/__init__.pyi +23 -34
- bpy/ops/particle/__init__.pyi +135 -201
- bpy/ops/pointcloud/__init__.pyi +23 -42
- bpy/ops/pose/__init__.pyi +195 -310
- bpy/ops/poselib/__init__.pyi +45 -73
- bpy/ops/preferences/__init__.pyi +89 -221
- bpy/ops/ptcache/__init__.pyi +32 -39
- bpy/ops/render/__init__.pyi +36 -83
- bpy/ops/rigidbody/__init__.pyi +47 -78
- bpy/ops/scene/__init__.pyi +169 -222
- bpy/ops/screen/__init__.pyi +146 -259
- bpy/ops/script/__init__.pyi +9 -15
- bpy/ops/sculpt/__init__.pyi +194 -354
- bpy/ops/sculpt_curves/__init__.pyi +21 -29
- bpy/ops/sequencer/__init__.pyi +586 -836
- bpy/ops/sound/__init__.pyi +25 -131
- bpy/ops/spreadsheet/__init__.pyi +34 -21
- bpy/ops/surface/__init__.pyi +7 -54
- bpy/ops/text/__init__.pyi +166 -281
- bpy/ops/text_editor/__init__.pyi +2 -6
- bpy/ops/texture/__init__.pyi +20 -22
- bpy/ops/transform/__init__.pyi +108 -445
- bpy/ops/ui/__init__.pyi +157 -219
- bpy/ops/uilist/__init__.pyi +4 -16
- bpy/ops/uv/__init__.pyi +291 -347
- bpy/ops/view2d/__init__.pyi +29 -88
- bpy/ops/view3d/__init__.pyi +238 -438
- bpy/ops/wm/__init__.pyi +651 -1510
- bpy/ops/workspace/__init__.pyi +42 -44
- bpy/ops/world/__init__.pyi +12 -13
- bpy/path/__init__.pyi +5 -36
- bpy/props/__init__.pyi +395 -259
- bpy/{_typing → stub_internal}/__init__.pyi +1 -0
- bpy/{_typing → stub_internal}/rna_enums/__init__.pyi +214 -114
- bpy/types/__init__.pyi +93285 -103831
- bpy/utils/__init__.pyi +46 -104
- bpy/utils/previews/__init__.pyi +7 -15
- bpy/utils/units/__init__.pyi +6 -15
- bpy_extras/__init__.pyi +1 -0
- bpy_extras/anim_utils/__init__.pyi +32 -23
- bpy_extras/asset_utils/__init__.pyi +1 -0
- bpy_extras/bmesh_utils/__init__.pyi +2 -2
- bpy_extras/id_map_utils/__init__.pyi +15 -6
- bpy_extras/image_utils/__init__.pyi +3 -11
- bpy_extras/io_utils/__init__.pyi +22 -38
- bpy_extras/keyconfig_utils/__init__.pyi +5 -4
- bpy_extras/mesh_utils/__init__.pyi +3 -14
- bpy_extras/node_shader_utils/__init__.pyi +63 -70
- bpy_extras/node_utils/__init__.pyi +4 -3
- bpy_extras/object_utils/__init__.pyi +6 -19
- bpy_extras/view3d_utils/__init__.pyi +1 -18
- bpy_extras/wm_utils/__init__.pyi +1 -0
- bpy_extras/wm_utils/progress_report/__init__.pyi +12 -11
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/METADATA +9 -3
- fake_bge_module-20260201.dist-info/RECORD +414 -0
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/WHEEL +1 -1
- {fake_bge_module-20250317.dist-info → fake_bge_module-20260201.dist-info}/top_level.txt +16 -16
- freestyle/__init__.pyi +1 -0
- freestyle/chainingiterators/__init__.pyi +41 -60
- freestyle/functions/__init__.pyi +56 -194
- freestyle/predicates/__init__.pyi +11 -61
- freestyle/shaders/__init__.pyi +95 -156
- freestyle/types/__init__.pyi +306 -941
- freestyle/utils/ContextFunctions/__init__.pyi +4 -24
- freestyle/utils/__init__.pyi +46 -36
- gpu/__init__.pyi +84 -5
- gpu/capabilities/__init__.pyi +1 -21
- gpu/matrix/__init__.pyi +16 -24
- gpu/platform/__init__.pyi +3 -7
- gpu/select/__init__.pyi +2 -1
- gpu/shader/__init__.pyi +43 -9
- gpu/state/__init__.pyi +66 -44
- gpu/texture/__init__.pyi +4 -5
- gpu/types/__init__.pyi +216 -216
- gpu_extras/__init__.pyi +1 -0
- gpu_extras/batch/__init__.pyi +2 -5
- gpu_extras/presets/__init__.pyi +9 -10
- idprop/__init__.pyi +17 -0
- idprop/types/__init__.pyi +18 -17
- imbuf/__init__.pyi +13 -9
- imbuf/types/__init__.pyi +10 -23
- keyingsets_builtins/__init__.pyi +51 -93
- mathutils/__init__.pyi +296 -2255
- mathutils/bvhtree/__init__.pyi +22 -29
- mathutils/geometry/__init__.pyi +83 -132
- mathutils/interpolate/__init__.pyi +7 -5
- mathutils/kdtree/__init__.pyi +5 -14
- mathutils/noise/__init__.pyi +62 -106
- nodeitems_builtins/__init__.pyi +5 -4
- nodeitems_utils/__init__.pyi +10 -9
- rna_keymap_ui/__init__.pyi +7 -6
- rna_prop_ui/__init__.pyi +14 -13
- _bpy_internal/freedesktop/__init__.pyi +0 -20
- bgl/__init__.pyi +0 -4235
- bl_i18n_utils/bl_extract_messages/__init__.pyi +0 -24
- bl_i18n_utils/utils_cli/__init__.pyi +0 -10
- bl_previews_utils/bl_previews_render/__init__.pyi +0 -11
- bl_text_utils/external_editor/__init__.pyi +0 -5
- bpy_types/__init__.pyi +0 -29
- console_shell/__init__.pyi +0 -9
- fake_bge_module-20250317.dist-info/RECORD +0 -395
- keyingsets_utils/__init__.pyi +0 -18
- {animsys_refactor → _animsys_refactor}/py.typed +0 -0
- {bgl → _bl_console_utils}/py.typed +0 -0
- {bl_console_utils → _bl_i18n_utils}/py.typed +0 -0
- {bl_i18n_utils → _bl_previews_utils}/py.typed +0 -0
- {bl_previews_utils → _bl_rna_utils}/py.typed +0 -0
- {bl_rna_utils → _bl_text_utils}/py.typed +0 -0
- {bl_text_utils → _bl_ui_utils}/py.typed +0 -0
- {bl_ui_utils → _blendfile_header}/py.typed +0 -0
- {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
- {bpy_types → _bpy_types}/py.typed +0 -0
- {console_python → _console_python}/py.typed +0 -0
- {console_shell → _console_shell}/py.typed +0 -0
- {graphviz_export → _graphviz_export}/py.typed +0 -0
- {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
- {rna_info → _rna_info}/py.typed +0 -0
- {rna_xml → _rna_xml}/py.typed +0 -0
freestyle/shaders/__init__.pyi
CHANGED
|
@@ -11,6 +11,7 @@ freestyle.types.StrokeShader class.
|
|
|
11
11
|
import typing
|
|
12
12
|
import collections.abc
|
|
13
13
|
import typing_extensions
|
|
14
|
+
import numpy.typing as npt
|
|
14
15
|
import bpy.types
|
|
15
16
|
import freestyle.types
|
|
16
17
|
import mathutils
|
|
@@ -18,39 +19,35 @@ import mathutils
|
|
|
18
19
|
class BackboneStretcherShader:
|
|
19
20
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `BackboneStretcherShader`[Geometry shader]"""
|
|
20
21
|
|
|
21
|
-
def __init__(self, amount: float = 2.0):
|
|
22
|
+
def __init__(self, amount: float = 2.0) -> None:
|
|
22
23
|
"""Builds a BackboneStretcherShader object.
|
|
23
24
|
|
|
24
25
|
:param amount: The stretching amount value.
|
|
25
|
-
:type amount: float
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
28
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
29
29
|
"""Stretches the stroke at its two extremities and following the
|
|
30
30
|
respective directions: v(1)v(0) and v(n-1)v(n).
|
|
31
31
|
|
|
32
32
|
:param stroke: A Stroke object.
|
|
33
|
-
:type stroke: freestyle.types.Stroke
|
|
34
33
|
"""
|
|
35
34
|
|
|
36
35
|
class BezierCurveShader:
|
|
37
36
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `BezierCurveShader`[Geometry shader]"""
|
|
38
37
|
|
|
39
|
-
def __init__(self, error: float = 4.0):
|
|
38
|
+
def __init__(self, error: float = 4.0) -> None:
|
|
40
39
|
"""Builds a BezierCurveShader object.
|
|
41
40
|
|
|
42
|
-
:param error: The error
|
|
41
|
+
:param error: The error were allowing for the approximation. This
|
|
43
42
|
error is the max distance allowed between the new curve and the
|
|
44
43
|
original geometry.
|
|
45
|
-
:type error: float
|
|
46
44
|
"""
|
|
47
45
|
|
|
48
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
46
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
49
47
|
"""Transforms the stroke backbone geometry so that it corresponds to a
|
|
50
48
|
Bezier Curve approximation of the original backbone geometry.
|
|
51
49
|
|
|
52
50
|
:param stroke: A Stroke object.
|
|
53
|
-
:type stroke: freestyle.types.Stroke
|
|
54
51
|
"""
|
|
55
52
|
|
|
56
53
|
class BlenderTextureShader:
|
|
@@ -58,20 +55,17 @@ class BlenderTextureShader:
|
|
|
58
55
|
|
|
59
56
|
def __init__(
|
|
60
57
|
self, texture: bpy.types.LineStyleTextureSlot | bpy.types.ShaderNodeTree
|
|
61
|
-
):
|
|
58
|
+
) -> None:
|
|
62
59
|
"""Builds a BlenderTextureShader object.
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
a set of textures.
|
|
66
|
-
:type texture: bpy.types.LineStyleTextureSlot | bpy.types.ShaderNodeTree
|
|
61
|
+
:param texture: A line style texture slot or a shader node tree to define a set of textures.
|
|
67
62
|
"""
|
|
68
63
|
|
|
69
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
64
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
70
65
|
"""Assigns a blender texture slot to the stroke shading in order to
|
|
71
66
|
simulate marks.
|
|
72
67
|
|
|
73
68
|
:param stroke: A Stroke object.
|
|
74
|
-
:type stroke: freestyle.types.Stroke
|
|
75
69
|
"""
|
|
76
70
|
|
|
77
71
|
class CalligraphicShader:
|
|
@@ -83,138 +77,121 @@ class CalligraphicShader:
|
|
|
83
77
|
thickness_max: float,
|
|
84
78
|
orientation: collections.abc.Sequence[float] | mathutils.Vector,
|
|
85
79
|
clamp: bool,
|
|
86
|
-
):
|
|
80
|
+
) -> None:
|
|
87
81
|
"""Builds a CalligraphicShader object.
|
|
88
82
|
|
|
89
83
|
:param thickness_min: The minimum thickness in the direction
|
|
90
84
|
perpendicular to the main direction.
|
|
91
|
-
:type thickness_min: float
|
|
92
85
|
:param thickness_max: The maximum thickness in the main direction.
|
|
93
|
-
:type thickness_max: float
|
|
94
86
|
:param orientation: The 2D vector giving the main direction.
|
|
95
|
-
:type orientation: collections.abc.Sequence[float] | mathutils.Vector
|
|
96
87
|
:param clamp: If true, the strokes are drawn in black when the stroke
|
|
97
88
|
direction is between -90 and 90 degrees with respect to the main
|
|
98
89
|
direction and drawn in white otherwise. If false, the strokes
|
|
99
90
|
are always drawn in black.
|
|
100
|
-
:type clamp: bool
|
|
101
91
|
"""
|
|
102
92
|
|
|
103
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
93
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
104
94
|
"""Assigns thicknesses to the stroke vertices so that the stroke looks
|
|
105
95
|
like made with a calligraphic tool, i.e. the stroke will be the
|
|
106
96
|
thickest in a main direction, and the thinnest in the direction
|
|
107
97
|
perpendicular to this one, and an interpolation in between.
|
|
108
98
|
|
|
109
99
|
:param stroke: A Stroke object.
|
|
110
|
-
:type stroke: freestyle.types.Stroke
|
|
111
100
|
"""
|
|
112
101
|
|
|
113
102
|
class ColorNoiseShader:
|
|
114
103
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `ColorNoiseShader`[Color shader]"""
|
|
115
104
|
|
|
116
|
-
def __init__(self, amplitude: float, period: float):
|
|
105
|
+
def __init__(self, amplitude: float, period: float) -> None:
|
|
117
106
|
"""Builds a ColorNoiseShader object.
|
|
118
107
|
|
|
119
108
|
:param amplitude: The amplitude of the noise signal.
|
|
120
|
-
:type amplitude: float
|
|
121
109
|
:param period: The period of the noise signal.
|
|
122
|
-
:type period: float
|
|
123
110
|
"""
|
|
124
111
|
|
|
125
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
112
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
126
113
|
"""Shader to add noise to the stroke colors.
|
|
127
114
|
|
|
128
115
|
:param stroke: A Stroke object.
|
|
129
|
-
:type stroke: freestyle.types.Stroke
|
|
130
116
|
"""
|
|
131
117
|
|
|
132
118
|
class ConstantColorShader:
|
|
133
119
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `ConstantColorShader`[Color shader]"""
|
|
134
120
|
|
|
135
|
-
def __init__(
|
|
121
|
+
def __init__(
|
|
122
|
+
self, red: float, green: float, blue: float, alpha: float = 1.0
|
|
123
|
+
) -> None:
|
|
136
124
|
"""Builds a ConstantColorShader object.
|
|
137
125
|
|
|
138
126
|
:param red: The red component.
|
|
139
|
-
:type red: float
|
|
140
127
|
:param green: The green component.
|
|
141
|
-
:type green: float
|
|
142
128
|
:param blue: The blue component.
|
|
143
|
-
:type blue: float
|
|
144
129
|
:param alpha: The alpha value.
|
|
145
|
-
:type alpha: float
|
|
146
130
|
"""
|
|
147
131
|
|
|
148
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
132
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
149
133
|
"""Assigns a constant color to every vertex of the Stroke.
|
|
150
134
|
|
|
151
135
|
:param stroke: A Stroke object.
|
|
152
|
-
:type stroke: freestyle.types.Stroke
|
|
153
136
|
"""
|
|
154
137
|
|
|
155
138
|
class ConstantThicknessShader:
|
|
156
139
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `ConstantThicknessShader`[Thickness shader]"""
|
|
157
140
|
|
|
158
|
-
def __init__(self, thickness: float):
|
|
141
|
+
def __init__(self, thickness: float) -> None:
|
|
159
142
|
"""Builds a ConstantThicknessShader object.
|
|
160
143
|
|
|
161
144
|
:param thickness: The thickness that must be assigned to the stroke.
|
|
162
|
-
:type thickness: float
|
|
163
145
|
"""
|
|
164
146
|
|
|
165
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
147
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
166
148
|
"""Assigns an absolute constant thickness to every vertex of the Stroke.
|
|
167
149
|
|
|
168
150
|
:param stroke: A Stroke object.
|
|
169
|
-
:type stroke: freestyle.types.Stroke
|
|
170
151
|
"""
|
|
171
152
|
|
|
172
153
|
class ConstrainedIncreasingThicknessShader:
|
|
173
154
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `ConstrainedIncreasingThicknessShader`[Thickness shader]"""
|
|
174
155
|
|
|
175
|
-
def __init__(
|
|
156
|
+
def __init__(
|
|
157
|
+
self, thickness_min: float, thickness_max: float, ratio: float
|
|
158
|
+
) -> None:
|
|
176
159
|
"""Builds a ConstrainedIncreasingThicknessShader object.
|
|
177
160
|
|
|
178
161
|
:param thickness_min: The minimum thickness.
|
|
179
|
-
:type thickness_min: float
|
|
180
162
|
:param thickness_max: The maximum thickness.
|
|
181
|
-
:
|
|
182
|
-
:param ratio: The thickness/length ratio that we don't want to exceed.
|
|
183
|
-
:type ratio: float
|
|
163
|
+
:param ratio: The thickness/length ratio that we dont want to exceed.
|
|
184
164
|
"""
|
|
185
165
|
|
|
186
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
166
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
187
167
|
"""Same as the `IncreasingThicknessShader`, but here we allow
|
|
188
|
-
the user to control the thickness/length ratio so that we
|
|
168
|
+
the user to control the thickness/length ratio so that we dont get
|
|
189
169
|
fat short lines.
|
|
190
170
|
|
|
191
171
|
:param stroke: A Stroke object.
|
|
192
|
-
:type stroke: freestyle.types.Stroke
|
|
193
172
|
"""
|
|
194
173
|
|
|
195
174
|
class GuidingLinesShader:
|
|
196
175
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `GuidingLinesShader`[Geometry shader]"""
|
|
197
176
|
|
|
198
|
-
def __init__(self, offset: float):
|
|
177
|
+
def __init__(self, offset: float) -> None:
|
|
199
178
|
"""Builds a GuidingLinesShader object.
|
|
200
179
|
|
|
201
180
|
:param offset: The line that replaces the stroke is initially in the
|
|
202
181
|
middle of the initial stroke bounding box. offset is the value
|
|
203
182
|
of the displacement which is applied to this line along its
|
|
204
183
|
normal.
|
|
205
|
-
:type offset: float
|
|
206
184
|
"""
|
|
207
185
|
|
|
208
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
186
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
209
187
|
"""Shader to modify the Stroke geometry so that it corresponds to its
|
|
210
188
|
main direction line. This shader must be used together with the
|
|
211
189
|
splitting operator using the curvature criterion. Indeed, the
|
|
212
190
|
precision of the approximation will depend on the size of the
|
|
213
|
-
|
|
191
|
+
strokes pieces. The bigger the pieces are, the rougher the
|
|
214
192
|
approximation is.
|
|
215
193
|
|
|
216
194
|
:param stroke: A Stroke object.
|
|
217
|
-
:type stroke: freestyle.types.Stroke
|
|
218
195
|
"""
|
|
219
196
|
|
|
220
197
|
class IncreasingColorShader:
|
|
@@ -230,49 +207,38 @@ class IncreasingColorShader:
|
|
|
230
207
|
green_max: float,
|
|
231
208
|
blue_max: float,
|
|
232
209
|
alpha_max: float,
|
|
233
|
-
):
|
|
210
|
+
) -> None:
|
|
234
211
|
"""Builds an IncreasingColorShader object.
|
|
235
212
|
|
|
236
213
|
:param red_min: The first color red component.
|
|
237
|
-
:type red_min: float
|
|
238
214
|
:param green_min: The first color green component.
|
|
239
|
-
:type green_min: float
|
|
240
215
|
:param blue_min: The first color blue component.
|
|
241
|
-
:type blue_min: float
|
|
242
216
|
:param alpha_min: The first color alpha value.
|
|
243
|
-
:type alpha_min: float
|
|
244
217
|
:param red_max: The second color red component.
|
|
245
|
-
:type red_max: float
|
|
246
218
|
:param green_max: The second color green component.
|
|
247
|
-
:type green_max: float
|
|
248
219
|
:param blue_max: The second color blue component.
|
|
249
|
-
:type blue_max: float
|
|
250
220
|
:param alpha_max: The second color alpha value.
|
|
251
|
-
:type alpha_max: float
|
|
252
221
|
"""
|
|
253
222
|
|
|
254
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
223
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
255
224
|
"""Assigns a varying color to the stroke. The user specifies two
|
|
256
225
|
colors A and B. The stroke color will change linearly from A to B
|
|
257
226
|
between the first and the last vertex.
|
|
258
227
|
|
|
259
228
|
:param stroke: A Stroke object.
|
|
260
|
-
:type stroke: freestyle.types.Stroke
|
|
261
229
|
"""
|
|
262
230
|
|
|
263
231
|
class IncreasingThicknessShader:
|
|
264
232
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `IncreasingThicknessShader`[Thickness shader]"""
|
|
265
233
|
|
|
266
|
-
def __init__(self, thickness_A: float, thickness_B: float):
|
|
234
|
+
def __init__(self, thickness_A: float, thickness_B: float) -> None:
|
|
267
235
|
"""Builds an IncreasingThicknessShader object.
|
|
268
236
|
|
|
269
237
|
:param thickness_A: The first thickness value.
|
|
270
|
-
:type thickness_A: float
|
|
271
238
|
:param thickness_B: The second thickness value.
|
|
272
|
-
:type thickness_B: float
|
|
273
239
|
"""
|
|
274
240
|
|
|
275
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
241
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
276
242
|
"""Assigns thicknesses values such as the thickness increases from a
|
|
277
243
|
thickness value A to a thickness value B between the first vertex
|
|
278
244
|
to the midpoint vertex and then decreases from B to a A between
|
|
@@ -280,23 +246,21 @@ class IncreasingThicknessShader:
|
|
|
280
246
|
linearly interpolated from A to B.
|
|
281
247
|
|
|
282
248
|
:param stroke: A Stroke object.
|
|
283
|
-
:type stroke: freestyle.types.Stroke
|
|
284
249
|
"""
|
|
285
250
|
|
|
286
251
|
class PolygonalizationShader:
|
|
287
252
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `PolygonalizationShader`[Geometry shader]"""
|
|
288
253
|
|
|
289
|
-
def __init__(self, error: float):
|
|
254
|
+
def __init__(self, error: float) -> None:
|
|
290
255
|
"""Builds a PolygonalizationShader object.
|
|
291
256
|
|
|
292
257
|
:param error: The error we want our polygonal approximation to have
|
|
293
258
|
with respect to the original geometry. The smaller, the closer
|
|
294
259
|
the new stroke is to the original one. This error corresponds to
|
|
295
260
|
the maximum distance between the new stroke and the old one.
|
|
296
|
-
:type error: float
|
|
297
261
|
"""
|
|
298
262
|
|
|
299
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
263
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
300
264
|
"""Modifies the Stroke geometry so that it looks more "polygonal".
|
|
301
265
|
The basic idea is to start from the minimal stroke approximation
|
|
302
266
|
consisting in a line joining the first vertex to the last one and
|
|
@@ -304,17 +268,16 @@ class PolygonalizationShader:
|
|
|
304
268
|
error is reached.
|
|
305
269
|
|
|
306
270
|
:param stroke: A Stroke object.
|
|
307
|
-
:type stroke: freestyle.types.Stroke
|
|
308
271
|
"""
|
|
309
272
|
|
|
310
273
|
class RoundCapShader:
|
|
311
|
-
def round_cap_thickness(self, x):
|
|
274
|
+
def round_cap_thickness(self, x) -> None:
|
|
312
275
|
"""
|
|
313
276
|
|
|
314
277
|
:param x:
|
|
315
278
|
"""
|
|
316
279
|
|
|
317
|
-
def shade(self, stroke):
|
|
280
|
+
def shade(self, stroke) -> None:
|
|
318
281
|
"""
|
|
319
282
|
|
|
320
283
|
:param stroke:
|
|
@@ -323,18 +286,16 @@ class RoundCapShader:
|
|
|
323
286
|
class SamplingShader:
|
|
324
287
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `SamplingShader`[Geometry shader]"""
|
|
325
288
|
|
|
326
|
-
def __init__(self, sampling: float):
|
|
289
|
+
def __init__(self, sampling: float) -> None:
|
|
327
290
|
"""Builds a SamplingShader object.
|
|
328
291
|
|
|
329
292
|
:param sampling: The sampling to use for the stroke resampling.
|
|
330
|
-
:type sampling: float
|
|
331
293
|
"""
|
|
332
294
|
|
|
333
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
295
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
334
296
|
"""Resamples the stroke.
|
|
335
297
|
|
|
336
298
|
:param stroke: A Stroke object.
|
|
337
|
-
:type stroke: freestyle.types.Stroke
|
|
338
299
|
"""
|
|
339
300
|
|
|
340
301
|
class SmoothingShader:
|
|
@@ -350,35 +311,26 @@ class SmoothingShader:
|
|
|
350
311
|
aniso_normal: float = 0.0,
|
|
351
312
|
aniso_curvature: float = 0.0,
|
|
352
313
|
carricature_factor: float = 1.0,
|
|
353
|
-
):
|
|
314
|
+
) -> None:
|
|
354
315
|
"""Builds a SmoothingShader object.
|
|
355
316
|
|
|
356
317
|
:param num_iterations: The number of iterations.
|
|
357
|
-
:type num_iterations: int
|
|
358
318
|
:param factor_point: 0.1
|
|
359
|
-
:type factor_point: float
|
|
360
319
|
:param factor_curvature: 0.0
|
|
361
|
-
:type factor_curvature: float
|
|
362
320
|
:param factor_curvature_difference: 0.2
|
|
363
|
-
:type factor_curvature_difference: float
|
|
364
321
|
:param aniso_point: 0.0
|
|
365
|
-
:type aniso_point: float
|
|
366
322
|
:param aniso_normal: 0.0
|
|
367
|
-
:type aniso_normal: float
|
|
368
323
|
:param aniso_curvature: 0.0
|
|
369
|
-
:type aniso_curvature: float
|
|
370
324
|
:param carricature_factor: 1.0
|
|
371
|
-
:type carricature_factor: float
|
|
372
325
|
"""
|
|
373
326
|
|
|
374
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
327
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
375
328
|
"""Smooths the stroke by moving the vertices to make the stroke
|
|
376
329
|
smoother. Uses curvature flow to converge towards a curve of
|
|
377
330
|
constant curvature. The diffusion method we use is anisotropic to
|
|
378
331
|
prevent the diffusion across corners.
|
|
379
332
|
|
|
380
333
|
:param stroke: A Stroke object.
|
|
381
|
-
:type stroke: freestyle.types.Stroke
|
|
382
334
|
"""
|
|
383
335
|
|
|
384
336
|
class SpatialNoiseShader:
|
|
@@ -391,31 +343,25 @@ class SpatialNoiseShader:
|
|
|
391
343
|
num_octaves: int,
|
|
392
344
|
smooth: bool,
|
|
393
345
|
pure_random: bool,
|
|
394
|
-
):
|
|
346
|
+
) -> None:
|
|
395
347
|
"""Builds a SpatialNoiseShader object.
|
|
396
348
|
|
|
397
349
|
:param amount: The amplitude of the noise.
|
|
398
|
-
:type amount: float
|
|
399
350
|
:param scale: The noise frequency.
|
|
400
|
-
:type scale: float
|
|
401
351
|
:param num_octaves: The number of octaves
|
|
402
|
-
:type num_octaves: int
|
|
403
352
|
:param smooth: True if you want the noise to be smooth.
|
|
404
|
-
:
|
|
405
|
-
:param pure_random: True if you don't want any coherence.
|
|
406
|
-
:type pure_random: bool
|
|
353
|
+
:param pure_random: True if you dont want any coherence.
|
|
407
354
|
"""
|
|
408
355
|
|
|
409
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
356
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
410
357
|
"""Spatial Noise stroke shader. Moves the vertices to make the stroke
|
|
411
358
|
more noisy.
|
|
412
359
|
|
|
413
360
|
:param stroke: A Stroke object.
|
|
414
|
-
:type stroke: freestyle.types.Stroke
|
|
415
361
|
"""
|
|
416
362
|
|
|
417
363
|
class SquareCapShader:
|
|
418
|
-
def shade(self, stroke):
|
|
364
|
+
def shade(self, stroke) -> None:
|
|
419
365
|
"""
|
|
420
366
|
|
|
421
367
|
:param stroke:
|
|
@@ -424,55 +370,48 @@ class SquareCapShader:
|
|
|
424
370
|
class StrokeTextureStepShader:
|
|
425
371
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `StrokeTextureStepShader`[Texture shader]"""
|
|
426
372
|
|
|
427
|
-
def __init__(self, step: float):
|
|
373
|
+
def __init__(self, step: float) -> None:
|
|
428
374
|
"""Builds a StrokeTextureStepShader object.
|
|
429
375
|
|
|
430
376
|
:param step: The spacing along the stroke.
|
|
431
|
-
:type step: float
|
|
432
377
|
"""
|
|
433
378
|
|
|
434
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
379
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
435
380
|
"""Assigns a spacing factor to the texture coordinates of the Stroke.
|
|
436
381
|
|
|
437
382
|
:param stroke: A Stroke object.
|
|
438
|
-
:type stroke: freestyle.types.Stroke
|
|
439
383
|
"""
|
|
440
384
|
|
|
441
385
|
class ThicknessNoiseShader:
|
|
442
386
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `ThicknessNoiseShader`[Thickness shader]"""
|
|
443
387
|
|
|
444
|
-
def __init__(self, amplitude: float, period: float):
|
|
388
|
+
def __init__(self, amplitude: float, period: float) -> None:
|
|
445
389
|
"""Builds a ThicknessNoiseShader object.
|
|
446
390
|
|
|
447
391
|
:param amplitude: The amplitude of the noise signal.
|
|
448
|
-
:type amplitude: float
|
|
449
392
|
:param period: The period of the noise signal.
|
|
450
|
-
:type period: float
|
|
451
393
|
"""
|
|
452
394
|
|
|
453
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
395
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
454
396
|
"""Adds some noise to the stroke thickness.
|
|
455
397
|
|
|
456
398
|
:param stroke: A Stroke object.
|
|
457
|
-
:type stroke: freestyle.types.Stroke
|
|
458
399
|
"""
|
|
459
400
|
|
|
460
401
|
class TipRemoverShader:
|
|
461
402
|
"""Class hierarchy: `freestyle.types.StrokeShader` > `TipRemoverShader`[Geometry shader]"""
|
|
462
403
|
|
|
463
|
-
def __init__(self, tip_length: float):
|
|
404
|
+
def __init__(self, tip_length: float) -> None:
|
|
464
405
|
"""Builds a TipRemoverShader object.
|
|
465
406
|
|
|
466
407
|
:param tip_length: The length of the piece of stroke we want to remove
|
|
467
408
|
at each extremity.
|
|
468
|
-
:type tip_length: float
|
|
469
409
|
"""
|
|
470
410
|
|
|
471
|
-
def shade(self, stroke: freestyle.types.Stroke):
|
|
472
|
-
"""Removes the
|
|
411
|
+
def shade(self, stroke: freestyle.types.Stroke) -> None:
|
|
412
|
+
"""Removes the strokes extremities.
|
|
473
413
|
|
|
474
414
|
:param stroke: A Stroke object.
|
|
475
|
-
:type stroke: freestyle.types.Stroke
|
|
476
415
|
"""
|
|
477
416
|
|
|
478
417
|
class py2DCurvatureColorShader:
|
|
@@ -480,25 +419,25 @@ class py2DCurvatureColorShader:
|
|
|
480
419
|
A higher curvature will yield a brighter color.
|
|
481
420
|
"""
|
|
482
421
|
|
|
483
|
-
def shade(self, stroke):
|
|
422
|
+
def shade(self, stroke) -> None:
|
|
484
423
|
"""
|
|
485
424
|
|
|
486
425
|
:param stroke:
|
|
487
426
|
"""
|
|
488
427
|
|
|
489
428
|
class pyBackboneStretcherNoCuspShader:
|
|
490
|
-
"""Stretches the
|
|
429
|
+
"""Stretches the strokes backbone, excluding cusp vertices (end junctions)."""
|
|
491
430
|
|
|
492
|
-
def shade(self, stroke):
|
|
431
|
+
def shade(self, stroke) -> None:
|
|
493
432
|
"""
|
|
494
433
|
|
|
495
434
|
:param stroke:
|
|
496
435
|
"""
|
|
497
436
|
|
|
498
437
|
class pyBackboneStretcherShader:
|
|
499
|
-
"""Stretches the
|
|
438
|
+
"""Stretches the strokes backbone by a given length (in pixels)."""
|
|
500
439
|
|
|
501
|
-
def shade(self, stroke):
|
|
440
|
+
def shade(self, stroke) -> None:
|
|
502
441
|
"""
|
|
503
442
|
|
|
504
443
|
:param stroke:
|
|
@@ -507,7 +446,7 @@ class pyBackboneStretcherShader:
|
|
|
507
446
|
class pyBluePrintCirclesShader:
|
|
508
447
|
"""Draws the silhouette of the object as a circle."""
|
|
509
448
|
|
|
510
|
-
def shade(self, stroke):
|
|
449
|
+
def shade(self, stroke) -> None:
|
|
511
450
|
"""
|
|
512
451
|
|
|
513
452
|
:param stroke:
|
|
@@ -516,21 +455,21 @@ class pyBluePrintCirclesShader:
|
|
|
516
455
|
class pyBluePrintDirectedSquaresShader:
|
|
517
456
|
"""Replaces the stroke with a directed square."""
|
|
518
457
|
|
|
519
|
-
def shade(self, stroke):
|
|
458
|
+
def shade(self, stroke) -> None:
|
|
520
459
|
"""
|
|
521
460
|
|
|
522
461
|
:param stroke:
|
|
523
462
|
"""
|
|
524
463
|
|
|
525
464
|
class pyBluePrintEllipsesShader:
|
|
526
|
-
def shade(self, stroke):
|
|
465
|
+
def shade(self, stroke) -> None:
|
|
527
466
|
"""
|
|
528
467
|
|
|
529
468
|
:param stroke:
|
|
530
469
|
"""
|
|
531
470
|
|
|
532
471
|
class pyBluePrintSquaresShader:
|
|
533
|
-
def shade(self, stroke):
|
|
472
|
+
def shade(self, stroke) -> None:
|
|
534
473
|
"""
|
|
535
474
|
|
|
536
475
|
:param stroke:
|
|
@@ -539,7 +478,7 @@ class pyBluePrintSquaresShader:
|
|
|
539
478
|
class pyConstantColorShader:
|
|
540
479
|
"""Assigns a constant color to the stroke."""
|
|
541
480
|
|
|
542
|
-
def shade(self, stroke):
|
|
481
|
+
def shade(self, stroke) -> None:
|
|
543
482
|
"""
|
|
544
483
|
|
|
545
484
|
:param stroke:
|
|
@@ -548,7 +487,7 @@ class pyConstantColorShader:
|
|
|
548
487
|
class pyConstantThicknessShader:
|
|
549
488
|
"""Assigns a constant thickness along the stroke."""
|
|
550
489
|
|
|
551
|
-
def shade(self, stroke):
|
|
490
|
+
def shade(self, stroke) -> None:
|
|
552
491
|
"""
|
|
553
492
|
|
|
554
493
|
:param stroke:
|
|
@@ -556,10 +495,10 @@ class pyConstantThicknessShader:
|
|
|
556
495
|
|
|
557
496
|
class pyConstrainedIncreasingThicknessShader:
|
|
558
497
|
"""Increasingly thickens the stroke, constrained by a ratio of the
|
|
559
|
-
|
|
498
|
+
strokes length.
|
|
560
499
|
"""
|
|
561
500
|
|
|
562
|
-
def shade(self, stroke):
|
|
501
|
+
def shade(self, stroke) -> None:
|
|
563
502
|
"""
|
|
564
503
|
|
|
565
504
|
:param stroke:
|
|
@@ -568,18 +507,18 @@ class pyConstrainedIncreasingThicknessShader:
|
|
|
568
507
|
class pyDecreasingThicknessShader:
|
|
569
508
|
"""Inverse of pyIncreasingThicknessShader, decreasingly thickens the stroke."""
|
|
570
509
|
|
|
571
|
-
def shade(self, stroke):
|
|
510
|
+
def shade(self, stroke) -> None:
|
|
572
511
|
"""
|
|
573
512
|
|
|
574
513
|
:param stroke:
|
|
575
514
|
"""
|
|
576
515
|
|
|
577
516
|
class pyDepthDiscontinuityThicknessShader:
|
|
578
|
-
"""Assigns a thickness to the stroke based on the
|
|
517
|
+
"""Assigns a thickness to the stroke based on the strokes distance
|
|
579
518
|
to the camera (Z-value).
|
|
580
519
|
"""
|
|
581
520
|
|
|
582
|
-
def shade(self, stroke):
|
|
521
|
+
def shade(self, stroke) -> None:
|
|
583
522
|
"""
|
|
584
523
|
|
|
585
524
|
:param stroke:
|
|
@@ -592,7 +531,7 @@ class pyDiffusion2Shader:
|
|
|
592
531
|
the stroke curve is) at the point.
|
|
593
532
|
"""
|
|
594
533
|
|
|
595
|
-
def shade(self, stroke):
|
|
534
|
+
def shade(self, stroke) -> None:
|
|
596
535
|
"""
|
|
597
536
|
|
|
598
537
|
:param stroke:
|
|
@@ -601,14 +540,14 @@ class pyDiffusion2Shader:
|
|
|
601
540
|
class pyFXSVaryingThicknessWithDensityShader:
|
|
602
541
|
"""Assigns thickness to a stroke based on the density of the diffuse map."""
|
|
603
542
|
|
|
604
|
-
def shade(self, stroke):
|
|
543
|
+
def shade(self, stroke) -> None:
|
|
605
544
|
"""
|
|
606
545
|
|
|
607
546
|
:param stroke:
|
|
608
547
|
"""
|
|
609
548
|
|
|
610
549
|
class pyGuidingLineShader:
|
|
611
|
-
def shade(self, stroke):
|
|
550
|
+
def shade(self, stroke) -> None:
|
|
612
551
|
"""
|
|
613
552
|
|
|
614
553
|
:param stroke:
|
|
@@ -619,7 +558,7 @@ class pyHLRShader:
|
|
|
619
558
|
based on hidden line removal (HLR).
|
|
620
559
|
"""
|
|
621
560
|
|
|
622
|
-
def shade(self, stroke):
|
|
561
|
+
def shade(self, stroke) -> None:
|
|
623
562
|
"""
|
|
624
563
|
|
|
625
564
|
:param stroke:
|
|
@@ -631,7 +570,7 @@ class pyImportance2DThicknessShader:
|
|
|
631
570
|
specified point have the lowest thickness.
|
|
632
571
|
"""
|
|
633
572
|
|
|
634
|
-
def shade(self, stroke):
|
|
573
|
+
def shade(self, stroke) -> None:
|
|
635
574
|
"""
|
|
636
575
|
|
|
637
576
|
:param stroke:
|
|
@@ -640,7 +579,7 @@ class pyImportance2DThicknessShader:
|
|
|
640
579
|
class pyImportance3DThicknessShader:
|
|
641
580
|
"""Assigns thickness based on distance to a given point in 3D space."""
|
|
642
581
|
|
|
643
|
-
def shade(self, stroke):
|
|
582
|
+
def shade(self, stroke) -> None:
|
|
644
583
|
"""
|
|
645
584
|
|
|
646
585
|
:param stroke:
|
|
@@ -649,7 +588,7 @@ class pyImportance3DThicknessShader:
|
|
|
649
588
|
class pyIncreasingColorShader:
|
|
650
589
|
"""Fades from one color to another along the stroke."""
|
|
651
590
|
|
|
652
|
-
def shade(self, stroke):
|
|
591
|
+
def shade(self, stroke) -> None:
|
|
653
592
|
"""
|
|
654
593
|
|
|
655
594
|
:param stroke:
|
|
@@ -658,7 +597,7 @@ class pyIncreasingColorShader:
|
|
|
658
597
|
class pyIncreasingThicknessShader:
|
|
659
598
|
"""Increasingly thickens the stroke."""
|
|
660
599
|
|
|
661
|
-
def shade(self, stroke):
|
|
600
|
+
def shade(self, stroke) -> None:
|
|
662
601
|
"""
|
|
663
602
|
|
|
664
603
|
:param stroke:
|
|
@@ -667,19 +606,19 @@ class pyIncreasingThicknessShader:
|
|
|
667
606
|
class pyInterpolateColorShader:
|
|
668
607
|
"""Fades from one color to another and back."""
|
|
669
608
|
|
|
670
|
-
def shade(self, stroke):
|
|
609
|
+
def shade(self, stroke) -> None:
|
|
671
610
|
"""
|
|
672
611
|
|
|
673
612
|
:param stroke:
|
|
674
613
|
"""
|
|
675
614
|
|
|
676
615
|
class pyLengthDependingBackboneStretcherShader:
|
|
677
|
-
"""Stretches the
|
|
678
|
-
NOTE:
|
|
616
|
+
"""Stretches the strokes backbone proportional to the strokes length
|
|
617
|
+
NOTE: youll probably want an l somewhere between (0.5 - 0). A value that
|
|
679
618
|
is too high may yield unexpected results.
|
|
680
619
|
"""
|
|
681
620
|
|
|
682
|
-
def shade(self, stroke):
|
|
621
|
+
def shade(self, stroke) -> None:
|
|
683
622
|
"""
|
|
684
623
|
|
|
685
624
|
:param stroke:
|
|
@@ -688,16 +627,16 @@ class pyLengthDependingBackboneStretcherShader:
|
|
|
688
627
|
class pyMaterialColorShader:
|
|
689
628
|
"""Assigns the color of the underlying material to the stroke."""
|
|
690
629
|
|
|
691
|
-
def shade(self, stroke):
|
|
630
|
+
def shade(self, stroke) -> None:
|
|
692
631
|
"""
|
|
693
632
|
|
|
694
633
|
:param stroke:
|
|
695
634
|
"""
|
|
696
635
|
|
|
697
636
|
class pyModulateAlphaShader:
|
|
698
|
-
"""Limits the
|
|
637
|
+
"""Limits the strokes alpha between a min and max value."""
|
|
699
638
|
|
|
700
|
-
def shade(self, stroke):
|
|
639
|
+
def shade(self, stroke) -> None:
|
|
701
640
|
"""
|
|
702
641
|
|
|
703
642
|
:param stroke:
|
|
@@ -706,7 +645,7 @@ class pyModulateAlphaShader:
|
|
|
706
645
|
class pyNonLinearVaryingThicknessShader:
|
|
707
646
|
"""Assigns thickness to a stroke based on an exponential function."""
|
|
708
647
|
|
|
709
|
-
def shade(self, stroke):
|
|
648
|
+
def shade(self, stroke) -> None:
|
|
710
649
|
"""
|
|
711
650
|
|
|
712
651
|
:param stroke:
|
|
@@ -718,7 +657,7 @@ class pyPerlinNoise1DShader:
|
|
|
718
657
|
identically distorted.
|
|
719
658
|
"""
|
|
720
659
|
|
|
721
|
-
def shade(self, stroke):
|
|
660
|
+
def shade(self, stroke) -> None:
|
|
722
661
|
"""
|
|
723
662
|
|
|
724
663
|
:param stroke:
|
|
@@ -730,7 +669,7 @@ class pyPerlinNoise2DShader:
|
|
|
730
669
|
https://freestyleintegration.wordpress.com/2011/09/25/development-updates-on-september-25/
|
|
731
670
|
"""
|
|
732
671
|
|
|
733
|
-
def shade(self, stroke):
|
|
672
|
+
def shade(self, stroke) -> None:
|
|
734
673
|
"""
|
|
735
674
|
|
|
736
675
|
:param stroke:
|
|
@@ -739,7 +678,7 @@ class pyPerlinNoise2DShader:
|
|
|
739
678
|
class pyRandomColorShader:
|
|
740
679
|
"""Assigns a color to the stroke based on given seed."""
|
|
741
680
|
|
|
742
|
-
def shade(self, stroke):
|
|
681
|
+
def shade(self, stroke) -> None:
|
|
743
682
|
"""
|
|
744
683
|
|
|
745
684
|
:param stroke:
|
|
@@ -748,7 +687,7 @@ class pyRandomColorShader:
|
|
|
748
687
|
class pySLERPThicknessShader:
|
|
749
688
|
"""Assigns thickness to a stroke based on spherical linear interpolation."""
|
|
750
689
|
|
|
751
|
-
def shade(self, stroke):
|
|
690
|
+
def shade(self, stroke) -> None:
|
|
752
691
|
"""
|
|
753
692
|
|
|
754
693
|
:param stroke:
|
|
@@ -759,7 +698,7 @@ class pySamplingShader:
|
|
|
759
698
|
vertices specified.
|
|
760
699
|
"""
|
|
761
700
|
|
|
762
|
-
def shade(self, stroke):
|
|
701
|
+
def shade(self, stroke) -> None:
|
|
763
702
|
"""
|
|
764
703
|
|
|
765
704
|
:param stroke:
|
|
@@ -768,7 +707,7 @@ class pySamplingShader:
|
|
|
768
707
|
class pySinusDisplacementShader:
|
|
769
708
|
"""Displaces the stroke in the shape of a sine wave."""
|
|
770
709
|
|
|
771
|
-
def shade(self, stroke):
|
|
710
|
+
def shade(self, stroke) -> None:
|
|
772
711
|
"""
|
|
773
712
|
|
|
774
713
|
:param stroke:
|
|
@@ -777,7 +716,7 @@ class pySinusDisplacementShader:
|
|
|
777
716
|
class pyTVertexRemoverShader:
|
|
778
717
|
"""Removes t-vertices from the stroke."""
|
|
779
718
|
|
|
780
|
-
def shade(self, stroke):
|
|
719
|
+
def shade(self, stroke) -> None:
|
|
781
720
|
"""
|
|
782
721
|
|
|
783
722
|
:param stroke:
|
|
@@ -786,7 +725,7 @@ class pyTVertexRemoverShader:
|
|
|
786
725
|
class pyTVertexThickenerShader:
|
|
787
726
|
"""Thickens TVertices (visual intersections between two edges)."""
|
|
788
727
|
|
|
789
|
-
def shade(self, stroke):
|
|
728
|
+
def shade(self, stroke) -> None:
|
|
790
729
|
"""
|
|
791
730
|
|
|
792
731
|
:param stroke:
|
|
@@ -797,7 +736,7 @@ class pyTimeColorShader:
|
|
|
797
736
|
The brightness will increase along the stroke.
|
|
798
737
|
"""
|
|
799
738
|
|
|
800
|
-
def shade(self, stroke):
|
|
739
|
+
def shade(self, stroke) -> None:
|
|
801
740
|
"""
|
|
802
741
|
|
|
803
742
|
:param stroke:
|
|
@@ -806,18 +745,18 @@ class pyTimeColorShader:
|
|
|
806
745
|
class pyTipRemoverShader:
|
|
807
746
|
"""Removes the tips of the stroke.Undocumented"""
|
|
808
747
|
|
|
809
|
-
def shade(self, stroke):
|
|
748
|
+
def shade(self, stroke) -> None:
|
|
810
749
|
"""
|
|
811
750
|
|
|
812
751
|
:param stroke:
|
|
813
752
|
"""
|
|
814
753
|
|
|
815
754
|
class pyZDependingThicknessShader:
|
|
816
|
-
"""Assigns thickness based on an
|
|
755
|
+
"""Assigns thickness based on an objects local Z depth (point
|
|
817
756
|
closest to camera is 1, point furthest from camera is zero).
|
|
818
757
|
"""
|
|
819
758
|
|
|
820
|
-
def shade(self, stroke):
|
|
759
|
+
def shade(self, stroke) -> None:
|
|
821
760
|
"""
|
|
822
761
|
|
|
823
762
|
:param stroke:
|