Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
BL34: an enum Blender works out at the time takes its static items or any string; Python methods that return None are typed so (BL22)
shinyobjectz87fa310c8028
diff --git a/docs/blender.feature b/docs/blender.featureindex f06de63f..8cb74a6d 100644--- a/docs/blender.feature+++ b/docs/blender.feature@@ -90,7 +90,12 @@ Feature: Blender as a measured workshop step: an asset passes through it on itsScenario: BL22. The whole API is typed from Blender's own: tools/gen.sh dumps Blender's RNA and docstrings, gen writes src/genGiven Blender 5.2.1: 1809 structs (bpy.types), 2498 operators in 77 bpy.ops modules, and 41 modules outside RNA(mathutils' submodules, bmesh, gpu, bpy.utils, bpy.path, bpy.props, bpy.msgbus, bpy_extras, aud, imbuf, idprop)- Then fewer than 1% of struct members are typed `any` (102 of about 12 900)+ Then 68 of bpy.types' 16 684 declarations are typed `any` (0.4%; 127 before 11-11): Python methods that return a+ value their docstring doesn't type, and Python properties with no `:type:`. A function written in Python whose+ source returns no value anywhere (dump.py returns_none) returns nothing, as Python's None, and operators have no+ `any` at all; the modules outside RNA have 423 of 1 461, mostly C methods whose docstrings give no type+ (bmesh.types, gpu.types, aud)+ And two dumps of one Blender write the same src/gen (sets sorted, no memory addresses)And tsc rejects a read-only property set, an enum value Blender doesn't have, a member that isn't there, a wrongargument type, and arithmetic on an unawaited path (test/typing.ts)@done@@ -143,15 +148,24 @@ Feature: Blender as a measured workshop step: an asset passes through it on itsThen its example (blender/lowpoly.ts) is sdk/blender/test/guide.ts, type-checked with the tests; run as shown itdecimates a .glb and carries its sidecar with the step added, and refuses a source without one beforewriting anything (11-10)- And it says where raea/blender reads differently from Python, and the BL34 gap with its cast+ And it says where raea/blender reads differently from Python, and that an enum Blender works out at the time+ takes any string (BL34)And raea-skills' 3d/blender.md is its copy, routed from 3d.md and SKILL.md (raea-skills 7497067, unpusheduntil the v0.1.1 go; ARGS go after the script with no -- of their own, as for a .py step)+ @doneScenario: BL34. An enum whose items Blender works out at the time takes what Blender would take thenGiven Curve.fill_mode on a 2D curve takes NONE, BACK, FRONT or BOTH, but its static items (all the dump sees) are- the 3D ones, so tsc refuses `fill_mode = "BOTH"` today (11-10, logos.ts); an enum with one item or none is- typed string already+ the 3D ones, so tsc refused `fill_mode = "BOTH"` (11-10, logos.ts); an enum with one item or none is typed+ string alreadyThen the properties whose items come from an item function (RNA_def_property_enum_funcs in Blender's makesrna)are typed as their static items or any string+ And 11-11: tools/itemf.sh reads them from Blender 5.2.1's own makesrna (a sparse clone of its tag) into+ tools/itemf.json: 147 properties and RNA function parameters, a helper's taken from the struct its caller+ defines; 8 helpers whose struct is named at run time (the node socket interfaces) stay unresolved, and their+ enums have one item or none, typed string already. gen types 222 declarations so; Python can't tell them+ apart, since with no context Blender never calls an item function+ And test/typing.ts sets a 2D curve's fill_mode to "BOTH" and still refuses `rotation_mode = "XYZW"`; run in+ Blender, the same script prints fill_mode BOTHScenario: BL28. The person's own Blender, live: raea's add-on serves the same bridge from a running BlenderGiven raea's add-on (sdk/blender/python/raea_blender) enabled in that Blender, and RAEA_BLENDER=live (or connect({ live: true }))Then batches run on Blender's main thread between its redraws, in the 3D view's contextdiff --git a/sdk/blender/README.md b/sdk/blender/README.mdindex 0d38b49b..279357bc 100644--- a/sdk/blender/README.md+++ b/sdk/blender/README.md@@ -50,8 +50,8 @@ export default async function () {- **Python itself:** `py.exec(code, vars)` runs source in Blender and gives back `result`; `py.module("addon_utils")`,`py.with(cm, body)` (temp_override), `py.dict`, `py.tuple`, `py.bytes`.-Known gap: an enum whose items Blender works out at the time (Curve.fill_mode, which is NONE/BACK/FRONT/BOTH on a 2D-curve) is typed with its static items only (docs/blender.feature BL34).+An enum whose items Blender works out at the time (Curve.fill_mode, which is NONE/BACK/FRONT/BOTH on a 2D curve) takes+its static items or any string: tools/itemf.sh reads which enums those are from Blender's own source (docs/blender.feature BL34).## Where it runsdiff --git a/sdk/blender/src/gen/py/bpy_extras_anim_utils.ts b/sdk/blender/src/gen/py/bpy_extras_anim_utils.tsindex 75e11aeb..c4b0c348 100644--- a/sdk/blender/src/gen/py/bpy_extras_anim_utils.ts+++ b/sdk/blender/src/gen/py/bpy_extras_anim_utils.ts@@ -269,7 +269,7 @@ export interface ActionChannelbag {/** The class bpy_extras.anim_utils.ActionChannelbag: called, a new one. */export interface ActionChannelbagClass {(...args: any[]): H.Own<ActionChannelbag>;- /** = <bpy_struct, Struct("ActionChannelbag") at 0x7b9fd8f900> */+ /** = <bpy_struct, Struct("ActionChannelbag")> */readonly bl_rna: H.Ref<any>;}@@ -388,7 +388,7 @@ export interface AutoKeyingClass {* @param group The group name for the keyframes.* @param locks Per-channel lock status.*/- keyframe_channels(target: R.Object | R.PoseBone, options: H.In<Set<string>>, data_path: H.In<string>, group: H.In<string>, locks: H.In<readonly boolean[]>): any;+ keyframe_channels(target: R.Object | R.PoseBone, options: H.In<Set<string>>, data_path: H.In<string>, group: H.In<string>, locks: H.In<readonly boolean[]>): H.Ref<void>;/*** Keyframe channels, avoiding keying locked channels.* @param target The object or pose bone to keyframe.@@ -408,13 +408,13 @@ export interface AutoKeyingClass {group: H.In<string>;/** Per-channel lock status. */locks: H.In<readonly boolean[]>;- }): any;+ }): H.Ref<void>;/*** Keyframe transformation properties, avoiding keying locked channels.* @param target The object or pose bone to keyframe.* @param options Keyframing options.*/- key_transformation(target: R.Object | R.PoseBone, options: H.In<Set<string>>): any;+ key_transformation(target: R.Object | R.PoseBone, options: H.In<Set<string>>): H.Ref<void>;/*** Keyframe transformation properties, avoiding keying locked channels.* @param target The object or pose bone to keyframe.@@ -425,14 +425,14 @@ export interface AutoKeyingClass {target: R.Object | R.PoseBone;/** Keyframing options. */options: H.In<Set<string>>;- }): any;+ }): H.Ref<void>;/*** Auto-key transformation properties with the given keying set.* @param context The context.* @param target The object or pose bone to keyframe.* @param keyingset The keying set to use.*/- key_transformation_via_keyingset(context: R.Context, target: R.Object | R.PoseBone, keyingset: R.KeyingSet): any;+ key_transformation_via_keyingset(context: R.Context, target: R.Object | R.PoseBone, keyingset: R.KeyingSet): H.Ref<void>;/*** Auto-key transformation properties with the given keying set.* @param context The context.@@ -446,7 +446,7 @@ export interface AutoKeyingClass {target: R.Object | R.PoseBone;/** The keying set to use. */keyingset: R.KeyingSet;- }): any;+ }): H.Ref<void>;/*** Return the active keying set, if it should be used.*@@ -475,7 +475,7 @@ export interface AutoKeyingClass {* @param context The context.* @param target The object or pose bone to keyframe.*/- autokey_transformation(context: R.Context, target: R.Object | R.PoseBone): any;+ autokey_transformation(context: R.Context, target: R.Object | R.PoseBone): H.Ref<void>;/*** Auto-key transformation properties.* @param context The context.@@ -486,7 +486,7 @@ export interface AutoKeyingClass {context: R.Context;/** The object or pose bone to keyframe. */target: R.Object | R.PoseBone;- }): any;+ }): H.Ref<void>;}/**@@ -528,23 +528,23 @@ export interface BakeOptionsClass {* bpy_extras.anim_utils.KeyframesCo*/export interface KeyframesCo {- add_paths(rna_path: any, total_indices: any): any;- add_paths(kw: { rna_path: any; total_indices: any }): any;- extend_co_values(rna_path: any, total_indices: any, frame: any, values: any): any;+ add_paths(rna_path: any, total_indices: any): H.Ref<void>;+ add_paths(kw: { rna_path: any; total_indices: any }): H.Ref<void>;+ extend_co_values(rna_path: any, total_indices: any, frame: any, values: any): H.Ref<void>;extend_co_values(kw: {rna_path: any;total_indices: any;frame: any;values: any;- }): any;- extend_co_value(rna_path: any, frame: any, value: any): any;- extend_co_value(kw: { rna_path: any; frame: any; value: any }): any;+ }): H.Ref<void>;+ extend_co_value(rna_path: any, frame: any, value: any): H.Ref<void>;+ extend_co_value(kw: { rna_path: any; frame: any; value: any }): H.Ref<void>;/*** Assumes the action is new, that it has no F-curves. Otherwise, the only difference between versions is* performance and implementation simplicity.* @param group_name Name of the Group that F-curves are added to.*/- insert_keyframes_into_new_action(total_new_keys: any, channelbag: any, group_name: any): any;+ insert_keyframes_into_new_action(total_new_keys: any, channelbag: any, group_name: any): H.Ref<void>;/*** Assumes the action is new, that it has no F-curves. Otherwise, the only difference between versions is* performance and implementation simplicity.@@ -555,13 +555,13 @@ export interface KeyframesCo {channelbag: any;/** Name of the Group that F-curves are added to. */group_name: any;- }): any;+ }): H.Ref<void>;/*** Assumes the action already exists, that it might already have F-curves. Otherwise, the* only difference between versions is performance and implementation simplicity.* @param lookup_fcurves : This is only used for efficiency. It's a substitute for ``channelbag.fcurves.find()`` which is a potentially expensive linear search.*/- insert_keyframes_into_existing_action(lookup_fcurves: any, total_new_keys: any, channelbag: any): any;+ insert_keyframes_into_existing_action(lookup_fcurves: any, total_new_keys: any, channelbag: any): H.Ref<void>;/*** Assumes the action already exists, that it might already have F-curves. Otherwise, the* only difference between versions is performance and implementation simplicity.@@ -575,7 +575,7 @@ export interface KeyframesCo {lookup_fcurves: any;total_new_keys: any;channelbag: any;- }): any;+ }): H.Ref<void>;get keyframes_from_fcurve(): any;set keyframes_from_fcurve(v: any);}@@ -634,7 +634,7 @@ export interface PoseBone {/** The class bpy_extras.anim_utils.PoseBone: called, a new one. */export interface PoseBoneClass {(...args: any[]): H.Own<PoseBone>;- /** = <bpy_struct, Struct("PoseBone") at 0x7b9fde1800> */+ /** = <bpy_struct, Struct("PoseBone")> */readonly bl_rna: H.Ref<any>;}diff --git a/sdk/blender/src/gen/py/bpy_extras_io_utils.ts b/sdk/blender/src/gen/py/bpy_extras_io_utils.tsindex 6b1a8287..769949a9 100644--- a/sdk/blender/src/gen/py/bpy_extras_io_utils.ts+++ b/sdk/blender/src/gen/py/bpy_extras_io_utils.ts@@ -563,7 +563,7 @@ export interface Api {* @param copy_set set of (from, to) pairs to copy.* @param report function used for reporting warnings, takes a string argument.*/- path_reference_copy(copy_set: H.In<Set<readonly [string, string]>>, report?: any): any;+ path_reference_copy(copy_set: H.In<Set<readonly [string, string]>>, report?: any): H.Ref<void>;/*** Execute copying files of path_reference* @param copy_set set of (from, to) pairs to copy.@@ -572,7 +572,7 @@ export interface Api {path_reference_copy(copy_set: H.In<Set<readonly [string, string]>>, kw: {/** function used for reporting warnings, takes a string argument. */report?: any;- }): any;+ }): H.Ref<void>;/*** Execute copying files of path_reference* @param copy_set set of (from, to) pairs to copy.@@ -583,7 +583,7 @@ export interface Api {copy_set: H.In<Set<readonly [string, string]>>;/** function used for reporting warnings, takes a string argument. */report?: any;- }): any;+ }): H.Ref<void>;/*** Intermediate storage for properties before registration.*diff --git a/sdk/blender/src/gen/py/bpy_extras_object_utils.ts b/sdk/blender/src/gen/py/bpy_extras_object_utils.tsindex 898303f3..f1635e10 100644--- a/sdk/blender/src/gen/py/bpy_extras_object_utils.ts+++ b/sdk/blender/src/gen/py/bpy_extras_object_utils.ts@@ -284,7 +284,7 @@ export interface Api {* @param operator The operator to scale.* @param context The context.*/- object_add_grid_scale_apply_operator(operator: R.Operator, context: R.Context): any;+ object_add_grid_scale_apply_operator(operator: R.Operator, context: R.Context): H.Ref<void>;/*** Scale an operator's distance values by the grid size.* @param operator The operator to scale.@@ -295,7 +295,7 @@ export interface Api {operator: R.Operator;/** The context. */context: R.Context;- }): any;+ }): H.Ref<void>;/*** Add an object using the view context and preference to initialize the* location, rotation and layer.@@ -414,7 +414,7 @@ export interface AddObjectHelper {* Update callback for the align property, resets rotation for world alignment.* @param context The context.*/- align_update_callback(context: R.Context): any;+ align_update_callback(context: R.Context): H.Ref<void>;/*** Update callback for the align property, resets rotation for world alignment.* @param context The context.@@ -422,7 +422,7 @@ export interface AddObjectHelper {align_update_callback(kw: {/** The context. */context: R.Context;- }): any;+ }): H.Ref<void>;}/** The class bpy_extras.object_utils.AddObjectHelper: called, a new one. */export interface AddObjectHelperClass {diff --git a/sdk/blender/src/gen/py/bpy_path.ts b/sdk/blender/src/gen/py/bpy_path.tsindex de46e33a..5241698a 100644--- a/sdk/blender/src/gen/py/bpy_path.ts+++ b/sdk/blender/src/gen/py/bpy_path.ts@@ -184,11 +184,11 @@ export interface Api {/** Check for matching case when comparing extensions. */case_sensitive?: H.In<boolean>;}): H.Ref<string>;- /** = frozenset({'.mka', '.ac3', '.mp3', '.flac', '.aiff', '.oga', '.opus', '.ogg', '.mp2', '.eac3', '.aif', '.wav', '.aac', '.wma', '.m4a'}) */+ /** = frozenset({'.aac', '.ac3', '.aif', '.aiff', '.eac3', '.flac', '.m4a', '.mka', '.mp2', '.mp3', '.oga', '.ogg', '.opus', '.wav', '.wma'}) */readonly extensions_audio: H.Ref<any>;- /** = frozenset({'.dpx', '.avif', '.bmp', '.hdr', '.jpeg', '.rgb', '.tif', '.exr', '.pdd', '.psd', '.jpg', '.jp2', '.psb', '.j2c', '.cin', '.tga', '.sgi', '.png', '.tx', '.dds', '.tiff', '.rgba', '.webp'}) */+ /** = frozenset({'.avif', '.bmp', '.cin', '.dds', '.dpx', '.exr', '.hdr', '.j2c', '.jp2', '.jpeg', '.jpg', '.pdd', '.png', '.psb', '.psd', '.rgb', '.rgba', '.sgi', '.tga', '.tif', '.tiff', '.tx', '.webp'}) */readonly extensions_image: H.Ref<any>;- /** = frozenset({'.m2t', '.ogg', '.divx', '.webm', '.ts', '.r3d', '.mov', '.mv', '.mp4', '.xvid', '.m2v', '.mpeg', '.vob', '.flv', '.m2ts', '.m4v', '.mpg2', '.mts', '.flc', '.dv', '.avi', '.mpg', '.gif', '. */+ /** = frozenset({'.avi', '.avs', '.divx', '.dv', '.flc', '.flv', '.gif', '.m2t', '.m2ts', '.m2v', '.m4v', '.mkv', '.mov', '.movie', '.mp4', '.mpeg', '.mpg', '.mpg2', '.mts', '.mv', '.mxf', '.ogg', '.ogv', ' */readonly extensions_movie: H.Ref<any>;/*** Returns true if *path* is in a subdirectory of *directory*.diff --git a/sdk/blender/src/gen/py/bpy_utils.ts b/sdk/blender/src/gen/py/bpy_utils.tsindex 54e7a5af..32a1d7b2 100644--- a/sdk/blender/src/gen/py/bpy_utils.ts+++ b/sdk/blender/src/gen/py/bpy_utils.ts@@ -70,7 +70,7 @@ export interface Api {* to ``sys.path``. These may be used instead of dedicated packages, to ensure* the libraries are compatible with Blender.*/- expose_bundled_modules(): any;+ expose_bundled_modules(): H.Ref<void>;/*** Return a user writable directory associated with an extension.*@@ -163,7 +163,7 @@ export interface Api {* Initialize and refresh key configurations, called from the Blender* window manager on startup and refresh.*/- keyconfig_init(): any;+ keyconfig_init(): H.Ref<void>;/*** Load and activate a key configuration from a file.* @param filepath The file path to the key configuration preset.@@ -196,7 +196,7 @@ export interface Api {refresh_scripts?: H.In<boolean>;/** Loads additional scripts (add-ons & app-templates). */extensions?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/** Load extensions scripts (add-ons and app-templates) */load_scripts_extensions(kw?: {/**@@ -204,7 +204,7 @@ export interface Api {* called before loading.*/reload_scripts?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Create RNA "paths" from given names.* @returns A triple of three "RNA paths"@@ -318,7 +318,7 @@ export interface Api {subdir: H.In<string>;}): H.Ref<string[]>;/** Run this after creating new script paths to update sys.path */- refresh_script_paths(): any;+ refresh_script_paths(): H.Ref<void>;/*** Register a subclass of a Blender type class.*@@ -380,7 +380,7 @@ export interface Api {* Register a function to provide manual URL mappings.* @param manual_hook A callable that returns ``(prefix, mapping)`` where *mapping* is a sequence of ``(pattern, url)`` pairs.*/- register_manual_map(manual_hook: any): any;+ register_manual_map(manual_hook: any): H.Ref<void>;/*** Register a function to provide manual URL mappings.* @param manual_hook A callable that returns ``(prefix, mapping)`` where *mapping* is a sequence of ``(pattern, url)`` pairs.@@ -391,7 +391,7 @@ export interface Api {* where *mapping* is a sequence of ``(pattern, url)`` pairs.*/manual_hook: any;- }): any;+ }): H.Ref<void>;/*** Register a preset search path.* @returns success@@ -458,7 +458,7 @@ export interface Api {separator?: H.In<boolean>;/** When true, add a new nested group of tools. */group?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Register a tool in the toolbar.* @param tool_cls A tool subclass.@@ -472,7 +472,7 @@ export interface Api {separator?: H.In<boolean>;/** When true, add a new nested group of tools. */group?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Return the base path for storing system files.*@@ -703,7 +703,7 @@ export interface Api {* Unregister a previously registered manual map hook.* @param manual_hook The hook function to remove.*/- unregister_manual_map(manual_hook: any): any;+ unregister_manual_map(manual_hook: any): H.Ref<void>;/*** Unregister a previously registered manual map hook.* @param manual_hook The hook function to remove.@@ -711,7 +711,7 @@ export interface Api {unregister_manual_map(kw: {/** The hook function to remove. */manual_hook: any;- }): any;+ }): H.Ref<void>;/*** Unregister a preset search path.* @returns success@@ -734,7 +734,7 @@ export interface Api {* Unregister a previously registered tool.* @param tool_cls The tool class to unregister.*/- unregister_tool(tool_cls: any): any;+ unregister_tool(tool_cls: any): H.Ref<void>;/*** Unregister a previously registered tool.* @param tool_cls The tool class to unregister.@@ -742,7 +742,7 @@ export interface Api {unregister_tool(kw: {/** The tool class to unregister. */tool_cls: any;- }): any;+ }): H.Ref<void>;/*** Return a user resource path (normally from the users home directory).* @returns a path.diff --git a/sdk/blender/src/gen/py/bpy_utils_previews.ts b/sdk/blender/src/gen/py/bpy_utils_previews.tsindex 5127ff38..88e3270b 100644--- a/sdk/blender/src/gen/py/bpy_utils_previews.ts+++ b/sdk/blender/src/gen/py/bpy_utils_previews.ts@@ -28,7 +28,7 @@ export interface Api {* Remove the specified previews collection.* @param pcoll Preview collection to close.*/- remove(pcoll: P.bpy_utils_previews.ImagePreviewCollection): any;+ remove(pcoll: P.bpy_utils_previews.ImagePreviewCollection): H.Ref<void>;/*** Remove the specified previews collection.* @param pcoll Preview collection to close.@@ -36,7 +36,7 @@ export interface Api {remove(kw: {/** Preview collection to close. */pcoll: P.bpy_utils_previews.ImagePreviewCollection;- }): any;+ }): H.Ref<void>;}/**@@ -119,9 +119,9 @@ export interface ImagePreviewCollection {force_reload?: H.In<boolean>;}): H.Ptr<R.ImagePreview>;/** Clear all previews. */- clear(): any;+ clear(): H.Ref<void>;/** Close the collection and clear all previews. */- close(): any;+ close(): H.Ref<void>;}/** The class bpy.utils.previews.ImagePreviewCollection: called, a new one. */export interface ImagePreviewCollectionClass {diff --git a/sdk/blender/src/gen/py/gpu_extras_presets.ts b/sdk/blender/src/gen/py/gpu_extras_presets.tsindex 27488db7..7ca3be62 100644--- a/sdk/blender/src/gen/py/gpu_extras_presets.ts+++ b/sdk/blender/src/gen/py/gpu_extras_presets.ts@@ -20,7 +20,7 @@ export interface Api {* If None or not specified, an automatic value will be calculated.*/segments?: H.In<number | null>;- }): any;+ }): H.Ref<void>;/*** Draw a circle.* @param position 2D position where the circle will be drawn.@@ -43,7 +43,7 @@ export interface Api {* If None or not specified, an automatic value will be calculated.*/segments?: H.In<number | null>;- }): any;+ }): H.Ref<void>;/*** Draw a 2d texture.* @param texture GPUTexture to draw (e.g. gpu.texture.from_image(image) for :class:`bpy.types.Image`).@@ -52,7 +52,7 @@ export interface Api {* @param height Height of the image when drawn.* @param is_scene_linear_with_rec709_srgb_target True if the `texture` is stored in scene linear color space and the destination frame-buffer uses the Rec.709 sRGB color space (which is true when drawing textures acquired from :class:`bpy.types.Image` inside a 'PRE_VIEW', 'POST_VIEW' or 'POST_PIXEL' draw handler). Otherwise the color space is assumed to match the one of the frame-buffer. (default=False)*/- draw_texture_2d(texture: P.gpu_types.GPUTexture, position: H.In<readonly number[]>, width: H.In<number>, height: H.In<number>, is_scene_linear_with_rec709_srgb_target?: H.In<boolean>): any;+ draw_texture_2d(texture: P.gpu_types.GPUTexture, position: H.In<readonly number[]>, width: H.In<number>, height: H.In<number>, is_scene_linear_with_rec709_srgb_target?: H.In<boolean>): H.Ref<void>;/*** Draw a 2d texture.* @param texture GPUTexture to draw (e.g. gpu.texture.from_image(image) for :class:`bpy.types.Image`).@@ -70,7 +70,7 @@ export interface Api {* Otherwise the color space is assumed to match the one of the frame-buffer. (default=False)*/is_scene_linear_with_rec709_srgb_target?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Draw a 2d texture.* @param texture GPUTexture to draw (e.g. gpu.texture.from_image(image) for :class:`bpy.types.Image`).@@ -99,6 +99,6 @@ export interface Api {* Otherwise the color space is assumed to match the one of the frame-buffer. (default=False)*/is_scene_linear_with_rec709_srgb_target?: H.In<boolean>;- }): any;+ }): H.Ref<void>;}diff --git a/sdk/blender/src/gen/rna/A.ts b/sdk/blender/src/gen/rna/A.tsindex 62e0b4eb..cea22aab 100644--- a/sdk/blender/src/gen/rna/A.ts+++ b/sdk/blender/src/gen/rna/A.ts@@ -615,8 +615,8 @@ export interface ActionSlot extends R.bpy_struct {get identifier(): H.Ref<string>;set identifier(v: H.In<string>);/** Type of data-block that this slot is intended to animate; can be set when 'UNSPECIFIED' but is otherwise read-only Default: 'UNSPECIFIED'. */- get target_id_type(): H.Ref<E.ActionSlotTargetIdType>;- set target_id_type(v: H.In<E.ActionSlotTargetIdType>);+ get target_id_type(): H.Ref<E.ActionSlotTargetIdType | (string & {})>;+ set target_id_type(v: H.In<E.ActionSlotTargetIdType | (string & {})>);/** Range: -2147483648 to 2147483647. Default: 0. */get target_id_type_icon(): H.Ref<number>;/** Name of the slot, for display in the user interface. This name combined with the slot's data-block type is unique within its Action Default: "". */@@ -1873,8 +1873,8 @@ export interface AssetMetaData extends R.bpy_struct {* - `APPEND_REUSE`: Append (Reuse Data) (Import the assets as copied data-block while avoiding multiple copies of nested, typically heavy data. For example the textures of a material asset, or the mesh of an object asset, don't have to be copied every time this asset is imported. The instances of the asset share the data instead.)* - `PACK`: Pack (Import the asset as linked data-block, and pack it in the current file (ensures that it remains unchanged in case the library data is modified, is not available anymore, etc.))*/- get preferred_import_method(): H.Ref<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK">;- set preferred_import_method(v: H.In<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK">);+ get preferred_import_method(): H.Ref<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>;+ set preferred_import_method(v: H.In<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>);}/**@@ -2044,8 +2044,8 @@ export interface AssetShelf extends R.bpy_struct {* - `ONLINE_ESSENTIALS`: Online Essentials (Show additional building blocks and utilities available online)* - `CUSTOM`: Custom (Show assets from the asset libraries configured in the Preferences)*/- get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">;- set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">);+ get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>;+ set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>);/** Show the asset name together with the preview. Otherwise only the preview will be visible. Default: False. */get show_names(): H.Ref<boolean>;set show_names(v: H.In<boolean>);@@ -2199,7 +2199,7 @@ export interface Attribute extends R.bpy_struct {*/get storage_type(): H.Ref<"ARRAY" | "SINGLE">;/** Domain of the Attribute Default: 'POINT'. */- get domain(): H.Ref<E.AttributeDomain>;+ get domain(): H.Ref<E.AttributeDomain | (string & {})>;/** The attribute is meant for internal use by Blender Default: False. */get is_internal(): H.Ref<boolean>;/** Whether the attribute can be removed or renamed Default: False. */diff --git a/sdk/blender/src/gen/rna/B.ts b/sdk/blender/src/gen/rna/B.tsindex edc21955..a9e6db10 100644--- a/sdk/blender/src/gen/rna/B.ts+++ b/sdk/blender/src/gen/rna/B.ts@@ -2367,7 +2367,7 @@ export interface BlendDataNodeTrees {* @param name New name for the data-block* @param type The type of node_group to add - `GeometryNodeTree`: Geometry Node Editor (Advanced geometry editing and tools creation using nodes) - `CompositorNodeTree`: Compositor (Create effects and post-process renders, images, and the 3D Viewport) - `ShaderNodeTree`: Shader Editor (Edit materials, lights, and world shading using nodes) - `TextureNodeTree`: Texture Node Editor (Edit textures using nodes)*/- "new"(name: H.In<string>, type: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree">): H.Ptr<R.NodeTree>;+ "new"(name: H.In<string>, type: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree" | (string & {})>): H.Ptr<R.NodeTree>;/*** Add a new node tree to the main database* @param name New name for the data-block@@ -2383,7 +2383,7 @@ export interface BlendDataNodeTrees {* - `ShaderNodeTree`: Shader Editor (Edit materials, lights, and world shading using nodes)* - `TextureNodeTree`: Texture Node Editor (Edit textures using nodes)*/- type: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree">;+ type: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree" | (string & {})>;}): H.Ptr<R.NodeTree>;/*** Remove a node tree from the current blendfile@@ -3330,7 +3330,7 @@ export interface BlendFileColorspace extends R.bpy_struct {* - `Linear Rec.2020`: Linear Rec.2020 (Linear BT.2020 with illuminant D65 white point)* - `ACEScg`: ACEScg (Linear AP1 with ACES white point)*/- get working_space(): H.Ref<"Linear Rec.709" | "Linear Rec.2020" | "ACEScg">;+ get working_space(): H.Ref<"Linear Rec.709" | "Linear Rec.2020" | "ACEScg" | (string & {})>;/** Unique identifier for common color spaces, as defined by the Color Interop Forum. May be empty if there is no interop ID for the working space. Common values are lin_rec709_scene, lin_rec2020_scene and lin_ap1_scene (for ACEScg) Default: "". */get working_space_interop_id(): H.Ref<string>;/** A color space, view or display was not found, which likely means the OpenColorIO config used to create this blend file is missing Default: False. */@@ -4332,11 +4332,11 @@ export interface Brush extends R.ID {* - `ADD`: Add (Add effect of brush)* - `SUBTRACT`: Subtract (Subtract effect of brush)*/- get direction(): H.Ref<"ADD" | "SUBTRACT">;- set direction(v: H.In<"ADD" | "SUBTRACT">);+ get direction(): H.Ref<"ADD" | "SUBTRACT" | (string & {})>;+ set direction(v: H.In<"ADD" | "SUBTRACT" | (string & {})>);/** Stroke Method Default: 'DOTS'. */- get stroke_method(): H.Ref<E.BrushStrokeMethod>;- set stroke_method(v: H.In<E.BrushStrokeMethod>);+ get stroke_method(): H.Ref<E.BrushStrokeMethod | (string & {})>;+ set stroke_method(v: H.In<E.BrushStrokeMethod | (string & {})>);/*** Sculpt Plane Default: 'AREA'.* - `AREA`: Area Plane@@ -5494,8 +5494,8 @@ export interface BrushTextureSlot extends R.TextureSlot {* - `RANDOM`: Random* - `STENCIL`: Stencil*/- get map_mode(): H.Ref<"VIEW_PLANE" | "AREA_PLANE" | "TILED" | "3D" | "RANDOM" | "STENCIL">;- set map_mode(v: H.In<"VIEW_PLANE" | "AREA_PLANE" | "TILED" | "3D" | "RANDOM" | "STENCIL">);+ get map_mode(): H.Ref<"VIEW_PLANE" | "AREA_PLANE" | "TILED" | "3D" | "RANDOM" | "STENCIL" | (string & {})>;+ set map_mode(v: H.In<"VIEW_PLANE" | "AREA_PLANE" | "TILED" | "3D" | "RANDOM" | "STENCIL" | (string & {})>);/*** Mode Default: 'VIEW_PLANE'.* - `VIEW_PLANE`: View Planediff --git a/sdk/blender/src/gen/rna/C.ts b/sdk/blender/src/gen/rna/C.tsindex 5f93b5a5..05f6cd27 100644--- a/sdk/blender/src/gen/rna/C.ts+++ b/sdk/blender/src/gen/rna/C.ts@@ -1164,13 +1164,13 @@ export interface CollectionExports {* @param type The type of export handler to add* @param name Name of the new export handler*/- "new"(type: H.In<E.CollectionExportsType>, name?: H.In<string>): H.Ptr<R.CollectionExport>;+ "new"(type: H.In<E.CollectionExportsType | (string & {})>, name?: H.In<string>): H.Ptr<R.CollectionExport>;/*** Add an export handler to the collection* @param type The type of export handler to add* @param name Name of the new export handler*/- "new"(type: H.In<E.CollectionExportsType>, kw: {+ "new"(type: H.In<E.CollectionExportsType | (string & {})>, kw: {/** Name of the new export handler */name?: H.In<string>;}): H.Ptr<R.CollectionExport>;@@ -1181,7 +1181,7 @@ export interface CollectionExports {*/"new"(kw: {/** The type of export handler to add */- type: H.In<E.CollectionExportsType>;+ type: H.In<E.CollectionExportsType | (string & {})>;/** Name of the new export handler */name?: H.In<string>;}): H.Ptr<R.CollectionExport>;@@ -1405,8 +1405,8 @@ export interface ColorManagedDisplaySettings extends R.bpy_struct {*/export interface ColorManagedInputColorspaceSettings extends R.bpy_struct {/** Color space in the image file, to convert to and from when saving and loading the image Default: 'NONE'. */- get name(): H.Ref<E.ColorManagedInputColorspaceSettingsName>;- set name(v: H.In<E.ColorManagedInputColorspaceSettingsName>);+ get name(): H.Ref<E.ColorManagedInputColorspaceSettingsName | (string & {})>;+ set name(v: H.In<E.ColorManagedInputColorspaceSettingsName | (string & {})>);/** Treat image as non-color data without color management, like normal or displacement maps Default: False. */get is_data(): H.Ref<boolean>;set is_data(v: H.In<boolean>);@@ -1419,8 +1419,8 @@ export interface ColorManagedInputColorspaceSettings extends R.bpy_struct {*/export interface ColorManagedSequencerColorspaceSettings extends R.bpy_struct {/** Color space that the sequencer operates in Default: 'NONE'. */- get name(): H.Ref<E.ColorManagedInputColorspaceSettingsName>;- set name(v: H.In<E.ColorManagedInputColorspaceSettingsName>);+ get name(): H.Ref<E.ColorManagedInputColorspaceSettingsName | (string & {})>;+ set name(v: H.In<E.ColorManagedInputColorspaceSettingsName | (string & {})>);}/**@@ -2211,11 +2211,11 @@ export interface CompositorNodeCombineColor extends R.CompositorNode {*/export interface CompositorNodeConvertColorSpace extends R.CompositorNode {/** Color space of the input image Default: 'NONE'. */- get from_color_space(): H.Ref<E.ColorManagedInputColorspaceSettingsName>;- set from_color_space(v: H.In<E.ColorManagedInputColorspaceSettingsName>);+ get from_color_space(): H.Ref<E.ColorManagedInputColorspaceSettingsName | (string & {})>;+ set from_color_space(v: H.In<E.ColorManagedInputColorspaceSettingsName | (string & {})>);/** Color space of the output image Default: 'NONE'. */- get to_color_space(): H.Ref<E.ColorManagedInputColorspaceSettingsName>;- set to_color_space(v: H.In<E.ColorManagedInputColorspaceSettingsName>);+ get to_color_space(): H.Ref<E.ColorManagedInputColorspaceSettingsName | (string & {})>;+ set to_color_space(v: H.In<E.ColorManagedInputColorspaceSettingsName | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */@@ -2447,8 +2447,8 @@ export interface CompositorNodeCryptomatteV2 extends R.CompositorNode {* - `CryptoMaterial`: Material (Use Material layer)* - `CryptoAsset`: Asset (Use Asset layer)*/- get layer_name(): H.Ref<"CryptoObject" | "CryptoMaterial" | "CryptoAsset">;- set layer_name(v: H.In<"CryptoObject" | "CryptoMaterial" | "CryptoAsset">);+ get layer_name(): H.Ref<"CryptoObject" | "CryptoMaterial" | "CryptoAsset" | (string & {})>;+ set layer_name(v: H.In<"CryptoObject" | "CryptoMaterial" | "CryptoAsset" | (string & {})>);/** Mattes */readonly entries: H.Own<H.Coll<R.CryptomatteEntry>>;/** Number of images of a movie to use Range: 0 to 1048574. Default: 0. */@@ -4740,8 +4740,8 @@ export interface Constraint extends R.bpy_struct {* - `LOCAL_WITH_PARENT`: Local With Parent (The constraint is applied relative to the rest pose local coordinate system of the bone, thus including the parent-induced transformation)* - `LOCAL`: Local Space (The constraint is applied relative to the local coordinate system of the object)*/- get owner_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">;- set owner_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">);+ get owner_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | (string & {})>;+ set owner_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | (string & {})>);/*** Space that target is evaluated in Default: 'WORLD'.* - `WORLD`: World Space (The transformation of the target is evaluated relative to the world coordinate system)@@ -4751,8 +4751,8 @@ export interface Constraint extends R.bpy_struct {* - `LOCAL`: Local Space (The transformation of the target is evaluated relative to its local coordinate system)* - `LOCAL_OWNER_ORIENT`: Local Space (Owner Orientation) (The transformation of the target bone is evaluated relative to its local coordinate system, followed by a correction for the difference in target and owner rest pose orientations. When applied as local transform to the owner produces the same global motion as the target if the parents are still in rest pose.)*/- get target_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | "LOCAL_OWNER_ORIENT">;- set target_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | "LOCAL_OWNER_ORIENT">);+ get target_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | "LOCAL_OWNER_ORIENT" | (string & {})>;+ set target_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | "LOCAL_OWNER_ORIENT" | (string & {})>);/** Object for Custom Space */get space_object(): H.Ptr<R.Object>;set space_object(v: R.Object | null);@@ -5175,8 +5175,8 @@ export interface Curve extends R.ID {* - `FRONT`: Front* - `HALF`: Half*/- get fill_mode(): H.Ref<"FULL" | "BACK" | "FRONT" | "HALF">;- set fill_mode(v: H.In<"FULL" | "BACK" | "FRONT" | "HALF">);+ get fill_mode(): H.Ref<"FULL" | "BACK" | "FRONT" | "HALF" | (string & {})>;+ set fill_mode(v: H.In<"FULL" | "BACK" | "FRONT" | "HALF" | (string & {})>);/*** Triangulation solver for filling 2D curves Default: 'SWEEP_LINE'.* - `SWEEP_LINE`: Sweep Line (Fast without support for self-intersection)@@ -5916,14 +5916,14 @@ export interface CyclesCurveRenderSettings extends R.PropertyGroup {/** Number of subdivisions used in Cardinal curve intersection (power of 2) Range: 0 to 24. Default: 2. */get subdivisions(): H.Ref<number>;set subdivisions(v: H.In<number>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesCustomCameraSettings */export interface CyclesCustomCameraSettings extends R.PropertyGroup {- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesDeviceSettings */@@ -5961,8 +5961,8 @@ export interface CyclesLightSettings extends R.PropertyGroup {/** Generate approximate caustics in shadows of refractive surfaces. Lights, caster and receiver objects must have shadow caustics options set to enable this Default: False. */get is_caustics_light(): H.Ref<boolean>;set is_caustics_light(v: H.In<boolean>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesMaterialSettings */@@ -5998,14 +5998,14 @@ export interface CyclesMaterialSettings extends R.PropertyGroup {/** Scale the distance between volume shader samples when rendering the volume (lower values give more accurate and detailed results, but also increased render time) Range: 0.0010000000474974513 to 1000. Default: 1.0. */get volume_step_rate(): H.Ref<number>;set volume_step_rate(v: H.In<number>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesMeshSettings */export interface CyclesMeshSettings extends R.PropertyGroup {- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesObjectSettings */@@ -6040,8 +6040,8 @@ export interface CyclesObjectSettings extends R.PropertyGroup {/** Receive approximate caustics from refractive materials in shadows on this object. Lights, caster and receiver objects must have shadow caustics options set to enable this Default: False. */get is_caustics_receiver(): H.Ref<boolean>;set is_caustics_receiver(v: H.In<boolean>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesPreferences */@@ -6076,10 +6076,10 @@ export interface CyclesPreferences extends R.AddonPreferences {get kernel_optimization_level(): H.Ref<"OFF" | "INTERSECT" | "FULL">;set kernel_optimization_level(v: H.In<"OFF" | "INTERSECT" | "FULL">);default_device(): any;- draw(context: any): any;- draw(kw: { context: any }): any;- draw_impl(layout: any, context: any): any;- draw_impl(kw: { layout: any; context: any }): any;+ draw(context: any): H.Ref<void>;+ draw(kw: { context: any }): H.Ref<void>;+ draw_impl(layout: any, context: any): H.Ref<void>;+ draw_impl(kw: { layout: any; context: any }): H.Ref<void>;find_existing_device_entry(device: any): any;find_existing_device_entry(kw: { device: any }): any;get_compute_device_type(): any;@@ -6087,8 +6087,8 @@ export interface CyclesPreferences extends R.AddonPreferences {get_device_list(kw: { compute_device_type: any }): any;get_device_types(context: any): any;get_device_types(kw: { context: any }): any;- get_devices(compute_device_type?: string): any;- get_devices(kw: { compute_device_type?: string }): any;+ get_devices(compute_device_type?: string): H.Ref<void>;+ get_devices(kw: { compute_device_type?: string }): H.Ref<void>;get_devices_for_type(compute_device_type: any, device_list?: any): any;get_devices_for_type(compute_device_type: any, kw: { device_list?: any }): any;get_devices_for_type(kw: { compute_device_type: any; device_list?: any }): any;@@ -6097,9 +6097,9 @@ export interface CyclesPreferences extends R.AddonPreferences {has_multi_device(): any;has_oidn_gpu_devices(): any;has_optixdenoiser_gpu_devices(): any;- refresh_devices(): any;- update_device_entries(device_list: any): any;- update_device_entries(kw: { device_list: any }): any;+ refresh_devices(): H.Ref<void>;+ update_device_entries(device_list: any): H.Ref<void>;+ update_device_entries(kw: { device_list: any }): H.Ref<void>;}/** bpy.types.CyclesRenderLayerSettings */@@ -6140,8 +6140,8 @@ export interface CyclesRenderLayerSettings extends R.PropertyGroup {/** Use roughness-based weighting of the albedo for the denoising feature passes Default: True. */get denoising_pass_use_albedo_roughness_weighting(): H.Ref<boolean>;set denoising_pass_use_albedo_roughness_weighting(v: H.In<boolean>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesRenderSettings */@@ -6548,8 +6548,8 @@ export interface CyclesRenderSettings extends R.PropertyGroup {/** Preserve unused texture cache data, up to this amount of memory Range: 0 to 2147483647. Default: 0. */get debug_texture_cache_preserve_unused(): H.Ref<number>;set debug_texture_cache_preserve_unused(v: H.In<number>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesView3DShadingSettings */@@ -6582,8 +6582,8 @@ export interface CyclesVisibilitySettings extends R.PropertyGroup {/** World visibility for volume scatter rays Default: True. */get scatter(): H.Ref<boolean>;set scatter(v: H.In<boolean>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}/** bpy.types.CyclesWorldSettings */@@ -6626,6 +6626,6 @@ export interface CyclesWorldSettings extends R.PropertyGroup {/** Enable shadow casting from the world Default: True. */get use_shadows(): H.Ref<boolean>;set use_shadows(v: H.In<boolean>);- register(): any;- unregister(): any;+ register(): H.Ref<void>;+ unregister(): H.Ref<void>;}diff --git a/sdk/blender/src/gen/rna/D.ts b/sdk/blender/src/gen/rna/D.tsindex 00e4a092..ba1e896b 100644--- a/sdk/blender/src/gen/rna/D.ts+++ b/sdk/blender/src/gen/rna/D.ts@@ -150,8 +150,8 @@ export interface DataTransferModifier extends R.Modifier {* - `BONE_SELECT`: Selected Pose Bones (Transfer all vertex groups used by selected pose bones)* - `BONE_DEFORM`: Deform Pose Bones (Transfer all vertex groups used by deform bones)*/- get layers_vgroup_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">;- set layers_vgroup_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">);+ get layers_vgroup_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>;+ set layers_vgroup_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>);/*** Which layers to transfer, in case of multi-layers types Default: 'ALL'.* - `ACTIVE`: Active Layer (Only transfer active data layer)@@ -159,8 +159,8 @@ export interface DataTransferModifier extends R.Modifier {* - `BONE_SELECT`: Selected Pose Bones (Transfer all vertex groups used by selected pose bones)* - `BONE_DEFORM`: Deform Pose Bones (Transfer all vertex groups used by deform bones)*/- get layers_vcol_vert_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">;- set layers_vcol_vert_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">);+ get layers_vcol_vert_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>;+ set layers_vcol_vert_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>);/*** Which layers to transfer, in case of multi-layers types Default: 'ALL'.* - `ACTIVE`: Active Layer (Only transfer active data layer)@@ -168,8 +168,8 @@ export interface DataTransferModifier extends R.Modifier {* - `BONE_SELECT`: Selected Pose Bones (Transfer all vertex groups used by selected pose bones)* - `BONE_DEFORM`: Deform Pose Bones (Transfer all vertex groups used by deform bones)*/- get layers_vcol_loop_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">;- set layers_vcol_loop_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">);+ get layers_vcol_loop_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>;+ set layers_vcol_loop_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>);/*** Which layers to transfer, in case of multi-layers types Default: 'ALL'.* - `ACTIVE`: Active Layer (Only transfer active data layer)@@ -177,43 +177,43 @@ export interface DataTransferModifier extends R.Modifier {* - `BONE_SELECT`: Selected Pose Bones (Transfer all vertex groups used by selected pose bones)* - `BONE_DEFORM`: Deform Pose Bones (Transfer all vertex groups used by deform bones)*/- get layers_uv_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">;- set layers_uv_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM">);+ get layers_uv_select_src(): H.Ref<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>;+ set layers_uv_select_src(v: H.In<"ACTIVE" | "ALL" | "BONE_SELECT" | "BONE_DEFORM" | (string & {})>);/*** How to match source and destination layers Default: 'NAME'.* - `ACTIVE`: Active Layer (Affect active data layer of all targets)* - `NAME`: By Name (Match target data layers to affect by name)* - `INDEX`: By Order (Match target data layers to affect by order (indices))*/- get layers_vgroup_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX">;- set layers_vgroup_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX">);+ get layers_vgroup_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX" | (string & {})>;+ set layers_vgroup_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX" | (string & {})>);/*** How to match source and destination layers Default: 'NAME'.* - `ACTIVE`: Active Layer (Affect active data layer of all targets)* - `NAME`: By Name (Match target data layers to affect by name)* - `INDEX`: By Order (Match target data layers to affect by order (indices))*/- get layers_vcol_vert_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX">;- set layers_vcol_vert_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX">);+ get layers_vcol_vert_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX" | (string & {})>;+ set layers_vcol_vert_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX" | (string & {})>);/*** How to match source and destination layers Default: 'NAME'.* - `ACTIVE`: Active Layer (Affect active data layer of all targets)* - `NAME`: By Name (Match target data layers to affect by name)* - `INDEX`: By Order (Match target data layers to affect by order (indices))*/- get layers_vcol_loop_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX">;- set layers_vcol_loop_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX">);+ get layers_vcol_loop_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX" | (string & {})>;+ set layers_vcol_loop_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX" | (string & {})>);/*** How to match source and destination layers Default: 'NAME'.* - `ACTIVE`: Active Layer (Affect active data layer of all targets)* - `NAME`: By Name (Match target data layers to affect by name)* - `INDEX`: By Order (Match target data layers to affect by order (indices))*/- get layers_uv_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX">;- set layers_uv_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX">);+ get layers_uv_select_dst(): H.Ref<"ACTIVE" | "NAME" | "INDEX" | (string & {})>;+ set layers_uv_select_dst(v: H.In<"ACTIVE" | "NAME" | "INDEX" | (string & {})>);/** How to affect destination elements with source values Default: 'REPLACE'. */- get mix_mode(): H.Ref<E.DataTransferModifierMixMode>;- set mix_mode(v: H.In<E.DataTransferModifierMixMode>);+ get mix_mode(): H.Ref<E.DataTransferModifierMixMode | (string & {})>;+ set mix_mode(v: H.In<E.DataTransferModifierMixMode | (string & {})>);/** Factor to use when applying data to destination (exact behavior depends on mix mode, multiplied with weights from vertex group when defined) Range: 0 to 1. Default: 0.0. */get mix_factor(): H.Ref<number>;set mix_factor(v: H.In<number>);diff --git a/sdk/blender/src/gen/rna/E.ts b/sdk/blender/src/gen/rna/E.tsindex f990d58a..d9657db7 100644--- a/sdk/blender/src/gen/rna/E.ts+++ b/sdk/blender/src/gen/rna/E.ts@@ -271,7 +271,7 @@ export interface EditBone extends R.bpy_struct {* the length of the other bone is not used.* @param other Bone to copy orientation from.*/- align_orientation(other: R.EditBone): any;+ align_orientation(other: R.EditBone): H.Ref<void>;/*** Align this bone to another by moving its tail and settings its roll* the length of the other bone is not used.@@ -280,7 +280,7 @@ export interface EditBone extends R.bpy_struct {align_orientation(kw: {/** Bone to copy orientation from. */other: R.EditBone;- }): any;+ }): H.Ref<void>;/*** Transform the bones head, tail, roll and envelope* (when the matrix has a scale component).@@ -294,7 +294,7 @@ export interface EditBone extends R.bpy_struct {* direction to the head and tail.*/roll?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Transform the bones head, tail, roll and envelope* (when the matrix has a scale component).@@ -310,7 +310,7 @@ export interface EditBone extends R.bpy_struct {* direction to the head and tail.*/roll?: H.In<boolean>;- }): any;+ }): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/F.ts b/sdk/blender/src/gen/rna/F.tsindex f01246fe..22c682af 100644--- a/sdk/blender/src/gen/rna/F.ts+++ b/sdk/blender/src/gen/rna/F.ts@@ -759,8 +759,8 @@ export interface FieldSettings extends R.bpy_struct {* - `SURFACE`: Surface (Field originates from the surface of the object)* - `POINTS`: Every Point (Field originates from all of the vertices of the object)*/- get shape(): H.Ref<"POINT" | "LINE" | "PLANE" | "SURFACE" | "POINTS">;- set shape(v: H.In<"POINT" | "LINE" | "PLANE" | "SURFACE" | "POINTS">);+ get shape(): H.Ref<"POINT" | "LINE" | "PLANE" | "SURFACE" | "POINTS" | (string & {})>;+ set shape(v: H.In<"POINT" | "LINE" | "PLANE" | "SURFACE" | "POINTS" | (string & {})>);/*** Falloff Default: 'SPHERE'.* - `CONE`: Cone@@ -1054,8 +1054,8 @@ export interface FileAssetSelectParams extends R.FileSelectParams {* - `ONLINE_ESSENTIALS`: Online Essentials (Show additional building blocks and utilities available online)* - `CUSTOM`: Custom (Show assets from the asset libraries configured in the Preferences)*/- get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">;- set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">);+ get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>;+ set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>);/** The UUID of the catalog shown in the browser Default: "". */get catalog_id(): H.Ref<string>;set catalog_id(v: H.In<string>);@@ -1077,8 +1077,8 @@ export interface FileAssetSelectParams extends R.FileSelectParams {* - `APPEND_REUSE`: Append (Reuse Data) (Import the asset as copied data-block while avoiding multiple copies of nested, typically heavy data. For example the textures of a material asset, or the mesh of an object asset, don't have to be copied every time this asset is imported. The instances of the asset share the data instead)* - `PACK`: Pack (Import the asset as linked data-block, and pack it in the current file (ensures that it remains unchanged in case the library data is modified, is not available anymore, etc.))*/- get import_method(): H.Ref<"FOLLOW_PREFS" | "LINK" | "APPEND" | "APPEND_REUSE" | "PACK">;- set import_method(v: H.In<"FOLLOW_PREFS" | "LINK" | "APPEND" | "APPEND_REUSE" | "PACK">);+ get import_method(): H.Ref<"FOLLOW_PREFS" | "LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>;+ set import_method(v: H.In<"FOLLOW_PREFS" | "LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>);/** Create instances for collections when linking, rather than adding them directly to the scene Default: False. */get instance_collections_on_link(): H.Ref<boolean>;set instance_collections_on_link(v: H.In<boolean>);@@ -1328,8 +1328,8 @@ export interface FileSelectParams extends R.bpy_struct {* - `LIST_HORIZONTAL`: Horizontal List (Display files as a horizontal list)* - `THUMBNAIL`: Thumbnails (Display files as thumbnails)*/- get display_type(): H.Ref<"LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">;- set display_type(v: H.In<"LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">);+ get display_type(): H.Ref<"LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL" | (string & {})>;+ set display_type(v: H.In<"LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL" | (string & {})>);/*** Numbers of dirtree levels to show simultaneously Default: 'NONE'.* - `NONE`: None (Only list current directory's content, with no recursion)@@ -1338,8 +1338,8 @@ export interface FileSelectParams extends R.bpy_struct {* - `ALL_2`: Two Levels (List all sub-directories' content, two levels of recursion)* - `ALL_3`: Three Levels (List all sub-directories' content, three levels of recursion)*/- get recursion_level(): H.Ref<"NONE" | "BLEND" | "ALL_1" | "ALL_2" | "ALL_3">;- set recursion_level(v: H.In<"NONE" | "BLEND" | "ALL_1" | "ALL_2" | "ALL_3">);+ get recursion_level(): H.Ref<"NONE" | "BLEND" | "ALL_1" | "ALL_2" | "ALL_3" | (string & {})>;+ set recursion_level(v: H.In<"NONE" | "BLEND" | "ALL_1" | "ALL_2" | "ALL_3" | (string & {})>);/** Show a column listing the size of each file Default: False. */get show_details_size(): H.Ref<boolean>;set show_details_size(v: H.In<boolean>);@@ -1360,8 +1360,8 @@ export interface FileSelectParams extends R.bpy_struct {* - `FILE_SORT_SIZE`: Size (Sort files by size)* - `ASSET_CATALOG`: Asset Catalog (Sort the asset list so that assets in the same catalog are kept together. Within a single catalog, assets are ordered by name. The catalogs are in order of the flattened catalog hierarchy.)*/- get sort_method(): H.Ref<"FILE_SORT_ALPHA" | "FILE_SORT_EXTENSION" | "FILE_SORT_TIME" | "FILE_SORT_SIZE" | "ASSET_CATALOG">;- set sort_method(v: H.In<"FILE_SORT_ALPHA" | "FILE_SORT_EXTENSION" | "FILE_SORT_TIME" | "FILE_SORT_SIZE" | "ASSET_CATALOG">);+ get sort_method(): H.Ref<"FILE_SORT_ALPHA" | "FILE_SORT_EXTENSION" | "FILE_SORT_TIME" | "FILE_SORT_SIZE" | "ASSET_CATALOG" | (string & {})>;+ set sort_method(v: H.In<"FILE_SORT_ALPHA" | "FILE_SORT_EXTENSION" | "FILE_SORT_TIME" | "FILE_SORT_SIZE" | "ASSET_CATALOG" | (string & {})>);/** Sort items descending, from highest value to lowest Default: False. */get use_sort_invert(): H.Ref<boolean>;set use_sort_invert(v: H.In<boolean>);@@ -1978,32 +1978,32 @@ export interface FluidDomainSettings extends R.bpy_struct {* - `OPENVDB`: OpenVDB (OpenVDB file format (.vdb))* - `RAW`: Raw Cache (Raw file format (.raw))*/- get cache_mesh_format(): H.Ref<"UNI" | "OPENVDB" | "RAW">;- set cache_mesh_format(v: H.In<"UNI" | "OPENVDB" | "RAW">);+ get cache_mesh_format(): H.Ref<"UNI" | "OPENVDB" | "RAW" | (string & {})>;+ set cache_mesh_format(v: H.In<"UNI" | "OPENVDB" | "RAW" | (string & {})>);/*** Select the file format to be used for caching volumetric data Default: 'OPENVDB'.* - `UNI`: Uni Cache (Uni file format (.uni))* - `OPENVDB`: OpenVDB (OpenVDB file format (.vdb))* - `RAW`: Raw Cache (Raw file format (.raw))*/- get cache_data_format(): H.Ref<"UNI" | "OPENVDB" | "RAW">;- set cache_data_format(v: H.In<"UNI" | "OPENVDB" | "RAW">);+ get cache_data_format(): H.Ref<"UNI" | "OPENVDB" | "RAW" | (string & {})>;+ set cache_data_format(v: H.In<"UNI" | "OPENVDB" | "RAW" | (string & {})>);/*** Select the file format to be used for caching particle data Default: 'OPENVDB'.* - `UNI`: Uni Cache (Uni file format (.uni))* - `OPENVDB`: OpenVDB (OpenVDB file format (.vdb))* - `RAW`: Raw Cache (Raw file format (.raw))*/- get cache_particle_format(): H.Ref<"UNI" | "OPENVDB" | "RAW">;- set cache_particle_format(v: H.In<"UNI" | "OPENVDB" | "RAW">);+ get cache_particle_format(): H.Ref<"UNI" | "OPENVDB" | "RAW" | (string & {})>;+ set cache_particle_format(v: H.In<"UNI" | "OPENVDB" | "RAW" | (string & {})>);/*** Select the file format to be used for caching noise data Default: 'OPENVDB'.* - `UNI`: Uni Cache (Uni file format (.uni))* - `OPENVDB`: OpenVDB (OpenVDB file format (.vdb))* - `RAW`: Raw Cache (Raw file format (.raw))*/- get cache_noise_format(): H.Ref<"UNI" | "OPENVDB" | "RAW">;- set cache_noise_format(v: H.In<"UNI" | "OPENVDB" | "RAW">);+ get cache_noise_format(): H.Ref<"UNI" | "OPENVDB" | "RAW" | (string & {})>;+ set cache_noise_format(v: H.In<"UNI" | "OPENVDB" | "RAW" | (string & {})>);/*** Change the cache type of the simulation Default: 'REPLAY'.* - `REPLAY`: Replay (Use the timeline to bake the scene)@@ -2456,8 +2456,8 @@ export interface ForeachGeometryElementGenerationItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Domain that the field is evaluated on Default: 'POINT'. */@@ -2471,8 +2471,8 @@ export interface ForeachGeometryElementInputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;}@@ -2483,8 +2483,8 @@ export interface ForeachGeometryElementMainItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;}@@ -4010,8 +4010,8 @@ export interface FunctionNodeQuaternionToRotation extends R.FunctionNode {*/export interface FunctionNodeRandomValue extends R.FunctionNode {/** Type of data stored in attribute Default: 'FLOAT'. */- get data_type(): H.Ref<E.AttributeDataType>;- set data_type(v: H.In<E.AttributeDataType>);+ get data_type(): H.Ref<E.AttributeDataType | (string & {})>;+ set data_type(v: H.In<E.AttributeDataType | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */diff --git a/sdk/blender/src/gen/rna/G.ts b/sdk/blender/src/gen/rna/G.tsindex 728e07d4..66d23103 100644--- a/sdk/blender/src/gen/rna/G.ts+++ b/sdk/blender/src/gen/rna/G.ts@@ -31,8 +31,8 @@ export interface GLTF_AddonPreferences extends R.AddonPreferences {/** Allow glTF Embedded format Default: False. */get allow_embedded_format(): H.Ref<boolean>;set allow_embedded_format(v: H.In<boolean>);- draw(context: any): any;- draw(kw: { context: any }): any;+ draw(context: any): H.Ref<void>;+ draw(kw: { context: any }): H.Ref<void>;}/** bpy.types.GPENCIL_UL_annotation_layer */@@ -596,8 +596,8 @@ export interface GeometryNodeCaptureAttribute extends R.GeometryNode {get active_item(): H.Ptr<R.RepeatItem>;set active_item(v: R.RepeatItem | null);/** Which domain to store the data in Default: 'POINT'. */- get domain(): H.Ref<E.AttributeDomain>;- set domain(v: H.In<E.AttributeDomain>);+ get domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set domain(v: H.In<E.AttributeDomain | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */@@ -667,8 +667,8 @@ export interface GeometryNodeClosureToListItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -680,8 +680,8 @@ export interface GeometryNodeClosureToListItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);/** Range: -2147483648 to 2147483647. Default: 0. */get identifier(): H.Ref<number>;}@@ -2300,8 +2300,8 @@ export interface GeometryNodeFieldToGrid extends R.GeometryNode {get active_item(): H.Ptr<R.RepeatItem>;set active_item(v: R.RepeatItem | null);/** Data type for topology grid Default: 'FLOAT'. */- get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */@@ -2333,8 +2333,8 @@ export interface GeometryNodeFieldToGridItem extends R.bpy_struct {/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Range: -2147483648 to 2147483647. Default: 0. */get identifier(): H.Ref<number>;}@@ -2436,8 +2436,8 @@ export interface GeometryNodeFieldToListItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Range: -2147483648 to 2147483647. Default: 0. */@@ -6627,8 +6627,8 @@ export interface GeometryNodeSampleCurve extends R.GeometryNode {get use_all_curves(): H.Ref<boolean>;set use_all_curves(v: H.In<boolean>);/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.AttributeDataType>;- set data_type(v: H.In<E.AttributeDataType>);+ get data_type(): H.Ref<E.AttributeDataType | (string & {})>;+ set data_type(v: H.In<E.AttributeDataType | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */@@ -6732,11 +6732,11 @@ export interface GeometryNodeSampleGridIndex extends R.GeometryNode {*/export interface GeometryNodeSampleIndex extends R.GeometryNode {/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.AttributeDataType>;- set data_type(v: H.In<E.AttributeDataType>);+ get data_type(): H.Ref<E.AttributeDataType | (string & {})>;+ set data_type(v: H.In<E.AttributeDataType | (string & {})>);/** Domain Default: 'POINT'. */- get domain(): H.Ref<E.AttributeDomain>;- set domain(v: H.In<E.AttributeDomain>);+ get domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set domain(v: H.In<E.AttributeDomain | (string & {})>);/** Clamp the indices to the size of the attribute domain instead of outputting a default value for invalid indices Default: False. */get clamp(): H.Ref<boolean>;set clamp(v: H.In<boolean>);@@ -9430,7 +9430,7 @@ export interface Gizmo extends R.bpy_struct {* Only use when drawing within :class:`Gizmo.draw_select`.*/select_id?: H.In<number | null>;- }): any;+ }): H.Ref<void>;/*** Draw a shape created form :class:`Gizmo.draw_custom_shape`.* @param shape The cached shape to draw.@@ -9445,7 +9445,7 @@ export interface Gizmo extends R.bpy_struct {* Only use when drawing within :class:`Gizmo.draw_select`.*/select_id?: H.In<number | null>;- }): any;+ }): H.Ref<void>;/*** Create a new shape that can be passed to :class:`Gizmo.draw_custom_shape`.* @returns The newly created shape (the return type make change).@@ -10026,8 +10026,8 @@ export interface GreasePencilBuildModifier extends R.Modifier {* - `FRAMES`: Number of Frames (Set a fixed number of frames for all build animations)* - `PERCENTAGE`: Percentage Factor (Set a manual percentage to build)*/- get time_mode(): H.Ref<"DRAWSPEED" | "FRAMES" | "PERCENTAGE">;- set time_mode(v: H.In<"DRAWSPEED" | "FRAMES" | "PERCENTAGE">);+ get time_mode(): H.Ref<"DRAWSPEED" | "FRAMES" | "PERCENTAGE" | (string & {})>;+ set time_mode(v: H.In<"DRAWSPEED" | "FRAMES" | "PERCENTAGE" | (string & {})>);/** Multiply recorded drawing speed by a factor Range: 0 to 100. Default: 1.2. */get speed_factor(): H.Ref<number>;set speed_factor(v: H.In<number>);diff --git a/sdk/blender/src/gen/rna/I.ts b/sdk/blender/src/gen/rna/I.tsindex 301e55cd..60d4a9aa 100644--- a/sdk/blender/src/gen/rna/I.ts+++ b/sdk/blender/src/gen/rna/I.ts@@ -650,8 +650,8 @@ export interface Image extends R.ID {* - `VIEWER`: Viewer (Compositing node viewer)* - `TILED`: UDIM Tiles (Tiled UDIM image texture)*/- get source(): H.Ref<"FILE" | "SEQUENCE" | "MOVIE" | "GENERATED" | "VIEWER" | "TILED">;- set source(v: H.In<"FILE" | "SEQUENCE" | "MOVIE" | "GENERATED" | "VIEWER" | "TILED">);+ get source(): H.Ref<"FILE" | "SEQUENCE" | "MOVIE" | "GENERATED" | "VIEWER" | "TILED" | (string & {})>;+ set source(v: H.In<"FILE" | "SEQUENCE" | "MOVIE" | "GENERATED" | "VIEWER" | "TILED" | (string & {})>);/*** How to generate the image Default: 'IMAGE'.* - `IMAGE`: Image@@ -960,19 +960,19 @@ export interface ImageFormatSettings extends R.bpy_struct {* - `MULTI_LAYER_IMAGE`: Multi-Layer EXR* - `VIDEO`: Video*/- get media_type(): H.Ref<"IMAGE" | "MULTI_LAYER_IMAGE" | "VIDEO">;- set media_type(v: H.In<"IMAGE" | "MULTI_LAYER_IMAGE" | "VIDEO">);+ get media_type(): H.Ref<"IMAGE" | "MULTI_LAYER_IMAGE" | "VIDEO" | (string & {})>;+ set media_type(v: H.In<"IMAGE" | "MULTI_LAYER_IMAGE" | "VIDEO" | (string & {})>);/** File format to save the rendered images as Default: 'PNG'. */- get file_format(): H.Ref<E.ImageFileFormat>;- set file_format(v: H.In<E.ImageFileFormat>);+ get file_format(): H.Ref<E.ImageFileFormat | (string & {})>;+ set file_format(v: H.In<E.ImageFileFormat | (string & {})>);/*** Choose BW for saving grayscale images, RGB for saving red, green and blue channels, and RGBA for saving red, green, blue and alpha channels Default: 'RGBA'.* - `BW`: BW (Images get saved in 8-bit grayscale (only PNG, JPEG, TGA, TIF))* - `RGB`: RGB (Images are saved with RGB (color) data)* - `RGBA`: RGBA (Images are saved with RGB and Alpha data (if supported))*/- get color_mode(): H.Ref<"BW" | "RGB" | "RGBA">;- set color_mode(v: H.In<"BW" | "RGB" | "RGBA">);+ get color_mode(): H.Ref<"BW" | "RGB" | "RGBA" | (string & {})>;+ set color_mode(v: H.In<"BW" | "RGB" | "RGBA" | (string & {})>);/*** Bit depth per channel Default: '8'.* - `8`: 8 (8-bit color channels)@@ -981,8 +981,8 @@ export interface ImageFormatSettings extends R.bpy_struct {* - `16`: 16 (16-bit color channels)* - `32`: 32 (32-bit color channels)*/- get color_depth(): H.Ref<"8" | "10" | "12" | "16" | "32">;- set color_depth(v: H.In<"8" | "10" | "12" | "16" | "32">);+ get color_depth(): H.Ref<"8" | "10" | "12" | "16" | "32" | (string & {})>;+ set color_depth(v: H.In<"8" | "10" | "12" | "16" | "32" | (string & {})>);/** Quality for image formats that support lossy compression Range: 0 to 100. Default: 90. */get quality(): H.Ref<number>;set quality(v: H.In<number>);@@ -993,8 +993,8 @@ export interface ImageFormatSettings extends R.bpy_struct {get use_preview(): H.Ref<boolean>;set use_preview(v: H.In<boolean>);/** Compression codec settings for OpenEXR Default: 'NONE'. */- get exr_codec(): H.Ref<E.ImageFormatSettingsExrCodec>;- set exr_codec(v: H.In<E.ImageFormatSettingsExrCodec>);+ get exr_codec(): H.Ref<E.ImageFormatSettingsExrCodec | (string & {})>;+ set exr_codec(v: H.In<E.ImageFormatSettingsExrCodec | (string & {})>);/** Use legacy interleaved storage of views, layers and passes for compatibility with applications that do not support more efficient multi-part OpenEXR files. Default: False. */get use_exr_interleave(): H.Ref<boolean>;set use_exr_interleave(v: H.In<boolean>);@@ -1041,8 +1041,8 @@ export interface ImageFormatSettings extends R.bpy_struct {* - `STEREO_3D`: Stereo 3D (Single file with an encoded stereo pair)* - `MULTIVIEW`: Multi-View (Single file with all the views)*/- get views_format(): H.Ref<"INDIVIDUAL" | "STEREO_3D" | "MULTIVIEW">;- set views_format(v: H.In<"INDIVIDUAL" | "STEREO_3D" | "MULTIVIEW">);+ get views_format(): H.Ref<"INDIVIDUAL" | "STEREO_3D" | "MULTIVIEW" | (string & {})>;+ set views_format(v: H.In<"INDIVIDUAL" | "STEREO_3D" | "MULTIVIEW" | (string & {})>);/** Settings for stereo 3D */get stereo_3d_format(): H.Own<R.Stereo3dFormat>;/**diff --git a/sdk/blender/src/gen/rna/K.ts b/sdk/blender/src/gen/rna/K.tsindex 6f0cbad7..f7974152 100644--- a/sdk/blender/src/gen/rna/K.ts+++ b/sdk/blender/src/gen/rna/K.ts@@ -191,8 +191,8 @@ export interface KeyMapItem extends R.bpy_struct {get map_type(): H.Ref<"KEYBOARD" | "MOUSE" | "NDOF" | "TEXTINPUT" | "TIMER">;set map_type(v: H.In<"KEYBOARD" | "MOUSE" | "NDOF" | "TEXTINPUT" | "TIMER">);/** Type of event Default: 'NONE'. */- get type(): H.Ref<E.EventType>;- set type(v: H.In<E.EventType>);+ get type(): H.Ref<E.EventType | (string & {})>;+ set type(v: H.In<E.EventType | (string & {})>);/** Value Default: 'NOTHING'. */get value(): H.Ref<E.EventValue>;set value(v: H.In<E.EventValue>);diff --git a/sdk/blender/src/gen/rna/M.ts b/sdk/blender/src/gen/rna/M.tsindex e2e399cb..39ad9ab9 100644--- a/sdk/blender/src/gen/rna/M.ts+++ b/sdk/blender/src/gen/rna/M.ts@@ -1022,7 +1022,7 @@ export interface Menu extends R.bpy_struct {* @param context The context.* @param layout The layout to draw into.*/- draw_collapsible(context: R.Context, layout: R.UILayout): any;+ draw_collapsible(context: R.Context, layout: R.UILayout): H.Ref<void>;/*** Draw the menu inline when the header shows menus, otherwise draw it* as a collapsed icon. Intended for use within header draw functions.@@ -1034,7 +1034,7 @@ export interface Menu extends R.bpy_struct {context: R.Context;/** The layout to draw into. */layout: R.UILayout;- }): any;+ }): H.Ref<void>;/*** Define these on the subclass:* - preset_operator (string)@@ -1046,7 +1046,7 @@ export interface Menu extends R.bpy_struct {* - preset_operator_defaults (dict of keyword args)* @param context The context.*/- draw_preset(context: R.Context): any;+ draw_preset(context: R.Context): H.Ref<void>;/*** Define these on the subclass:* - preset_operator (string)@@ -1061,7 +1061,7 @@ export interface Menu extends R.bpy_struct {draw_preset(kw: {/** The context. */context: R.Context;- }): any;+ }): H.Ref<void>;/*** Populate a menu from a list of paths.* @param searchpaths Paths to scan.@@ -1089,7 +1089,7 @@ export interface Menu extends R.bpy_struct {translate?: H.In<boolean>;/** Add submenus for sub-directories instead of listing their contents. */recursive_paths?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Populate a menu from a list of paths.* @param searchpaths Paths to scan.@@ -1121,7 +1121,7 @@ export interface Menu extends R.bpy_struct {translate?: H.In<boolean>;/** Add submenus for sub-directories instead of listing their contents. */recursive_paths?: H.In<boolean>;- }): any;+ }): H.Ref<void>;}/**@@ -1436,7 +1436,7 @@ export interface Mesh extends R.ID {* @returns The edge crease attribute.*/edge_creases_ensure(): H.Ptr<R.FloatAttribute>;- edge_creases_remove(): any;+ edge_creases_remove(): H.Ref<void>;/*** Make a mesh from a list of vertices/edges/faces* Until we have a nicer way to make geometry, use this.@@ -1453,7 +1453,7 @@ export interface Mesh extends R.ID {* @param faces iterator of faces, each faces contains three or more indices to the *vertices* argument. eg: [(5, 6, 8, 9), (1, 2, 3), ...]* @param shade_flat When true, mark new faces as flat-shaded.*/- from_pydata(vertices: H.In<readonly (readonly number[])[]>, edges: H.In<readonly (readonly number[])[]>, faces: H.In<readonly (readonly number[])[]>, shade_flat?: H.In<boolean>): any;+ from_pydata(vertices: H.In<readonly (readonly number[])[]>, edges: H.In<readonly (readonly number[])[]>, faces: H.In<readonly (readonly number[])[]>, shade_flat?: H.In<boolean>): H.Ref<void>;/*** Make a mesh from a list of vertices/edges/faces* Until we have a nicer way to make geometry, use this.@@ -1473,7 +1473,7 @@ export interface Mesh extends R.ID {from_pydata(vertices: H.In<readonly (readonly number[])[]>, edges: H.In<readonly (readonly number[])[]>, faces: H.In<readonly (readonly number[])[]>, kw: {/** When true, mark new faces as flat-shaded. */shade_flat?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Make a mesh from a list of vertices/edges/faces* Until we have a nicer way to make geometry, use this.@@ -1509,29 +1509,29 @@ export interface Mesh extends R.ID {faces: H.In<readonly (readonly number[])[]>;/** When true, mark new faces as flat-shaded. */shade_flat?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Render and display faces uniform, using face normals,* setting the "sharp_face" attribute true for every face*/- shade_flat(): any;+ shade_flat(): H.Ref<void>;/*** Render and display faces smooth, using interpolated vertex normals,* removing the "sharp_face" attribute*/- shade_smooth(): any;+ shade_smooth(): H.Ref<void>;/*** Ensure the "crease_vert" attribute exists, creating it if needed.* @returns The vertex crease attribute.*/vertex_creases_ensure(): H.Ptr<R.FloatAttribute>;- vertex_creases_remove(): any;+ vertex_creases_remove(): H.Ref<void>;/*** Ensure the ".sculpt_mask" attribute exists, creating it if needed.* @returns The vertex paint mask attribute.*/vertex_paint_mask_ensure(): H.Ptr<R.FloatAttribute>;- vertex_paint_mask_remove(): any;+ vertex_paint_mask_remove(): H.Ref<void>;}/**diff --git a/sdk/blender/src/gen/rna/N.ts b/sdk/blender/src/gen/rna/N.tsindex fc7f0590..c111bbb3 100644--- a/sdk/blender/src/gen/rna/N.ts+++ b/sdk/blender/src/gen/rna/N.ts@@ -545,8 +545,8 @@ export interface NodeClosureInputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -558,8 +558,8 @@ export interface NodeClosureInputItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/** bpy.types.NodeClosureInputItems */@@ -653,8 +653,8 @@ export interface NodeClosureOutputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -666,8 +666,8 @@ export interface NodeClosureOutputItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/** bpy.types.NodeClosureOutputItems */@@ -762,8 +762,8 @@ export interface NodeCombineBundleItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -775,8 +775,8 @@ export interface NodeCombineBundleItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/**@@ -839,8 +839,8 @@ export interface NodeCompositorFileOutputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Dimensions of the vector socket Range: 2 to 4. Default: 0. */get vector_socket_dimensions(): H.Ref<number>;set vector_socket_dimensions(v: H.In<number>);@@ -1010,8 +1010,8 @@ export interface NodeEvaluateClosureInputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -1023,8 +1023,8 @@ export interface NodeEvaluateClosureInputItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/** bpy.types.NodeEvaluateClosureInputItems */@@ -1083,8 +1083,8 @@ export interface NodeEvaluateClosureOutputItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -1096,8 +1096,8 @@ export interface NodeEvaluateClosureOutputItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/** bpy.types.NodeEvaluateClosureOutputItems */@@ -1181,8 +1181,8 @@ export interface NodeFunctionFormatStringItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;}@@ -1247,13 +1247,13 @@ export interface NodeGeometryBakeItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Domain where the field is captured if it is not already an attribute-field Default: 'POINT'. */- get attribute_domain(): H.Ref<E.AttributeDomain>;- set attribute_domain(v: H.In<E.AttributeDomain>);+ get attribute_domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set attribute_domain(v: H.In<E.AttributeDomain | (string & {})>);/** Bake item is an attribute stored on a geometry Default: False. */get is_attribute(): H.Ref<boolean>;set is_attribute(v: H.In<boolean>);@@ -1321,8 +1321,8 @@ export interface NodeGeometryCaptureAttributeItem extends R.bpy_struct {/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.AttributeDataType>;- set data_type(v: H.In<E.AttributeDataType>);+ get data_type(): H.Ref<E.AttributeDataType | (string & {})>;+ set data_type(v: H.In<E.AttributeDataType | (string & {})>);}/**@@ -1655,8 +1655,8 @@ export interface NodeGeometryViewerItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Remove the item automatically when it is unlinked Default: False. */@@ -1868,8 +1868,8 @@ export interface NodeImplicitConversion extends R.NodeInternal {get socket_idname(): H.Ref<string>;set socket_idname(v: H.In<string>);/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get data_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set data_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Input socket template */input_template(index: H.In<number>): H.Ptr<R.NodeInternalSocketTemplate>;/** Input socket template */@@ -2294,8 +2294,8 @@ export interface NodeRaycastSampleAttributeItem extends R.bpy_struct {/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Data Type Default: 'FLOAT'. */- get data_type(): H.Ref<E.AttributeDataType>;- set data_type(v: H.In<E.AttributeDataType>);+ get data_type(): H.Ref<E.AttributeDataType | (string & {})>;+ set data_type(v: H.In<E.AttributeDataType | (string & {})>);}/**@@ -2425,8 +2425,8 @@ export interface NodeSeparateBundleItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/**@@ -2438,8 +2438,8 @@ export interface NodeSeparateBundleItem extends R.bpy_struct {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);}/**@@ -3551,8 +3551,8 @@ export interface NodeStoreBundleItem extends R.NodeInternal {*/export interface NodeTree extends R.ID {/** Color tag of the node group which influences the header color Default: 'NONE'. */- get color_tag(): H.Ref<E.NodeColorTag>;- set color_tag(v: H.In<E.NodeColorTag>);+ get color_tag(): H.Ref<E.NodeColorTag | (string & {})>;+ set color_tag(v: H.In<E.NodeColorTag | (string & {})>);/** The width for newly created group nodes Range: 60 to 700. Default: 140. */get default_group_node_width(): H.Ref<number>;set default_group_node_width(v: H.In<number>);@@ -3933,8 +3933,8 @@ export interface NodeTreeInterfaceSocket extends R.NodeTreeInterfaceItem {get select(): H.Ref<boolean>;set select(v: H.In<boolean>);/** Attribute domain used by the geometry nodes modifier to create an attribute output Default: 'POINT'. */- get attribute_domain(): H.Ref<E.AttributeDomain>;- set attribute_domain(v: H.In<E.AttributeDomain>);+ get attribute_domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set attribute_domain(v: H.In<E.AttributeDomain | (string & {})>);/** The attribute name used by default when the node group is used by a geometry nodes modifier Default: "". */get default_attribute_name(): H.Ref<string>;set default_attribute_name(v: H.In<string>);@@ -3947,11 +3947,11 @@ export interface NodeTreeInterfaceSocket extends R.NodeTreeInterfaceItem {* - `LIST`: List (Socket expects a list)* - `SINGLE`: Single (Socket expects a single value)*/- get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">;- set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE">);+ get structure_type(): H.Ref<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>;+ set structure_type(v: H.In<"AUTO" | "DYNAMIC" | "FIELD" | "GRID" | "LIST" | "SINGLE" | (string & {})>);/** Input to use when the socket is unconnected. Requires "Hide Value". Default: 'VALUE'. */- get default_input(): H.Ref<E.NodeTreeInterfaceSocketDefaultInput>;- set default_input(v: H.In<E.NodeTreeInterfaceSocketDefaultInput>);+ get default_input(): H.Ref<E.NodeTreeInterfaceSocketDefaultInput | (string & {})>;+ set default_input(v: H.In<E.NodeTreeInterfaceSocketDefaultInput | (string & {})>);/** Name of the socket type Default: "". */get bl_socket_idname(): H.Ref<string>;set bl_socket_idname(v: H.In<string>);diff --git a/sdk/blender/src/gen/rna/O.ts b/sdk/blender/src/gen/rna/O.tsindex 272af300..157be8e0 100644--- a/sdk/blender/src/gen/rna/O.ts+++ b/sdk/blender/src/gen/rna/O.ts@@ -32,8 +32,8 @@ export interface Object extends R.ID {* - `VERTEX_3`: 3 Vertices* - `BONE`: Bone (The object is parented to a bone)*/- get parent_type(): H.Ref<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE">;- set parent_type(v: H.In<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE">);+ get parent_type(): H.Ref<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE" | (string & {})>;+ set parent_type(v: H.In<"OBJECT" | "ARMATURE" | "LATTICE" | "VERTEX" | "VERTEX_3" | "BONE" | (string & {})>);/** Indices of vertices in case of a vertex parenting relation Range: 0 to 2147483647. Default: (0, 0, 0). */get parent_vertices(): H.Arr<number>;set parent_vertices(v: H.In<readonly number[]>);@@ -274,8 +274,8 @@ export interface Object extends R.ID {* - `FACES`: Faces (Instantiate child objects on all faces)* - `COLLECTION`: Collection (Enable collection instancing)*/- get instance_type(): H.Ref<"NONE" | "VERTS" | "FACES" | "COLLECTION">;- set instance_type(v: H.In<"NONE" | "VERTS" | "FACES" | "COLLECTION">);+ get instance_type(): H.Ref<"NONE" | "VERTS" | "FACES" | "COLLECTION" | (string & {})>;+ set instance_type(v: H.In<"NONE" | "VERTS" | "FACES" | "COLLECTION" | (string & {})>);/** Rotate instance according to vertex normal Default: False. */get use_instance_vertices_rotation(): H.Ref<boolean>;set use_instance_vertices_rotation(v: H.In<boolean>);diff --git a/sdk/blender/src/gen/rna/P.ts b/sdk/blender/src/gen/rna/P.tsindex ea4655d6..b22b1ca0 100644--- a/sdk/blender/src/gen/rna/P.ts+++ b/sdk/blender/src/gen/rna/P.ts@@ -395,8 +395,8 @@ export interface ParticleDupliWeight extends R.bpy_struct {*/export interface ParticleEdit extends R.bpy_struct {/** Tool Default: 'COMB'. */- get tool(): H.Ref<E.ParticleEditTool>;- set tool(v: H.In<E.ParticleEditTool>);+ get tool(): H.Ref<E.ParticleEditTool | (string & {})>;+ set tool(v: H.In<E.ParticleEditTool | (string & {})>);/*** Particle select and display mode Default: 'PATH'.* - `PATH`: Path (Path edit mode)@@ -712,24 +712,24 @@ export interface ParticleSettings extends R.ID {* - `EMITTER`: Emitter* - `HAIR`: Hair*/- get type(): H.Ref<"EMITTER" | "HAIR">;- set type(v: H.In<"EMITTER" | "HAIR">);+ get type(): H.Ref<"EMITTER" | "HAIR" | (string & {})>;+ set type(v: H.In<"EMITTER" | "HAIR" | (string & {})>);/*** Where to emit particles from Default: 'FACE'.* - `VERT`: Vertices* - `FACE`: Faces* - `VOLUME`: Volume*/- get emit_from(): H.Ref<"VERT" | "FACE" | "VOLUME">;- set emit_from(v: H.In<"VERT" | "FACE" | "VOLUME">);+ get emit_from(): H.Ref<"VERT" | "FACE" | "VOLUME" | (string & {})>;+ set emit_from(v: H.In<"VERT" | "FACE" | "VOLUME" | (string & {})>);/*** How to distribute particles on selected element Default: 'JIT'.* - `JIT`: Jittered* - `RAND`: Random* - `GRID`: Grid*/- get distribution(): H.Ref<"JIT" | "RAND" | "GRID">;- set distribution(v: H.In<"JIT" | "RAND" | "GRID">);+ get distribution(): H.Ref<"JIT" | "RAND" | "GRID" | (string & {})>;+ set distribution(v: H.In<"JIT" | "RAND" | "GRID" | (string & {})>);/*** Particle physics type Default: 'NEWTON'.* - `NO`: None@@ -814,8 +814,8 @@ export interface ParticleSettings extends R.ID {* - `CROSS`: Cross* - `AXIS`: Axis*/- get display_method(): H.Ref<"NONE" | "RENDER" | "DOT" | "CIRC" | "CROSS" | "AXIS">;- set display_method(v: H.In<"NONE" | "RENDER" | "DOT" | "CIRC" | "CROSS" | "AXIS">);+ get display_method(): H.Ref<"NONE" | "RENDER" | "DOT" | "CIRC" | "CROSS" | "AXIS" | (string & {})>;+ set display_method(v: H.In<"NONE" | "RENDER" | "DOT" | "CIRC" | "CROSS" | "AXIS" | (string & {})>);/*** How particles are rendered Default: 'HALO'.* - `NONE`: None@@ -825,8 +825,8 @@ export interface ParticleSettings extends R.ID {* - `OBJECT`: Object* - `COLLECTION`: Collection*/- get render_type(): H.Ref<"NONE" | "HALO" | "LINE" | "PATH" | "OBJECT" | "COLLECTION">;- set render_type(v: H.In<"NONE" | "HALO" | "LINE" | "PATH" | "OBJECT" | "COLLECTION">);+ get render_type(): H.Ref<"NONE" | "HALO" | "LINE" | "PATH" | "OBJECT" | "COLLECTION" | (string & {})>;+ set render_type(v: H.In<"NONE" | "HALO" | "LINE" | "PATH" | "OBJECT" | "COLLECTION" | (string & {})>);/*** Display additional particle data as a color Default: 'MATERIAL'.* - `NONE`: None@@ -2408,8 +2408,8 @@ export interface PoseBoneConstraints {*/export interface Preferences extends R.bpy_struct {/** Preferences Default: 'INTERFACE'. */- get active_section(): H.Ref<E.PreferencesActiveSection>;- set active_section(v: H.In<E.PreferencesActiveSection>);+ get active_section(): H.Ref<E.PreferencesActiveSection | (string & {})>;+ set active_section(v: H.In<E.PreferencesActiveSection | (string & {})>);/** Application Template Default: "". */get app_template(): H.Ref<string>;set app_template(v: H.In<string>);@@ -3201,8 +3201,8 @@ export interface PreferencesSystem extends R.bpy_struct {* - `METAL`: Metal (Use Metal backend)* - `VULKAN`: Vulkan (Use Vulkan backend)*/- get gpu_backend(): H.Ref<"OPENGL" | "METAL" | "VULKAN">;- set gpu_backend(v: H.In<"OPENGL" | "METAL" | "VULKAN">);+ get gpu_backend(): H.Ref<"OPENGL" | "METAL" | "VULKAN" | (string & {})>;+ set gpu_backend(v: H.In<"OPENGL" | "METAL" | "VULKAN" | (string & {})>);/*** Preferred device to select during detection (requires restarting Blender for changes to take effect) Default: 'AUTO'.* - `AUTO`: Auto (Auto detect best GPU for running Blender)@@ -3519,8 +3519,8 @@ export interface PreferencesView extends R.bpy_struct {get font_path_ui_mono(): H.Ref<string>;set font_path_ui_mono(v: H.In<string>);/** Language used for translation Default: 'DEFAULT'. */- get language(): H.Ref<E.PreferencesViewLanguage>;- set language(v: H.In<E.PreferencesViewLanguage>);+ get language(): H.Ref<E.PreferencesViewLanguage | (string & {})>;+ set language(v: H.In<E.PreferencesViewLanguage | (string & {})>);/** Translate the descriptions when hovering UI elements (recommended) Default: True. */get use_translate_tooltips(): H.Ref<boolean>;set use_translate_tooltips(v: H.In<boolean>);@@ -3534,8 +3534,8 @@ export interface PreferencesView extends R.bpy_struct {get use_translate_new_dataname(): H.Ref<boolean>;set use_translate_new_dataname(v: H.In<boolean>);/** Format for displaying date strings Default: 'DEFAULT'. */- get date_format(): H.Ref<E.PreferencesViewDateFormat>;- set date_format(v: H.In<E.PreferencesViewDateFormat>);+ get date_format(): H.Ref<E.PreferencesViewDateFormat | (string & {})>;+ set date_format(v: H.In<E.PreferencesViewDateFormat | (string & {})>);/*** Format for displaying time strings Default: 'H24'.* - `H24`: 24-Hour (23:59) (Time format: 24-hour clock with colon, eg: 23:59)diff --git a/sdk/blender/src/gen/rna/R.ts b/sdk/blender/src/gen/rna/R.tsindex 053096dd..3f998b8a 100644--- a/sdk/blender/src/gen/rna/R.ts+++ b/sdk/blender/src/gen/rna/R.ts@@ -1363,8 +1363,8 @@ export interface RepeatItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;}diff --git a/sdk/blender/src/gen/rna/S.ts b/sdk/blender/src/gen/rna/S.tsindex daa35e5e..31b8d5be 100644--- a/sdk/blender/src/gen/rna/S.ts+++ b/sdk/blender/src/gen/rna/S.ts@@ -3187,8 +3187,8 @@ export interface ShaderNodeMix extends R.ShaderNode {* - `RGBA`: Color* - `ROTATION`: Rotation*/- get data_type(): H.Ref<"FLOAT" | "VECTOR" | "RGBA" | "ROTATION">;- set data_type(v: H.In<"FLOAT" | "VECTOR" | "RGBA" | "ROTATION">);+ get data_type(): H.Ref<"FLOAT" | "VECTOR" | "RGBA" | "ROTATION" | (string & {})>;+ set data_type(v: H.In<"FLOAT" | "VECTOR" | "RGBA" | "ROTATION" | (string & {})>);/*** Factor Mode Default: 'UNIFORM'.* - `UNIFORM`: Uniform (Use a single factor for all components)@@ -5604,8 +5604,8 @@ export interface ShrinkwrapConstraint extends R.Constraint {* - `LOCAL_WITH_PARENT`: Local With Parent (The constraint is applied relative to the rest pose local coordinate system of the bone, thus including the parent-induced transformation)* - `LOCAL`: Local Space (The constraint is applied relative to the local coordinate system of the object)*/- get project_axis_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">;- set project_axis_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL">);+ get project_axis_space(): H.Ref<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | (string & {})>;+ set project_axis_space(v: H.In<"WORLD" | "CUSTOM" | "POSE" | "LOCAL_WITH_PARENT" | "LOCAL" | (string & {})>);/** Limit the distance used for projection (zero disables) Range: 0 to inf. Default: 0.0. */get project_limit(): H.Ref<number>;set project_limit(v: H.In<number>);@@ -5771,13 +5771,13 @@ export interface SimulationStateItem extends R.bpy_struct {get name(): H.Ref<string>;set name(v: H.In<string>);/** Socket Type Default: 'FLOAT'. */- get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType>;- set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType>);+ get socket_type(): H.Ref<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>;+ set socket_type(v: H.In<E.ForeachGeometryElementGenerationItemSocketType | (string & {})>);/** Color of the corresponding socket type in the node editor Range: 0 to inf. Default: (0.0, 0.0, 0.0, 0.0). */get color(): H.Arr<number>;/** Domain where the field is captured if it is not already an attribute-field Default: 'POINT'. */- get attribute_domain(): H.Ref<E.AttributeDomain>;- set attribute_domain(v: H.In<E.AttributeDomain>);+ get attribute_domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set attribute_domain(v: H.In<E.AttributeDomain | (string & {})>);}/** bpy.types.SimulationZoneViewerPathElem */@@ -6806,8 +6806,8 @@ export interface SpaceImageEditor extends R.Space {get show_annotation(): H.Ref<boolean>;set show_annotation(v: H.In<boolean>);/** Channels of the image to display Default: 'COLOR'. */- get display_channels(): H.Ref<E.SpaceImageEditorDisplayChannels>;- set display_channels(v: H.In<E.SpaceImageEditorDisplayChannels>);+ get display_channels(): H.Ref<E.SpaceImageEditorDisplayChannels | (string & {})>;+ set display_channels(v: H.In<E.SpaceImageEditorDisplayChannels | (string & {})>);/** Display the image in Stereo 3D Default: False. */get show_stereo_3d(): H.Ref<boolean>;set show_stereo_3d(v: H.In<boolean>);@@ -6844,8 +6844,8 @@ export interface SpaceImageEditor extends R.Space {* - `MEDIAN_POINT`: Median Point (Pivot around the median point of selected objects)* - `ACTIVE_ELEMENT`: Active Element (Pivot around active object)*/- get pivot_point(): H.Ref<"BOUNDING_BOX_CENTER" | "CURSOR" | "INDIVIDUAL_ORIGINS" | "MEDIAN_POINT" | "ACTIVE_ELEMENT">;- set pivot_point(v: H.In<"BOUNDING_BOX_CENTER" | "CURSOR" | "INDIVIDUAL_ORIGINS" | "MEDIAN_POINT" | "ACTIVE_ELEMENT">);+ get pivot_point(): H.Ref<"BOUNDING_BOX_CENTER" | "CURSOR" | "INDIVIDUAL_ORIGINS" | "MEDIAN_POINT" | "ACTIVE_ELEMENT" | (string & {})>;+ set pivot_point(v: H.In<"BOUNDING_BOX_CENTER" | "CURSOR" | "INDIVIDUAL_ORIGINS" | "MEDIAN_POINT" | "ACTIVE_ELEMENT" | (string & {})>);/** Annotation data for this space */get annotation(): H.Ptr<R.Annotation>;set annotation(v: R.Annotation | null);@@ -7006,8 +7006,8 @@ export interface SpaceNodeEditor extends R.Space {* - `ShaderNodeTree`: Shader Editor (Edit materials, lights, and world shading using nodes)* - `TextureNodeTree`: Texture Node Editor (Edit textures using nodes)*/- get tree_type(): H.Ref<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree">;- set tree_type(v: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree">);+ get tree_type(): H.Ref<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree" | (string & {})>;+ set tree_type(v: H.In<"GeometryNodeTree" | "CompositorNodeTree" | "ShaderNodeTree" | "TextureNodeTree" | (string & {})>);/*** Type of data to take texture from Default: 'WORLD'.* - `WORLD`: World (Edit texture nodes from World)@@ -7343,8 +7343,8 @@ export interface SpacePreferences extends R.Space {*/export interface SpaceProperties extends R.Space {/** Default: 'RENDER'. */- get context(): H.Ref<E.SpacePropertiesContext>;- set context(v: H.In<E.SpacePropertiesContext>);+ get context(): H.Ref<E.SpacePropertiesContext | (string & {})>;+ set context(v: H.In<E.SpacePropertiesContext | (string & {})>);/** Tool Default: False. */get show_properties_tool(): H.Ref<boolean>;set show_properties_tool(v: H.In<boolean>);@@ -7609,8 +7609,8 @@ export interface SpaceSpreadsheet extends R.Space {get geometry_component_type(): H.Ref<"MESH" | "POINTCLOUD" | "CURVE" | "INSTANCES" | "GREASEPENCIL" | "VOLUME">;set geometry_component_type(v: H.In<"MESH" | "POINTCLOUD" | "CURVE" | "INSTANCES" | "GREASEPENCIL" | "VOLUME">);/** Attribute domain to display Default: 'POINT'. */- get attribute_domain(): H.Ref<E.AttributeDomain>;- set attribute_domain(v: H.In<E.AttributeDomain>);+ get attribute_domain(): H.Ref<E.AttributeDomain | (string & {})>;+ set attribute_domain(v: H.In<E.AttributeDomain | (string & {})>);/*** Object Evaluation State Default: 'EVALUATED'.* - `EVALUATED`: Evaluated (Use data from fully or partially evaluated object)@@ -7930,15 +7930,15 @@ export interface SpaceView3D extends R.Space {* - `LEFT_EYE`: Left Eye* - `RIGHT_EYE`: Right Eye*/- get stereo_3d_eye(): H.Ref<"LEFT_EYE" | "RIGHT_EYE">;+ get stereo_3d_eye(): H.Ref<"LEFT_EYE" | "RIGHT_EYE" | (string & {})>;/*** Camera Default: 'S3D'.* - `LEFT`: Left* - `RIGHT`: Right* - `S3D`: 3D*/- get stereo_3d_camera(): H.Ref<"LEFT" | "RIGHT" | "S3D">;- set stereo_3d_camera(v: H.In<"LEFT" | "RIGHT" | "S3D">);+ get stereo_3d_camera(): H.Ref<"LEFT" | "RIGHT" | "S3D" | (string & {})>;+ set stereo_3d_camera(v: H.In<"LEFT" | "RIGHT" | "S3D" | (string & {})>);/** Show the left and right cameras Default: False. */get show_stereo_3d_cameras(): H.Ref<boolean>;set show_stereo_3d_cameras(v: H.In<boolean>);diff --git a/sdk/blender/src/gen/rna/T.ts b/sdk/blender/src/gen/rna/T.tsindex 1d50c196..e84d3b66 100644--- a/sdk/blender/src/gen/rna/T.ts+++ b/sdk/blender/src/gen/rna/T.ts@@ -3929,8 +3929,8 @@ export interface TransformOrientation extends R.bpy_struct {/** bpy.types.TransformOrientationSlot */export interface TransformOrientationSlot extends R.bpy_struct {/** Transformation orientation Default: 'GLOBAL'. */- get type(): H.Ref<E.TransformOrientationSlotType>;- set type(v: H.In<E.TransformOrientationSlotType>);+ get type(): H.Ref<E.TransformOrientationSlotType | (string & {})>;+ set type(v: H.In<E.TransformOrientationSlotType | (string & {})>);/** Current Transform Orientation */get custom_orientation(): H.Ptr<R.TransformOrientation>;/** Use scene orientation instead of a custom setting Default: False. */diff --git a/sdk/blender/src/gen/rna/U.ts b/sdk/blender/src/gen/rna/U.tsindex 5244565b..0eea3770 100644--- a/sdk/blender/src/gen/rna/U.ts+++ b/sdk/blender/src/gen/rna/U.ts@@ -3947,8 +3947,8 @@ export interface UserAssetLibrary extends R.bpy_struct {* - `APPEND_REUSE`: Append (Reuse Data) (Import the assets as copied data-block while avoiding multiple copies of nested, typically heavy data. For example the textures of a material asset, or the mesh of an object asset, don't have to be copied every time this asset is imported. The instances of the asset share the data instead.)* - `PACK`: Pack (Import the asset as linked data-block, and pack it in the current file (ensures that it remains unchanged in case the library data is modified, is not available anymore, etc.))*/- get import_method(): H.Ref<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK">;- set import_method(v: H.In<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK">);+ get import_method(): H.Ref<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>;+ set import_method(v: H.In<"LINK" | "APPEND" | "APPEND_REUSE" | "PACK" | (string & {})>);/** Use relative path when linking assets from this asset library Default: True. */get use_relative_path(): H.Ref<boolean>;set use_relative_path(v: H.In<boolean>);diff --git a/sdk/blender/src/gen/rna/V.ts b/sdk/blender/src/gen/rna/V.tsindex ec90e3c4..53b89992 100644--- a/sdk/blender/src/gen/rna/V.ts+++ b/sdk/blender/src/gen/rna/V.ts@@ -885,8 +885,8 @@ export interface View3DShading extends R.bpy_struct {* - `MATERIAL`: Material Preview (Preview materials using predefined environment lights)* - `RENDERED`: Rendered (Preview the final scene using the active render engine)*/- get type(): H.Ref<"WIREFRAME" | "SOLID" | "MATERIAL" | "RENDERED">;- set type(v: H.In<"WIREFRAME" | "SOLID" | "MATERIAL" | "RENDERED">);+ get type(): H.Ref<"WIREFRAME" | "SOLID" | "MATERIAL" | "RENDERED" | (string & {})>;+ set type(v: H.In<"WIREFRAME" | "SOLID" | "MATERIAL" | "RENDERED" | (string & {})>);/*** Lighting Method for Solid/Texture Viewport Shading Default: 'STUDIO'.* - `STUDIO`: Studio (Display using studio lighting)@@ -1023,8 +1023,8 @@ export interface View3DShading extends R.bpy_struct {get shadow_intensity(): H.Ref<number>;set shadow_intensity(v: H.In<number>);/** Render Pass to show in the viewport Default: 'COMBINED'. */- get render_pass(): H.Ref<E.View3DShadingRenderPass>;- set render_pass(v: H.In<E.View3DShadingRenderPass>);+ get render_pass(): H.Ref<E.View3DShadingRenderPass | (string & {})>;+ set render_pass(v: H.In<E.View3DShadingRenderPass | (string & {})>);/** Name of the active Shader AOV Default: "". */get aov_name(): H.Ref<string>;set aov_name(v: H.In<string>);diff --git a/sdk/blender/src/gen/rna/W.ts b/sdk/blender/src/gen/rna/W.tsindex e178682c..901c4f02 100644--- a/sdk/blender/src/gen/rna/W.ts+++ b/sdk/blender/src/gen/rna/W.ts@@ -1011,7 +1011,7 @@ export interface WindowManager extends R.ID {keymap?: R.KeyMap | null;/** Anchor the popover to the active button. */from_active_button?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Display a popover populated by *draw_func*.* @param draw_func Function to populate the popover layout.@@ -1025,7 +1025,7 @@ export interface WindowManager extends R.ID {keymap?: R.KeyMap | null;/** Anchor the popover to the active button. */from_active_button?: H.In<boolean>;- }): any;+ }): H.Ref<void>;/*** Display a popup menu populated by *draw_func*.* @param draw_func Function to populate the menu layout.@@ -1035,7 +1035,7 @@ export interface WindowManager extends R.ID {title?: H.In<string>;/** Icon shown next to the title. */icon?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Display a popup menu populated by *draw_func*.* @param draw_func Function to populate the menu layout.@@ -1047,7 +1047,7 @@ export interface WindowManager extends R.ID {title?: H.In<string>;/** Icon shown next to the title. */icon?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Display a pie menu populated by *draw_func* at the location of *event*.* @param event Event used to position the pie menu.@@ -1058,7 +1058,7 @@ export interface WindowManager extends R.ID {title?: H.In<string>;/** Icon shown next to the title. */icon?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Display a pie menu populated by *draw_func* at the location of *event*.* @param event Event used to position the pie menu.@@ -1073,7 +1073,7 @@ export interface WindowManager extends R.ID {title?: H.In<string>;/** Icon shown next to the title. */icon?: H.In<string>;- }): any;+ }): H.Ref<void>;/*** Add a new draw cursor handler to this space type.* It will be called every time the cursor for the specified region in the space type will be drawn.@@ -1299,8 +1299,8 @@ export interface WorkSpace extends R.ID {* - `ONLINE_ESSENTIALS`: Online Essentials (Show additional building blocks and utilities available online)* - `CUSTOM`: Custom (Show assets from the asset libraries configured in the Preferences)*/- get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">;- set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM">);+ get asset_library_reference(): H.Ref<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>;+ set asset_library_reference(v: H.In<"ALL" | "LOCAL" | "ESSENTIALS" | "ONLINE_ESSENTIALS" | "CUSTOM" | (string & {})>);/** Sequencer Scene */get sequencer_scene(): H.Ptr<R.Scene>;set sequencer_scene(v: R.Scene | null);@@ -1328,7 +1328,7 @@ export interface WorkSpace extends R.ID {* When text is a function, this will be called with the (header, context) arguments.* @param text Status text to display, ``None`` to clear, or a callable to install as the status bar's draw function.*/- status_text_set(text: any): any;+ status_text_set(text: any): H.Ref<void>;/*** Set the status text or None to clear,* When text is a function, this will be called with the (header, context) arguments.@@ -1340,7 +1340,7 @@ export interface WorkSpace extends R.ID {* to install as the status bar's draw function.*/text: any;- }): any;+ }): H.Ref<void>;}/** bpy.types.WorkSpaceTool */diff --git a/sdk/blender/test/typing.ts b/sdk/blender/test/typing.tsindex bfeed6cd..41fb7b2f 100644--- a/sdk/blender/test/typing.ts+++ b/sdk/blender/test/typing.ts@@ -51,6 +51,11 @@ export async function script(): Promise<void> {scene.frame_end = 48;scene.render.resolution_x = 1920;void [loc, x, name, kind, world, e, dims, finished, n];+ // BL34: an enum Blender works out at the time takes what it would then: a 2D curve's fill_mode is NONE, BACK, FRONT or+ // BOTH, though the static items are the 3D ones (FULL, BACK, FRONT, HALF)+ const curve = bpy.data.curves.new("outline", "CURVE");+ curve.dimensions = "2D";+ curve.fill_mode = "BOTH";// @ts-expect-error Object.type is read-onlyob.type = "MESH";diff --git a/sdk/blender/tools/dump.py b/sdk/blender/tools/dump.pyindex 7ce935e8..d60d8e2d 100644--- a/sdk/blender/tools/dump.py+++ b/sdk/blender/tools/dump.py@@ -3,10 +3,13 @@# bpy.utils, bpy.path, bpy.app, bpy.props, bpy_extras, ...) with their docstrings, whose `:type:` lines gen.ts reads.# Python because it runs inside Blender:# blender --background --factory-startup --python tools/dump.py -- OUT.json+import astimport bpyimport inspectimport json+import reimport sys+import textwrapimport typesimport _rna_info as rna_info@@ -84,14 +87,47 @@ def sig(obj):return None+def value(v):+ """A data member's repr, so two dumps of one Blender are equal: a set's items sorted (Python orders them by a hash+ seeded per run), and no memory address (an object's repr carries one)."""+ r = "%s({%s})" % (type(v).__name__, ", ".join(sorted(map(repr, v)))) if isinstance(v, (set, frozenset)) else repr(v)+ return re.sub(r" at 0x[0-9a-fA-F]+", "", r)[:200]++def doc(obj):d = getattr(obj, "__doc__", None)return inspect.cleandoc(d) if isinstance(d, str) else ""+def returns_none(fn):+ """True when a function written in Python returns no value anywhere (no `return X`, no yield), so it gives None,+ which its docstring often doesn't say (register, draw, Object.shade_smooth). False for a C function: no source."""+ try:+ top = ast.parse(textwrap.dedent(inspect.getsource(fn))).body[0]+ except (OSError, TypeError, SyntaxError, IndexError):+ return False+ if not isinstance(top, (ast.FunctionDef, ast.AsyncFunctionDef)):+ return False+ todo = list(top.body)+ while todo:+ node = todo.pop()+ if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef, ast.Lambda, ast.ClassDef)):+ continue # a nested function's returns are its own+ if isinstance(node, (ast.Yield, ast.YieldFrom)):+ return False+ if isinstance(node, ast.Return) and node.value is not None:+ if not (isinstance(node.value, ast.Constant) and node.value.value is None):+ return False+ todo.extend(ast.iter_child_nodes(node))+ return True++def pyfunc(name, f):fn = getattr(f, "__func__", f)- return {"id": name, "sig": sig(fn), "doc": doc(fn), "static": isinstance(f, (staticmethod, classmethod))}+ d = {"id": name, "sig": sig(fn), "doc": doc(fn), "static": isinstance(f, (staticmethod, classmethod))}+ if returns_none(fn):+ d["none"] = True+ return ddef struct(s):@@ -136,19 +172,24 @@ def member(name, obj, depth):m = {"id": n, "kind": kind, "doc": doc(a)}if kind == "method":m["sig"] = sig(getattr(a, "__func__", a))+ if returns_none(getattr(a, "__func__", a)):+ m["none"] = Trueif isinstance(a, (staticmethod, classmethod)) or type(a).__name__ == "classmethod_descriptor":m["static"] = Trueif kind == "data":m["type"] = type(a).__name__- m["value"] = repr(a)[:200]+ m["value"] = value(a)if kind == "property" and isinstance(a, property):m["ro"] = a.fset is Noneown.append(m)bases = [b.__module__ + "." + b.__qualname__ for b in obj.__bases__ if b is not object]return {"id": name, "kind": "class", "doc": doc(obj), "sig": sig(obj), "bases": bases, "members": own}if callable(obj):- return {"id": name, "kind": "function", "doc": doc(obj), "sig": sig(obj)}- return {"id": name, "kind": "data", "type": type(obj).__name__, "value": repr(obj)[:200], "doc": ""}+ f = {"id": name, "kind": "function", "doc": doc(obj), "sig": sig(obj)}+ if returns_none(obj):+ f["none"] = True+ return f+ return {"id": name, "kind": "data", "type": type(obj).__name__, "value": value(obj), "doc": ""}def members(mod, depth=0):@@ -181,7 +222,7 @@ def app():if callable(v):out.append({"id": name, "kind": "function", "doc": doc(v), "sig": sig(v)})else:- out.append({"id": name, "kind": "data", "type": type(v).__name__, "value": repr(v)[:200], "doc": d})+ out.append({"id": name, "kind": "data", "type": type(v).__name__, "value": value(v), "doc": d})return outdiff --git a/sdk/blender/tools/gen/dump.ts b/sdk/blender/tools/gen/dump.tsindex 5a05f949..d1114977 100644--- a/sdk/blender/tools/gen/dump.ts+++ b/sdk/blender/tools/gen/dump.ts@@ -21,6 +21,8 @@ export interface Prop {items?: Item[];flag?: boolean;dynamic?: boolean;+ /** BL34: items Blender works out at the time, by an item function (tools/itemf.json): its static items or any string */+ itemf?: boolean;min?: number;max?: number;default?: string | unknown[];@@ -41,6 +43,8 @@ export interface PyMember {doc: string;sig?: string | null;static?: boolean;+ /** written in Python and returns no value anywhere (dump.py returns_none): it gives None */+ none?: boolean;ro?: boolean;type?: string;value?: string;@@ -57,7 +61,7 @@ export interface Struct {funcs: Func[];nested?: string;pyprops?: { id: string; doc: string; ro: boolean }[];- pyfuncs?: { id: string; sig: string | null; doc: string; static: boolean }[];+ pyfuncs?: { id: string; sig: string | null; doc: string; static: boolean; none?: boolean }[];cfuncs?: { id: string; doc: string }[];}diff --git a/sdk/blender/tools/gen/itemf.ts b/sdk/blender/tools/gen/itemf.tsnew file mode 100644index 00000000..df455d04--- /dev/null+++ b/sdk/blender/tools/gen/itemf.ts@@ -0,0 +1,75 @@+// BL34: the enums whose items Blender works out at the time, from an item function (Curve.fill_mode: the 3D items on+// a 3D curve, NONE and BOTH on a 2D one). Python can't tell them apart: with no context, Blender gives an enum's static+// items and never calls its item function. Blender's own source does: makesrna attaches one with+// RNA_def_property_enum_funcs(prop, get, set, "rna_..._itemf"). This reads those calls and writes tools/itemf.json, a list+// of `Struct.prop` and `Struct.func(param)`, which gen/main.ts types as their static items or any string.+// bun tools/gen/itemf.ts MAKESRNA_INTERN_DIR VERSION OUT.json (tools/itemf.sh fetches the dir for a Blender)+// Each call is placed on the struct being defined where it is. A helper that defines properties on a struct its caller+// passes in takes its caller's struct: a define("Base", "Struct", helper) entry, or the struct current where it's called.+// Helpers whose struct is a name built at run time (the node socket interfaces) stay unresolved and are listed: their+// enums have one item or none in the dump, which gen already types as any string.+import { readdirSync, readFileSync, writeFileSync } from "node:fs";+import { join } from "node:path";++const [dir, version, out] = process.argv.slice(2);+if (!dir || !version || !out) throw new Error("usage: bun tools/gen/itemf.ts MAKESRNA_INTERN_DIR VERSION OUT.json");++const strip = (s: string) => s.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");+const files = readdirSync(dir).filter((f) => /^rna_.*\.cc$/.test(f)).map((f) => strip(readFileSync(join(dir, f), "utf8")));++// in order, per file: a C function's start, a struct, an RNA function, an enum property or parameter, and its funcs call+const EV = new RegExp(+ [+ String.raw`^(?!\s)(?:[\w:<>]+[\s*]+)+(\w+)\s*\(`, // a function at column 0, whatever it returns+ String.raw`RNA_def_struct\(\s*\w+\s*,\s*"(\w+)"`,+ String.raw`RNA_def_function\(\s*\w+\s*,\s*"(\w+)"`,+ String.raw`RNA_def_(?:property\(\s*(\w+)\s*,\s*"(\w+)"\s*,\s*PROP_ENUM|enum(?:_flag)?\(\s*(\w+)\s*,\s*"(\w+)")`,+ String.raw`RNA_def_property_enum_funcs\(\s*\w+\s*,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)`,+ ].join("|"),+ "gm",+);++const found = new Set<string>();+const pending = new Map<string, string[]>(); // helper -> what it defines with an item function, struct left out+for (const src of files) {+ let fn = "", struct: string | null = null, func: string | null = null, prop: string | null = null;+ for (const m of src.matchAll(EV)) {+ if (m[1]) [fn, struct, func, prop] = [m[1], null, null, null];+ else if (m[2]) [struct, func] = [m[2], null];+ else if (m[3]) func = m[3];+ else if (m[5] || m[7]) {+ const owner = m[4] ?? m[6];+ const id = m[5] ?? m[7];+ // a parameter when it's defined on the RNA function (`func`), else a property of the struct+ prop = owner === "func" && func ? `${func}(${id})` : id;+ } else if (m[8] && prop && !/^(nullptr|NULL)$/.test(m[8].trim())) {+ if (struct) found.add(`${struct}.${prop}`);+ else pending.set(fn, [...(pending.get(fn) ?? []), prop]);+ }+ }+}++// helpers placed on their callers' structs+const helpers = [...pending.keys()];+const resolved = new Set<string>();+if (helpers.length) {+ const alt = helpers.join("|");+ const CALL = new RegExp(+ String.raw`^(?!\s)(?:[\w:<>]+[\s*]+)+\w+\s*\(|RNA_def_struct\(\s*\w+\s*,\s*"(\w+)"|define\(\s*"\w+"\s*,\s*"(\w+)"\s*,\s*(${alt})\s*\)|\b(${alt})\s*\(`,+ "gm",+ );+ for (const src of files) {+ let struct: string | null = null;+ for (const m of src.matchAll(CALL)) {+ const [at, helper] = m[2] ? [m[2], m[3]] : m[4] ? [struct, m[4]] : [null, null];+ if (m[1]) struct = m[1];+ else if (!m[2] && !m[4]) struct = null;+ if (!at || !helper) continue;+ for (const p of pending.get(helper)!) found.add(`${at}.${p}`);+ resolved.add(helper);+ }+ }+}+const unresolved = helpers.filter((h) => !resolved.has(h)).map((h) => ({ helper: h, props: pending.get(h)! }));+writeFileSync(out, JSON.stringify({ blender: version, itemf: [...found].sort(), unresolved }, null, 1) + "\n");+console.log(`itemf: Blender ${version}: ${found.size} enums with an item function, ${unresolved.length} helpers unresolved -> ${out}`);diff --git a/sdk/blender/tools/gen/main.ts b/sdk/blender/tools/gen/main.tsindex 442e6c27..fcc333fc 100644--- a/sdk/blender/tools/gen/main.ts+++ b/sdk/blender/tools/gen/main.ts@@ -18,6 +18,14 @@ const IMPORTS = `import type * as H from "../../types";\nimport type * as M fromconst dumpPath = process.argv[2];if (!dumpPath) throw new Error("usage: bun tools/gen/main.ts DUMP.json");const d = JSON.parse(readFileSync(dumpPath, "utf8")) as Dump;+// BL34: the enums whose items Blender works out at the time (tools/itemf.json, read from its source by tools/itemf.sh)+const itemf = JSON.parse(readFileSync(join(dirname(new URL(import.meta.url).pathname), "../itemf.json"), "utf8")) as { blender: string; itemf: string[] };+if (itemf.blender !== d.blender) console.warn(`gen: tools/itemf.json is Blender ${itemf.blender}'s, the dump ${d.blender}'s: run tools/itemf.sh ${d.blender}`);+const atTheTime = new Set(itemf.itemf);+for (const s of d.structs) {+ for (const p of s.props) if (p.type === "enum" && atTheTime.has(`${s.id}.${p.id}`)) p.itemf = true;+ for (const f of s.funcs) for (const a of f.args) if (a.type === "enum" && atTheTime.has(`${s.id}.${f.id}(${a.id})`)) a.itemf = true;+}const root = join(dirname(new URL(import.meta.url).pathname), "../../src/gen");rmSync(root, { recursive: true, force: true });const files = new Map<string, string>();diff --git a/sdk/blender/tools/gen/pymod.ts b/sdk/blender/tools/gen/pymod.tsindex eed690cb..3a12e5ce 100644--- a/sdk/blender/tools/gen/pymod.ts+++ b/sdk/blender/tools/gen/pymod.ts@@ -50,11 +50,11 @@ function emitClass(c: PyMember, mod: string, n: Names, classes: Set<string>): stcontinue;}if (m.id === "__call__") {- inst.push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", true));+ inst.push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", true, m.none));continue;}if (m.kind === "property") inst.push(propertyMember(m, n, self, mod));- else if (m.kind === "method") (m.static ? stat : inst).push(pyCallable(m.id, m.doc, m.sig, n, self, mod));+ else if (m.kind === "method") (m.static ? stat : inst).push(pyCallable(m.id, m.doc, m.sig, n, self, mod, " ", false, m.none));else if (m.kind === "data") stat.push(dataMember(m));}const d = readDoc(c.doc);@@ -82,7 +82,7 @@ export function emitModule(mod: string, data: { doc: string; members: PyMember[]const api: string[] = [];const decls: string[] = [];for (const m of data.members) {- if (m.kind === "function") api.push(mod === "bmesh.ops" ? bmeshOp(m) : pyCallable(m.id, m.doc, m.sig, n, undefined, mod));+ if (m.kind === "function") api.push(mod === "bmesh.ops" ? bmeshOp(m) : pyCallable(m.id, m.doc, m.sig, n, undefined, mod, " ", false, m.none));else if (m.kind === "class") {api.push(`${jsdoc(readDoc(m.doc).text.split("\n")[0])} readonly ${key(m.id)}: ${m.id}Class;`);decls.push(emitClass(m, mod, n, classes));@@ -105,7 +105,7 @@ export function emitBpyStruct(d: Dump, n: Names): string {for (const m of d.bpy_struct.members ?? []) {if (m.id.startsWith("__")) continue;if (m.kind === "property") body.push(propertyMember(m, n, "R.bpy_struct", "bpy.types"));- else if (m.kind === "method") body.push(pyCallable(m.id, m.doc, m.sig, n, "R.bpy_struct", "bpy.types"));+ else if (m.kind === "method") body.push(pyCallable(m.id, m.doc, m.sig, n, "R.bpy_struct", "bpy.types", " ", false, m.none));}return `${jsdoc("What every Blender struct (bpy.types.bpy_struct) has.", "")}export interface bpy_struct {\n${body.join("\n")}\n}\n`;}diff --git a/sdk/blender/tools/gen/rna.ts b/sdk/blender/tools/gen/rna.tsindex 43635806..d6474181 100644--- a/sdk/blender/tools/gen/rna.ts+++ b/sdk/blender/tools/gen/rna.ts@@ -41,7 +41,8 @@ export function propTy(p: Prop, n: Names, owner: string, role: "in" | "out"): Tycase "string":return { ts: "string", kind: "val" };case "enum": {- const u = p.dynamic || !p.items?.length ? "string" : n.enumType(p.items, owner, p.id);+ // an item function's enum (BL34) takes its static items or whatever else Blender gives at the time+ const u = p.dynamic || !p.items?.length ? "string" : n.enumType(p.items, owner, p.id) + (p.itemf ? " | (string & {})" : "");return { ts: p.flag ? `Set<${u}>` : u, kind: "val" };}case "pointer": {@@ -130,15 +131,15 @@ function pyMembers(s: Struct, n: Names, skip: Set<string>): string[] {const get = `${jsdoc(d.text)} get ${key(p.id)}(): ${direct(t)};`;out.push(p.ro ? get : `${get}\n set ${key(p.id)}(v: ${d.type ? input(pyType(d.type, { names: n, role: "in", self })) : "any"});`);}- for (const f of [...(s.pyfuncs ?? []), ...(s.cfuncs ?? []).map((c) => ({ ...c, sig: null, static: false }))]) {+ for (const f of [...(s.pyfuncs ?? []), ...(s.cfuncs ?? []).map((c) => ({ ...c, sig: null, static: false, none: false }))]) {if (skip.has(f.id)) continue;- out.push(pyCallable(f.id, f.doc, f.sig, n, self));+ out.push(pyCallable(f.id, f.doc, f.sig, n, self, undefined, " ", false, f.none));}return out;}/** A Python function or method's overloads, from its docstring (its `.. method::` line, :param:, :type:, :rtype:). */-export function pyCallable(name: string, doc: string, sig: string | null | undefined, n: Names, self?: string, module?: string, indent = " ", call = false): string {+export function pyCallable(name: string, doc: string, sig: string | null | undefined, n: Names, self?: string, module?: string, indent = " ", call = false, none = false): string {const d = readDoc(doc);const s = d.sig ?? (sig ? sig : null);const where = (role: "in" | "out") => ({ names: n, role, self, module });@@ -149,7 +150,8 @@ export function pyCallable(name: string, doc: string, sig: string | null | undefreturn { name: p.name, ty, opt: p.def !== undefined, mode: p.mode, rest: p.rest, doc: info?.doc };}): [{ name: "args", ty: "any", opt: true, mode: "pos", rest: "args" }, { name: "kwargs", ty: "any", opt: true, mode: "kw", rest: "kwargs" }];- const ret = d.rtype ? direct(pyType(d.rtype, where("out"))) : "any";+ // no :rtype:, and Python source that returns no value anywhere (none): None, as Python gives+ const ret = d.rtype ? direct(pyType(d.rtype, where("out"))) : none ? "H.Ref<void>" : "any";const text = [d.text, d.returns ? `@returns ${d.returns}` : ""].filter(Boolean).join("\n");return overloads(name, ps, ret, text, indent, call);}diff --git a/sdk/blender/tools/itemf.json b/sdk/blender/tools/itemf.jsonnew file mode 100644index 00000000..ecbbf0e5--- /dev/null+++ b/sdk/blender/tools/itemf.json@@ -0,0 +1,203 @@+{+ "blender": "5.2.1",+ "itemf": [+ "ActionSlot.target_id_type",+ "AnnotationLayers.active_note",+ "Area.ui_type",+ "AssetMetaData.preferred_import_method",+ "AssetShelf.asset_library_reference",+ "Attribute.domain",+ "BlendDataNodeTrees.new(type)",+ "BlendFileColorspace.working_space",+ "Brush.direction",+ "Brush.stroke_method",+ "BrushTextureSlot.map_mode",+ "CollectionExports.new(type)",+ "ColorManagedDisplaySettings.display_device",+ "ColorManagedInputColorspaceSettings.name",+ "ColorManagedSequencerColorspaceSettings.name",+ "ColorManagedViewSettings.look",+ "ColorManagedViewSettings.view_transform",+ "CompositorNodeConvertColorSpace.from_color_space",+ "CompositorNodeConvertColorSpace.to_color_space",+ "CompositorNodeCryptomatteV2.layer_name",+ "CompositorNodeRLayers.layer",+ "Constraint.owner_space",+ "Constraint.target_space",+ "Curve.fill_mode",+ "DataTransferModifier.layers_uv_select_dst",+ "DataTransferModifier.layers_uv_select_src",+ "DataTransferModifier.layers_vcol_loop_select_dst",+ "DataTransferModifier.layers_vcol_loop_select_src",+ "DataTransferModifier.layers_vcol_vert_select_dst",+ "DataTransferModifier.layers_vcol_vert_select_src",+ "DataTransferModifier.layers_vgroup_select_dst",+ "DataTransferModifier.layers_vgroup_select_src",+ "DataTransferModifier.mix_mode",+ "DynamicPaintSurface.surface_type",+ "EnumProperty.default",+ "EnumProperty.default_flag",+ "FieldSettings.shape",+ "FileAssetSelectParams.asset_library_reference",+ "FileAssetSelectParams.import_method",+ "FileSelectParams.display_type",+ "FileSelectParams.recursion_level",+ "FileSelectParams.sort_method",+ "FluidDomainSettings.cache_data_format",+ "FluidDomainSettings.cache_mesh_format",+ "FluidDomainSettings.cache_noise_format",+ "FluidDomainSettings.cache_particle_format",+ "FluidDomainSettings.color_ramp_field",+ "FluidDomainSettings.openvdb_data_depth",+ "FluidFlowSettings.flow_source",+ "ForeachGeometryElementGenerationItem.socket_type",+ "ForeachGeometryElementInputItem.socket_type",+ "ForeachGeometryElementMainItem.socket_type",+ "FunctionNodeInputMenu.value",+ "FunctionNodeRandomValue.data_type",+ "GeometryNodeCaptureAttribute.domain",+ "GeometryNodeClosureToListItem.socket_type",+ "GeometryNodeClosureToListItem.structure_type",+ "GeometryNodeFieldToGrid.data_type",+ "GeometryNodeFieldToGridItem.data_type",+ "GeometryNodeFieldToGridItem.socket_type",+ "GeometryNodeFieldToListItem.socket_type",+ "GeometryNodeSampleCurve.data_type",+ "GeometryNodeSampleIndex.data_type",+ "GeometryNodeSampleIndex.domain",+ "GreasePencilBuildModifier.time_mode",+ "Image.source",+ "ImageFormatSettings.color_depth",+ "ImageFormatSettings.color_mode",+ "ImageFormatSettings.exr_codec",+ "ImageFormatSettings.file_format",+ "ImageFormatSettings.media_type",+ "ImageFormatSettings.views_format",+ "KeyMapItem.propvalue",+ "KeyMapItem.type",+ "NodeClosureInputItem.socket_type",+ "NodeClosureInputItem.structure_type",+ "NodeClosureOutputItem.socket_type",+ "NodeClosureOutputItem.structure_type",+ "NodeCombineBundleItem.socket_type",+ "NodeCombineBundleItem.structure_type",+ "NodeCompositorFileOutputItem.socket_type",+ "NodeEvaluateClosureInputItem.socket_type",+ "NodeEvaluateClosureInputItem.structure_type",+ "NodeEvaluateClosureOutputItem.socket_type",+ "NodeEvaluateClosureOutputItem.structure_type",+ "NodeFunctionFormatStringItem.socket_type",+ "NodeGeometryBakeItem.attribute_domain",+ "NodeGeometryBakeItem.socket_type",+ "NodeGeometryCaptureAttributeItem.data_type",+ "NodeGeometryCaptureAttributeItem.socket_type",+ "NodeGeometryViewerItem.socket_type",+ "NodeImplicitConversion.data_type",+ "NodeRaycastSampleAttributeItem.data_type",+ "NodeRaycastSampleAttributeItem.socket_type",+ "NodeSeparateBundleItem.socket_type",+ "NodeSeparateBundleItem.structure_type",+ "NodeTree.color_tag",+ "NodeTreeInterface.new_socket(socket_type)",+ "NodeTreeInterfaceSocket.attribute_domain",+ "NodeTreeInterfaceSocket.default_input",+ "NodeTreeInterfaceSocket.socket_type",+ "NodeTreeInterfaceSocket.structure_type",+ "Object.instance_type",+ "Object.parent_type",+ "ParticleEdit.tool",+ "ParticleSettings.display_method",+ "ParticleSettings.distribution",+ "ParticleSettings.emit_from",+ "ParticleSettings.material_slot",+ "ParticleSettings.render_type",+ "ParticleSettings.type",+ "Preferences.active_section",+ "PreferencesSystem.audio_device",+ "PreferencesSystem.gpu_backend",+ "PreferencesSystem.gpu_preferred_device",+ "PreferencesView.date_format",+ "PreferencesView.language",+ "Property.tags",+ "Region.active_panel_category",+ "RenderSettings.engine",+ "RepeatItem.socket_type",+ "ShaderNodeMix.data_type",+ "ShrinkwrapConstraint.project_axis_space",+ "SimulationStateItem.attribute_domain",+ "SimulationStateItem.socket_type",+ "SpaceImageEditor.display_channels",+ "SpaceImageEditor.pivot_point",+ "SpaceNodeEditor.node_tree_sub_type",+ "SpaceNodeEditor.tree_type",+ "SpaceProperties.context",+ "SpaceSpreadsheet.attribute_domain",+ "SpaceView3D.stereo_3d_camera",+ "SpaceView3D.stereo_3d_eye",+ "TextureSlot.output_node",+ "TransformOrientationSlot.type",+ "UnitSettings.length_unit",+ "UnitSettings.mass_unit",+ "UnitSettings.temperature_unit",+ "UnitSettings.time_unit",+ "UserAssetLibrary.import_method",+ "View3DShading.render_pass",+ "View3DShading.studio_light",+ "View3DShading.type",+ "WorkSpace.asset_library_reference",+ "WorkSpaceTool.brush_type",+ "WorkSpaceTool.mode",+ "WorkSpaceTool.setup(brush_type)"+ ],+ "unresolved": [+ {+ "helper": "rna_def_node_socket_interface_float",+ "props": [+ "subtype"+ ]+ },+ {+ "helper": "rna_def_node_socket_interface_int",+ "props": [+ "subtype"+ ]+ },+ {+ "helper": "rna_def_node_socket_interface_vector",+ "props": [+ "subtype"+ ]+ },+ {+ "helper": "rna_def_node_socket_interface_int_vector",+ "props": [+ "subtype"+ ]+ },+ {+ "helper": "rna_def_node_socket_interface_string",+ "props": [+ "subtype"+ ]+ },+ {+ "helper": "rna_def_node_socket_menu",+ "props": [+ "default_value"+ ]+ },+ {+ "helper": "rna_def_node_socket_interface_menu",+ "props": [+ "default_value"+ ]+ },+ {+ "helper": "def_node_image_user",+ "props": [+ "layer",+ "view"+ ]+ }+ ]+}diff --git a/sdk/blender/tools/itemf.sh b/sdk/blender/tools/itemf.shnew file mode 100755index 00000000..7797792d--- /dev/null+++ b/sdk/blender/tools/itemf.sh@@ -0,0 +1,13 @@+#!/usr/bin/env bash+# Rewrites tools/itemf.json (BL34): the enums whose items Blender works out at the time, read from Blender's own+# makesrna source at the version gen.sh dumps (a sparse, blob-less clone of that tag: about 13 MB). Run it when the+# Blender that gen.sh reads moves to a new version, then gen.sh.+# tools/itemf.sh VERSION (e.g. 5.2.1: the tag v5.2.1 of github.com/blender/blender)+set -euo pipefail+here="$(cd "$(dirname "$0")" && pwd)"+version="${1:?usage: tools/itemf.sh VERSION (e.g. 5.2.1)}"+src="$(mktemp -d)"+trap 'rm -rf "$src"' EXIT+git clone -q --depth 1 --filter=blob:none --sparse --branch "v$version" https://github.com/blender/blender.git "$src" 2>/dev/null+git -C "$src" sparse-checkout set source/blender/makesrna/intern+bun "$here/gen/itemf.ts" "$src/source/blender/makesrna/intern" "$version" "$here/itemf.json"