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.

9.9 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.sound */
export interface Ops {
  /**
   * Update the audio animation cache
   *
   * bpy.ops.sound.bake_animation
   */
  bake_animation: H.Operator<{}>;
  /**
   * Mix the scene's audio to a sound file
   *
   * bpy.ops.sound.mixdown
   */
  mixdown: H.Operator<{
    /** Path to file Default: "". */
    filepath?: H.In<string>;
    /** Check and warn on overwriting existing files Default: True. */
    check_existing?: H.In<boolean>;
    /** Filter .blend files Default: False. */
    filter_blender?: H.In<boolean>;
    /** Filter backup .blend files Default: False. */
    filter_backup?: H.In<boolean>;
    /** Filter image files Default: False. */
    filter_image?: H.In<boolean>;
    /** Filter movie files Default: False. */
    filter_movie?: H.In<boolean>;
    /** Filter Python files Default: False. */
    filter_python?: H.In<boolean>;
    /** Filter font files Default: False. */
    filter_font?: H.In<boolean>;
    /** Filter sound files Default: True. */
    filter_sound?: H.In<boolean>;
    /** Filter text files Default: False. */
    filter_text?: H.In<boolean>;
    /** Filter archive files Default: False. */
    filter_archive?: H.In<boolean>;
    /** Filter btx files Default: False. */
    filter_btx?: H.In<boolean>;
    /** Filter Alembic files Default: False. */
    filter_alembic?: H.In<boolean>;
    /** Filter USD files Default: False. */
    filter_usd?: H.In<boolean>;
    /** Filter OBJ files Default: False. */
    filter_obj?: H.In<boolean>;
    /** Filter OpenVDB volume files Default: False. */
    filter_volume?: H.In<boolean>;
    /** Filter folders Default: True. */
    filter_folder?: H.In<boolean>;
    /** Filter Blender IDs Default: False. */
    filter_blenlib?: H.In<boolean>;
    /** The setting for the file browser mode to load a .blend file, a library or a special file Default: 9. */
    filemode?: H.In<number>;
    /** Select the file relative to the blend file Default: True. */
    relative_path?: H.In<boolean>;
    /**
     * Display Type Default: 'DEFAULT'.
     * - `DEFAULT`: Default (Automatically determine display type for files)
     * - `LIST_VERTICAL`: Short List (Display files as short list)
     * - `LIST_HORIZONTAL`: Long List (Display files as a detailed list)
     * - `THUMBNAIL`: Thumbnails (Display files as thumbnails)
     */
    display_type?: H.In<"DEFAULT" | "LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">;
    /** File sorting mode Default: ''. */
    sort_method?: H.In<string>;
    /** Sample accuracy, important for animation data (the lower the value, the more accurate) Default: 1024. */
    accuracy?: H.In<number>;
    /** File format Default: 'FLAC'. */
    container?: H.In<E.SoundMixdownContainer>;
    /** Audio Codec Default: 'FLAC'. */
    codec?: H.In<E.SoundMixdownCodec>;
    /** Audio channel count Default: 'STEREO'. */
    channels?: H.In<E.SoundMixdownChannels>;
    /**
     * Sample format Default: 'S16'.
     * - `U8`: U8 (8-bit unsigned)
     * - `S16`: S16 (16-bit signed)
     * - `S24`: S24 (24-bit signed)
     * - `S32`: S32 (32-bit signed)
     * - `F32`: F32 (32-bit floating-point)
     * - `F64`: F64 (64-bit floating-point)
     */
    format?: H.In<"U8" | "S16" | "S24" | "S32" | "F32" | "F64">;
    /** Sample rate in samples/s Default: 48000. */
    mixrate?: H.In<number>;
    /** Bitrate in kbit/s Default: 192. */
    bitrate?: H.In<number>;
    /** Each channel will be rendered into a mono file Default: False. */
    split_channels?: H.In<boolean>;
  }>;
  /**
   * Load a sound file
   *
   * bpy.ops.sound.open
   */
  open: H.Operator<{
    /** Path to file Default: "". */
    filepath?: H.In<string>;
    /** Collapse the region displaying the operator settings Default: True. */
    hide_props_region?: H.In<boolean>;
    /** Check and warn on overwriting existing files Default: False. */
    check_existing?: H.In<boolean>;
    /** Filter .blend files Default: False. */
    filter_blender?: H.In<boolean>;
    /** Filter backup .blend files Default: False. */
    filter_backup?: H.In<boolean>;
    /** Filter image files Default: False. */
    filter_image?: H.In<boolean>;
    /** Filter movie files Default: True. */
    filter_movie?: H.In<boolean>;
    /** Filter Python files Default: False. */
    filter_python?: H.In<boolean>;
    /** Filter font files Default: False. */
    filter_font?: H.In<boolean>;
    /** Filter sound files Default: True. */
    filter_sound?: H.In<boolean>;
    /** Filter text files Default: False. */
    filter_text?: H.In<boolean>;
    /** Filter archive files Default: False. */
    filter_archive?: H.In<boolean>;
    /** Filter btx files Default: False. */
    filter_btx?: H.In<boolean>;
    /** Filter Alembic files Default: False. */
    filter_alembic?: H.In<boolean>;
    /** Filter USD files Default: False. */
    filter_usd?: H.In<boolean>;
    /** Filter OBJ files Default: False. */
    filter_obj?: H.In<boolean>;
    /** Filter OpenVDB volume files Default: False. */
    filter_volume?: H.In<boolean>;
    /** Filter folders Default: True. */
    filter_folder?: H.In<boolean>;
    /** Filter Blender IDs Default: False. */
    filter_blenlib?: H.In<boolean>;
    /** The setting for the file browser mode to load a .blend file, a library or a special file Default: 9. */
    filemode?: H.In<number>;
    /** Select the file relative to the blend file Default: True. */
    relative_path?: H.In<boolean>;
    /** Enable Multi-View Default: False. */
    show_multiview?: H.In<boolean>;
    /** Use Multi-View Default: False. */
    use_multiview?: H.In<boolean>;
    /**
     * Display Type Default: 'DEFAULT'.
     * - `DEFAULT`: Default (Automatically determine display type for files)
     * - `LIST_VERTICAL`: Short List (Display files as short list)
     * - `LIST_HORIZONTAL`: Long List (Display files as a detailed list)
     * - `THUMBNAIL`: Thumbnails (Display files as thumbnails)
     */
    display_type?: H.In<"DEFAULT" | "LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">;
    /** File sorting mode Default: ''. */
    sort_method?: H.In<string>;
    /** Cache the sound in memory Default: False. */
    cache?: H.In<boolean>;
    /** Merge all the sound's channels into one Default: False. */
    mono?: H.In<boolean>;
  }>;
  /**
   * Load a sound file as mono
   *
   * bpy.ops.sound.open_mono
   */
  open_mono: H.Operator<{
    /** Path to file Default: "". */
    filepath?: H.In<string>;
    /** Collapse the region displaying the operator settings Default: True. */
    hide_props_region?: H.In<boolean>;
    /** Check and warn on overwriting existing files Default: False. */
    check_existing?: H.In<boolean>;
    /** Filter .blend files Default: False. */
    filter_blender?: H.In<boolean>;
    /** Filter backup .blend files Default: False. */
    filter_backup?: H.In<boolean>;
    /** Filter image files Default: False. */
    filter_image?: H.In<boolean>;
    /** Filter movie files Default: True. */
    filter_movie?: H.In<boolean>;
    /** Filter Python files Default: False. */
    filter_python?: H.In<boolean>;
    /** Filter font files Default: False. */
    filter_font?: H.In<boolean>;
    /** Filter sound files Default: True. */
    filter_sound?: H.In<boolean>;
    /** Filter text files Default: False. */
    filter_text?: H.In<boolean>;
    /** Filter archive files Default: False. */
    filter_archive?: H.In<boolean>;
    /** Filter btx files Default: False. */
    filter_btx?: H.In<boolean>;
    /** Filter Alembic files Default: False. */
    filter_alembic?: H.In<boolean>;
    /** Filter USD files Default: False. */
    filter_usd?: H.In<boolean>;
    /** Filter OBJ files Default: False. */
    filter_obj?: H.In<boolean>;
    /** Filter OpenVDB volume files Default: False. */
    filter_volume?: H.In<boolean>;
    /** Filter folders Default: True. */
    filter_folder?: H.In<boolean>;
    /** Filter Blender IDs Default: False. */
    filter_blenlib?: H.In<boolean>;
    /** The setting for the file browser mode to load a .blend file, a library or a special file Default: 9. */
    filemode?: H.In<number>;
    /** Select the file relative to the blend file Default: True. */
    relative_path?: H.In<boolean>;
    /** Enable Multi-View Default: False. */
    show_multiview?: H.In<boolean>;
    /** Use Multi-View Default: False. */
    use_multiview?: H.In<boolean>;
    /**
     * Display Type Default: 'DEFAULT'.
     * - `DEFAULT`: Default (Automatically determine display type for files)
     * - `LIST_VERTICAL`: Short List (Display files as short list)
     * - `LIST_HORIZONTAL`: Long List (Display files as a detailed list)
     * - `THUMBNAIL`: Thumbnails (Display files as thumbnails)
     */
    display_type?: H.In<"DEFAULT" | "LIST_VERTICAL" | "LIST_HORIZONTAL" | "THUMBNAIL">;
    /** File sorting mode Default: ''. */
    sort_method?: H.In<string>;
    /** Cache the sound in memory Default: False. */
    cache?: H.In<boolean>;
    /** Mixdown the sound to mono Default: True. */
    mono?: H.In<boolean>;
  }>;
  /**
   * Pack the sound into the current blend file
   *
   * bpy.ops.sound.pack
   */
  pack: H.Operator<{}>;
  /**
   * Unpack the sound to the samples filename
   *
   * bpy.ops.sound.unpack
   */
  unpack: H.Operator<{
    /**
     * How to unpack Default: 'USE_LOCAL'.
     * - `REMOVE`: Remove Pack
     * - `USE_LOCAL`: Use Local File
     * - `WRITE_LOCAL`: Write Local File (overwrite existing)
     * - `USE_ORIGINAL`: Use Original File
     * - `WRITE_ORIGINAL`: Write Original File (overwrite existing)
     */
    method?: H.In<"REMOVE" | "USE_LOCAL" | "WRITE_LOCAL" | "USE_ORIGINAL" | "WRITE_ORIGINAL">;
    /** Sound data-block name to unpack Default: "". */
    id?: H.In<string>;
  }>;
  /**
   * Update animation flags
   *
   * bpy.ops.sound.update_animation_flags
   */
  update_animation_flags: H.Operator<{}>;
}