Skip to content

armgit / raea

Public Imported from GitHub
0

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.

8.3 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";

/** bpy.ops.import_scene */
export interface Ops {
  /**
   * Load a FBX file
   *
   * bpy.ops.import_scene.fbx
   */
  fbx: H.Operator<{
    /** Filepath used for importing the file Default: "". */
    filepath?: H.In<string>;
    /** Default: "". */
    directory?: H.In<string>;
    /** Default: "*.fbx". */
    filter_glob?: H.In<string>;
    /** File Path */
    files?: H.In<readonly Record<string, any>[]>;
    /**
     * Import options categories Default: 'MAIN'.
     * - `MAIN`: Main (Main basic settings)
     * - `ARMATURE`: Armatures (Armature-related settings)
     */
    ui_tab?: H.In<"MAIN" | "ARMATURE">;
    /** Specify orientation and scale, instead of using embedded data in FBX file Default: False. */
    use_manual_orientation?: H.In<boolean>;
    /** Scale Default: 1.0. */
    global_scale?: H.In<number>;
    /** Bake space transform into object data, avoids getting unwanted rotations to objects when target space is not aligned with Blender's space (WARNING! experimental option, use at own risk, known to be broken with armatures/animations) Default: False. */
    bake_space_transform?: H.In<boolean>;
    /** Import custom normals, if available (otherwise Blender will recompute them) Default: True. */
    use_custom_normals?: H.In<boolean>;
    /**
     * Import vertex color attributes Default: 'SRGB'.
     * - `NONE`: None (Do not import color attributes)
     * - `SRGB`: sRGB (Expect file colors in sRGB color space)
     * - `LINEAR`: Linear (Expect file colors in linear color space)
     */
    colors_type?: H.In<"NONE" | "SRGB" | "LINEAR">;
    /** Search subdirs for any associated images (WARNING: may be slow) Default: True. */
    use_image_search?: H.In<boolean>;
    /** Treat materials with alpha as decals (no shadow casting) Default: False. */
    use_alpha_decals?: H.In<boolean>;
    /** Displace geometry of alpha meshes Default: 0.0. */
    decal_offset?: H.In<number>;
    /** Import FBX animation Default: True. */
    use_anim?: H.In<boolean>;
    /** Offset to apply to animation during import, in frames Default: 1.0. */
    anim_offset?: H.In<number>;
    /** Import FBX subdivision information as subdivision surface modifiers Default: False. */
    use_subsurf?: H.In<boolean>;
    /** Import user properties as custom properties Default: True. */
    use_custom_props?: H.In<boolean>;
    /** Store enumeration values as strings Default: True. */
    use_custom_props_enum_as_string?: H.In<boolean>;
    /** Ignore the last bone at the end of each chain (used to mark the length of the previous bone) Default: False. */
    ignore_leaf_bones?: H.In<boolean>;
    /** Force connection of children bones to their parent, even if their computed head/tail positions do not match (can be useful with pure-joints-type armatures) Default: False. */
    force_connect_children?: H.In<boolean>;
    /** Try to align the major bone axis with the bone children Default: False. */
    automatic_bone_orientation?: H.In<boolean>;
    /**
     * Primary Bone Axis Default: 'Y'.
     * - `X`: X Axis
     * - `Y`: Y Axis
     * - `Z`: Z Axis
     * - `-X`: -X Axis
     * - `-Y`: -Y Axis
     * - `-Z`: -Z Axis
     */
    primary_bone_axis?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /**
     * Secondary Bone Axis Default: 'X'.
     * - `X`: X Axis
     * - `Y`: Y Axis
     * - `Z`: Z Axis
     * - `-X`: -X Axis
     * - `-Y`: -Y Axis
     * - `-Z`: -Z Axis
     */
    secondary_bone_axis?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /** Use pre/post rotation from FBX transform (you may have to disable that in some cases) Default: True. */
    use_prepost_rot?: H.In<boolean>;
    /**
     * Behavior when the name of an imported material conflicts with an existing material Default: 'MAKE_UNIQUE'.
     * - `MAKE_UNIQUE`: Make Unique (Import each FBX material as a unique Blender material)
     * - `REFERENCE_EXISTING`: Reference Existing (If a material with the same name already exists, reference that instead of importing)
     */
    mtl_name_collision_mode?: H.In<"MAKE_UNIQUE" | "REFERENCE_EXISTING">;
    /**
     * Forward Default: '-Z'.
     * - `X`: X Forward
     * - `Y`: Y Forward
     * - `Z`: Z Forward
     * - `-X`: -X Forward
     * - `-Y`: -Y Forward
     * - `-Z`: -Z Forward
     */
    axis_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /**
     * Up Default: 'Y'.
     * - `X`: X Up
     * - `Y`: Y Up
     * - `Z`: Z Up
     * - `-X`: -X Up
     * - `-Y`: -Y Up
     * - `-Z`: -Z Up
     */
    axis_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
  }>;
  /**
   * Load a glTF 2.0 file
   *
   * bpy.ops.import_scene.gltf
   */
  gltf: H.Operator<{
    /** Filepath used for importing the file Default: "". */
    filepath?: H.In<string>;
    /**
     * Optional backwards compatibility for non-standard render engines. Applies to lights Default: 'SPEC'.
     * - `SPEC`: Standard (Physically-based glTF lighting units (cd, lx, nt))
     * - `COMPAT`: Unitless (Non-physical, unitless lighting. Useful when exposure controls are not available)
     * - `RAW`: Raw (Deprecated) (Blender lighting strengths with no conversion)
     */
    export_import_convert_lighting_mode?: H.In<"SPEC" | "COMPAT" | "RAW">;
    /** Default: "*.glb;*.gltf". */
    filter_glob?: H.In<string>;
    /** Default: "". */
    directory?: H.In<string>;
    /** File Path */
    files?: H.In<readonly Record<string, any>[]>;
    /** Log Level Default: 0. */
    loglevel?: H.In<number>;
    /** Pack all images into .blend file Default: True. */
    import_pack_images?: H.In<boolean>;
    /** The glTF format requires discontinuous normals, UVs, and other vertex attributes to be stored as separate vertices, as required for rendering on typical graphics hardware. This option attempts to combine co-located vertices where possible. Currently cannot combine verts with different normals Default: False. */
    merge_vertices?: H.In<boolean>;
    /**
     * How normals are computed during import Default: 'NORMALS'.
     * - `NORMALS`: Use Normal Data
     * - `FLAT`: Flat Shading
     * - `SMOOTH`: Smooth Shading
     */
    import_shading?: H.In<"NORMALS" | "FLAT" | "SMOOTH">;
    /**
     * Heuristic for placing bones. Tries to make bones pretty Default: 'BLENDER'.
     * - `BLENDER`: Blender (best for import/export round trip) (Good for re-importing glTFs exported from Blender, and re-exporting glTFs to glTFs after Blender editing. Bone tips are placed on their local +Y axis (in glTF space))
     * - `TEMPERANCE`: Temperance (average) (Decent all-around strategy. A bone with one child has its tip placed on the local axis closest to its child)
     * - `FORTUNE`: Fortune (may look better, less accurate) (Might look better than Temperance, but also might have errors. A bone with one child has its tip placed at its child's root. Non-uniform scalings may get messed up though, so beware)
     */
    bone_heuristic?: H.In<"BLENDER" | "TEMPERANCE" | "FORTUNE">;
    /** Do not create bone shapes Default: False. */
    disable_bone_shape?: H.In<boolean>;
    /** Scale factor for bone shapes Default: 1.0. */
    bone_shape_scale_factor?: H.In<number>;
    /** Try to guess the original bind pose for skinned meshes from the inverse bind matrices. When off, use default/rest pose as bind pose Default: True. */
    guess_original_bind_pose?: H.In<boolean>;
    /** If a texture exists in WebP format, loads the WebP texture instead of the fallback PNG/JPEG one Default: False. */
    import_webp_texture?: H.In<boolean>;
    /** Import materials & Images not assigned to any mesh Default: False. */
    import_unused_materials?: H.In<boolean>;
    /** Select created objects at the end of the import Default: True. */
    import_select_created_objects?: H.In<boolean>;
    /** Import scene extras as custom properties. Existing custom properties will be overwritten Default: True. */
    import_scene_extras?: H.In<boolean>;
    /** Import the scene as a collection Default: True. */
    import_scene_as_collection?: H.In<boolean>;
    /** Merge material slots when possible Default: True. */
    import_merge_material_slots?: H.In<boolean>;
    /** Import mesh with only POINTS primitives as Point Cloud objects Default: False. */
    import_point_as_pointcloud?: H.In<boolean>;
  }>;
}