Files
raea/sdk/blender/tools/cret.json
shinyobjectz 65074df06e BL22: 155 any declarations down to 79: Python returns read from their own source, sequence items from Blender's C
- tools/returns.py reads what a function written in Python returns from its source, where its docstring has no
  :rtype: (or a Python property's getter, no :type:): the type every `return` gives when each shows one (a literal, a
  comparison, a builtin's result, a str method on a string, os.path's, a local only ever bound to such), "T | None"
  when a path falls off the end; anything else leaves it any. dump.py gives it as `ret`, gen uses it for functions and
  Python properties alike: CyclesPreferences.has_active_device() boolean, Mesh.edge_keys an array,
  BoneCollection.bones_recursive a set (33 members).
- pymod.ts types the items of sequences whose name doesn't give them, from the C (bmesh_py_types*.cc,
  idprop_py_api.cc): bm.select_history[i] a vertex, edge or face; a BMElemSeq's any element; a layer collection's
  BMLayerItems; a deform vertex's [group] a weight; an IDPropertyArray's numbers or booleans. BMVert/BMEdge/BMFace/
  BMLoop[layer] and an ID property group (keyed by name) no longer claim a number index.
- dump.py leaves out Python's own names a Blender module imports (anim_utils' Mapping, Sequence, Iterable, typing
  aliases, dataclass), and keeps a private class the module's functions name as their :rtype: (bpy.props'
  _PropertyDeferred, so FloatProperty() and the rest return it).
- cret.ts reads `(PyCFunction)(void *)(name)` entries (GPUShaderCreateInfo's depth_write, fragment_out,
  push_constant, uniform_buf: None) and a returned local by its every assignment (libraries.write None,
  bpy.utils.units.to_value float, bpy.app.help_text str): cret.json 284 method and 123 property names.
- Declarations typed any: bpy.types 51 -> 32 of 16 684; modules outside RNA 104 -> 47 of 1 440.

Proven: tools/gen.sh from Blender 5.2.1 (tools/cret.sh 5.2.1 first); sdk/blender's tsc and its 16 bun tests pass,
with test/returns.test.ts: the reader's 18 cases, and every member it types on live meshes, bone collections and
Cycles' preferences reads as that type in Blender.
2026-11-10 21:54:55 -08:00

449 lines
12 KiB
JSON

{
"blender": "5.2.1",
"families": {
"bmesh": {
"methods": {
"add": "None",
"calc_angle": "float",
"calc_area": "float",
"calc_length": "float",
"calc_perimeter": "float",
"calc_shell_factor": "float",
"calc_volume": "float",
"clear": "None",
"copy_from": "None",
"copy_from_face_interp": "None",
"copy_from_vert_interp": "None",
"discard": "None",
"ensure_lookup_table": "None",
"face_flip": "None",
"free": "None",
"from_mesh": "None",
"from_object": "None",
"hide_set": "None",
"index_update": "None",
"intersect_face_point": "bool",
"normal_flip": "None",
"normal_update": "None",
"remove": "None",
"select_flush": "None",
"select_flush_mode": "None",
"select_set": "None",
"sort": "None",
"to_mesh": "None",
"transform": "None",
"update_edit_mesh": "None",
"uv_select_edge_set": "None",
"uv_select_flush": "None",
"uv_select_flush_mode": "None",
"uv_select_flush_shared": "None",
"uv_select_foreach_set": "None",
"uv_select_foreach_set_from_mesh": "None",
"uv_select_set": "None",
"uv_select_sync_from_mesh": "None",
"uv_select_sync_to_mesh": "None",
"uv_select_vert_set": "None",
"validate": "None",
"vert_dissolve": "bool",
"vert_splice": "None"
},
"getters": {
"__doc__": "str",
"hide": "bool",
"index": "int",
"is_boundary": "bool",
"is_contiguous": "bool",
"is_convex": "bool",
"is_manifold": "bool",
"is_singleton": "bool",
"is_valid": "bool",
"is_wire": "bool",
"is_wrapped": "bool",
"material_index": "int",
"name": "str",
"pin_uv": "bool",
"seam": "bool",
"select": "bool",
"smooth": "bool",
"tag": "bool",
"use_loose": "bool",
"use_root": "bool",
"uv_select": "bool",
"uv_select_edge": "bool",
"uv_select_sync_valid": "bool",
"uv_select_vert": "bool"
}
},
"gpu": {
"methods": {
"__enter__": "None",
"__exit__": "None",
"_program_use_begin": "None",
"_program_use_end": "None",
"anisotropic_filter": "None",
"attr_add": "int",
"attr_fill": "None",
"attr_from_name": "int",
"backend_type_get": "str",
"blend_get": "str",
"blend_set": "None",
"clear": "None",
"clip_distances_set": "None",
"color_mask_set": "None",
"compute_shader_support_get": "bool",
"compute_source": "None",
"define": "None",
"depth_mask_get": "bool",
"depth_mask_set": "None",
"depth_test_get": "str",
"depth_test_set": "None",
"depth_write": "None",
"device_type_get": "str",
"dispatch": "None",
"draw": "None",
"draw_instanced": "None",
"draw_range": "None",
"draw_view3d": "None",
"extend_mode": "None",
"extend_mode_x": "None",
"extend_mode_y": "None",
"face_culling_set": "None",
"filter_mode": "None",
"flat": "None",
"fragment_out": "None",
"fragment_source": "None",
"free": "None",
"front_facing_set": "None",
"hdr_support_get": "bool",
"image": "None",
"init": "None",
"line_width_get": "float",
"line_width_set": "None",
"load_id": "None",
"load_identity": "None",
"load_matrix": "None",
"load_projection_matrix": "None",
"local_group_size": "None",
"max_batch_indices_get": "int",
"max_batch_vertices_get": "int",
"max_images_get": "int",
"max_texture_layers_get": "int",
"max_texture_size_get": "int",
"max_textures_frag_get": "int",
"max_textures_geom_get": "int",
"max_textures_get": "int",
"max_textures_vert_get": "int",
"max_uniforms_frag_get": "int",
"max_uniforms_vert_get": "int",
"max_varying_floats_get": "int",
"max_vertex_attribs_get": "int",
"max_work_group_count_get": "int",
"max_work_group_size_get": "int",
"mipmap_mode": "None",
"multiply_matrix": "None",
"no_perspective": "None",
"point_size_set": "None",
"pop": "None",
"pop_projection": "None",
"program_point_size_set": "None",
"program_set": "None",
"push": "None",
"push_constant": "None",
"push_projection": "None",
"renderer_get": "str",
"reset": "None",
"sampler": "None",
"scale": "None",
"scale_uniform": "None",
"scissor_set": "None",
"scissor_test_set": "None",
"shader_image_load_store_support_get": "bool",
"smooth": "None",
"translate": "None",
"typedef_source": "None",
"unbind": "None",
"uniform_block": "None",
"uniform_block_from_name": "int",
"uniform_bool": "None",
"uniform_buf": "None",
"uniform_float": "None",
"uniform_from_name": "int",
"uniform_int": "None",
"uniform_sampler": "None",
"uniform_vector_float": "None",
"uniform_vector_int": "None",
"update": "None",
"vendor_get": "str",
"version_get": "str",
"vertbuf_add": "None",
"vertex_in": "None",
"vertex_out": "None",
"vertex_source": "None",
"viewport_set": "None"
},
"getters": {
"format": "str",
"height": "int",
"identifier": "str",
"index": "int",
"is_bound": "bool",
"program": "int",
"width": "int"
}
},
"mathutils": {
"methods": {
"adjugate": "None",
"area_tri": "float",
"balance": "None",
"box_fit_2d": "float",
"cell": "float",
"conjugate": "None",
"determinant": "float",
"distance_point_to_plane": "float",
"dot": "float",
"fractal": "float",
"hetero_terrain": "float",
"hybrid_multi_fractal": "float",
"identity": "None",
"insert": "None",
"intersect_point_quad_2d": "int",
"intersect_point_tri_2d": "int",
"intersect_tri_tri_2d": "bool",
"invert": "None",
"invert_safe": "None",
"make_compatible": "None",
"multi_fractal": "float",
"negate": "None",
"noise": "float",
"normalize": "None",
"random": "float",
"resize": "None",
"resize_2d": "None",
"resize_3d": "None",
"resize_4d": "None",
"resize_4x4": "None",
"ridged_multi_fractal": "float",
"rotate": "None",
"rotate_axis": "None",
"seed_set": "None",
"transpose": "None",
"turbulence": "float",
"variable_lacunarity": "float",
"volume_tetrahedron": "float",
"zero": "None"
},
"getters": {
"angle": "float",
"h": "float",
"is_frozen": "bool",
"is_identity": "bool",
"is_negative": "bool",
"is_orthogonal": "bool",
"is_orthogonal_axis_vectors": "bool",
"is_valid": "bool",
"is_wrapped": "bool",
"length": "float",
"length_squared": "float",
"magnitude": "float",
"median_scale": "float",
"order": "str",
"s": "float",
"v": "float"
}
},
"generic": {
"methods": {
"__exit__": "None",
"aspect": "None",
"clamp": "float",
"clear": "None",
"clipping": "None",
"color": "None",
"convert_buffer_type": "None",
"crop": "None",
"disable": "None",
"draw": "None",
"draw_buffer": "None",
"enable": "None",
"free": "None",
"lerp": "float",
"position": "None",
"resize": "None",
"rotation": "None",
"shadow": "None",
"shadow_offset": "None",
"size": "None",
"smoothstep": "float",
"unload": "None",
"update": "None",
"update_from": "None",
"word_wrap": "None"
},
"getters": {
"channels": "int",
"compress": "int",
"file_type": "str",
"has_read_file": "bool",
"has_read_memory": "bool",
"has_write_file": "bool",
"has_write_memory": "bool",
"id": "str",
"name": "str",
"planes": "int",
"quality": "int",
"typecode": "str"
}
},
"bpy": {
"methods": {
"_bl_owner_id_set": "None",
"_driver_secure_code_test": "bool",
"_ghost_backend": "str",
"as_pointer": "int",
"batch_remove": "None",
"bpy_atexit": "None",
"callback_remove": "None",
"clear": "None",
"clear_by_owner": "None",
"draw_cursor_remove": "None",
"draw_handler_remove": "None",
"driver_remove": "bool",
"file_path_foreach": "None",
"find": "int",
"help_text": "str",
"id_free_weakref_cb": "None",
"id_properties_clear": "None",
"idname": "str",
"idname_py": "str",
"is_job_running": "bool",
"is_property_hidden": "bool",
"is_property_overridable_library": "bool",
"is_property_readonly": "bool",
"is_property_set": "bool",
"is_registered": "bool",
"keyframe_delete": "bool",
"keyframe_insert": "bool",
"logging_set": "None",
"memory_usage_undo": "int",
"move": "None",
"new_triangles": "int",
"new_triangles_from_file": "int",
"orphans_purge": "int",
"poll_message_set": "None",
"property_overridable_library_set": "bool",
"property_unset": "None",
"publish_rna": "None",
"region_as_string": "str",
"region_from_string": "None",
"register": "None",
"register_class": "None",
"release": "None",
"remove": "None",
"subscribe_rna": "None",
"target_set_handler": "None",
"target_set_value": "None",
"to_string": "str",
"to_value": "float",
"unregister": "None",
"unregister_class": "None",
"unregister_cli_command": "None",
"update": "None",
"write": "None"
},
"getters": {
"autoexec_fail": "bool",
"autoexec_fail_quiet": "bool",
"debug": "bool",
"debug_depsgraph": "bool",
"debug_depsgraph_build": "bool",
"debug_depsgraph_eval": "bool",
"debug_depsgraph_pretty": "bool",
"debug_depsgraph_tag": "bool",
"debug_depsgraph_time": "bool",
"debug_events": "bool",
"debug_freestyle": "bool",
"debug_handlers": "bool",
"debug_io": "bool",
"debug_python": "bool",
"debug_simdata": "bool",
"debug_value": "int",
"debug_wm": "bool",
"is_cache": "bool",
"is_expanded": "bool",
"is_readonly": "bool",
"online_access": "bool",
"online_access_override": "bool",
"render_icon_size": "int",
"render_preview_size": "int",
"use_event_simulate": "bool",
"use_userpref_skip_save_on_exit": "bool"
}
},
"aud": {
"methods": {
"addCategory": "int",
"addImpulseResponseFromSound": "bool",
"addScene": "int",
"addSound": "None",
"addTransition": "None",
"clean": "None",
"getVolume": "float",
"lock": "None",
"move": "None",
"pause": "bool",
"readSingle": "float",
"remove": "None",
"resume": "bool",
"setAnimationData": "None",
"setVolume": "bool",
"stop": "bool",
"stopAll": "None",
"unlock": "None",
"write": "None",
"writeConstantRange": "None"
},
"getters": {
"animated": "bool",
"attenuation": "float",
"azimuth": "float",
"channels": "int",
"cone_angle_inner": "float",
"cone_angle_outer": "float",
"cone_volume_outer": "float",
"count": "int",
"distance": "float",
"distance_maximum": "float",
"distance_model": "int",
"distance_reference": "float",
"doppler_factor": "float",
"elevation": "float",
"fadeTime": "float",
"format": "int",
"fps": "float",
"keep": "bool",
"length": "int",
"listener_location": "tuple[float, float, float]",
"listener_orientation": "tuple[float, float, float, float]",
"listener_velocity": "tuple[float, float, float]",
"location": "tuple[float, float, float]",
"loop_count": "int",
"muted": "bool",
"orientation": "tuple[float, float, float, float]",
"pitch": "float",
"position": "float",
"rate": "float",
"relative": "bool",
"scene": "int",
"specs": "tuple[float, int]",
"speed_of_sound": "float",
"status": "bool",
"velocity": "tuple[float, float, float]",
"volume": "float",
"volume_maximum": "float",
"volume_minimum": "float"
}
}
}
}