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.

4.8 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.console */
export interface Ops {
  /**
   * Evaluate the namespace up until the cursor and give a list of options or complete the name if there is only one
   *
   * bpy.ops.console.autocomplete
   */
  autocomplete: H.Operator<{}>;
  /**
   * Print a message when the terminal initializes
   *
   * bpy.ops.console.banner
   */
  banner: H.Operator<{}>;
  /**
   * Clear text by type
   *
   * bpy.ops.console.clear
   */
  clear: H.Operator<{
    /** Clear the scrollback history Default: True. */
    scrollback?: H.In<boolean>;
    /** Clear the command history Default: False. */
    history?: H.In<boolean>;
  }>;
  /**
   * Clear the line and store in history
   *
   * bpy.ops.console.clear_line
   */
  clear_line: H.Operator<{}>;
  /**
   * Copy selected text to clipboard
   *
   * bpy.ops.console.copy
   */
  copy: H.Operator<{
    /** Whether to delete the selection after copying Default: False. */
    delete?: H.In<boolean>;
  }>;
  /**
   * Copy the console contents for use in a script
   *
   * bpy.ops.console.copy_as_script
   */
  copy_as_script: H.Operator<{}>;
  /**
   * Delete text by cursor position
   *
   * bpy.ops.console.delete
   */
  delete: H.Operator<{
    /**
     * Which part of the text to delete Default: 'NEXT_CHARACTER'.
     * - `NEXT_CHARACTER`: Next Character
     * - `PREVIOUS_CHARACTER`: Previous Character
     * - `NEXT_WORD`: Next Word
     * - `PREVIOUS_WORD`: Previous Word
     */
    type?: H.In<"NEXT_CHARACTER" | "PREVIOUS_CHARACTER" | "NEXT_WORD" | "PREVIOUS_WORD">;
  }>;
  /**
   * Execute the current console line as a Python expression
   *
   * bpy.ops.console.execute
   */
  execute: H.Operator<{
    /** Default: False. */
    interactive?: H.In<boolean>;
  }>;
  /**
   * Append history at cursor position
   *
   * bpy.ops.console.history_append
   */
  history_append: H.Operator<{
    /** Text to insert at the cursor position Default: "". */
    text?: H.In<string>;
    /** The index of the cursor Default: 0. */
    current_character?: H.In<number>;
    /** Remove duplicate items in the history Default: False. */
    remove_duplicates?: H.In<boolean>;
  }>;
  /**
   * Cycle through history
   *
   * bpy.ops.console.history_cycle
   */
  history_cycle: H.Operator<{
    /** Reverse cycle history Default: False. */
    reverse?: H.In<boolean>;
  }>;
  /**
   * Add 4 spaces at line beginning
   *
   * bpy.ops.console.indent
   */
  indent: H.Operator<{}>;
  /**
   * Indent selected text or autocomplete
   *
   * bpy.ops.console.indent_or_autocomplete
   */
  indent_or_autocomplete: H.Operator<{}>;
  /**
   * Insert text at cursor position
   *
   * bpy.ops.console.insert
   */
  insert: H.Operator<{
    /** Text to insert at the cursor position Default: "". */
    text?: H.In<string>;
  }>;
  /**
   * Set the current language for this console
   *
   * bpy.ops.console.language
   */
  language: H.Operator<{
    /** Language Default: "". */
    language?: H.In<string>;
  }>;
  /**
   * Move cursor position
   *
   * bpy.ops.console.move
   */
  move: H.Operator<{
    /**
     * Where to move cursor to Default: 'LINE_BEGIN'.
     * - `LINE_BEGIN`: Line Begin
     * - `LINE_END`: Line End
     * - `PREVIOUS_CHARACTER`: Previous Character
     * - `NEXT_CHARACTER`: Next Character
     * - `PREVIOUS_WORD`: Previous Word
     * - `NEXT_WORD`: Next Word
     */
    type?: H.In<"LINE_BEGIN" | "LINE_END" | "PREVIOUS_CHARACTER" | "NEXT_CHARACTER" | "PREVIOUS_WORD" | "NEXT_WORD">;
    /** Whether to select while moving Default: False. */
    select?: H.In<boolean>;
  }>;
  /**
   * Paste text from clipboard
   *
   * bpy.ops.console.paste
   */
  paste: H.Operator<{
    /** Paste text selected elsewhere rather than copied (X11/Wayland only) Default: False. */
    selection?: H.In<boolean>;
  }>;
  /**
   * Append scrollback text by type
   *
   * bpy.ops.console.scrollback_append
   */
  scrollback_append: H.Operator<{
    /** Text to insert at the cursor position Default: "". */
    text?: H.In<string>;
    /**
     * Console output type Default: 'OUTPUT'.
     * - `OUTPUT`: Output
     * - `INPUT`: Input
     * - `INFO`: Information
     * - `ERROR`: Error
     */
    type?: H.In<"OUTPUT" | "INPUT" | "INFO" | "ERROR">;
  }>;
  /**
   * Select all the text
   *
   * bpy.ops.console.select_all
   */
  select_all: H.Operator<{}>;
  /**
   * Set the console selection
   *
   * bpy.ops.console.select_set
   */
  select_set: H.Operator<{}>;
  /**
   * Select word at cursor position
   *
   * bpy.ops.console.select_word
   */
  select_word: H.Operator<{}>;
  /**
   * Delete 4 spaces from line beginning
   *
   * bpy.ops.console.unindent
   */
  unindent: H.Operator<{}>;
}