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.2 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.ui */
export interface Ops {
  /**
   * Set this property's current value as the new default
   *
   * bpy.ops.ui.assign_default_button
   */
  assign_default_button: H.Operator<{}>;
  /**
   * Presses active button
   *
   * bpy.ops.ui.button_execute
   */
  button_execute: H.Operator<{
    /** Skip Depressed Default: False. */
    skip_depressed?: H.In<boolean>;
  }>;
  /**
   * Unsets the text of the active button
   *
   * bpy.ops.ui.button_string_clear
   */
  button_string_clear: H.Operator<{}>;
  /**
   * Create a new driver with this property as input, and copy it to the internal clipboard. Use Paste Driver to add it to the target property, or Paste Driver Variables to extend an existing driver
   *
   * bpy.ops.ui.copy_as_driver_button
   */
  copy_as_driver_button: H.Operator<{}>;
  /**
   * Copy the RNA data path for this property to the clipboard
   *
   * bpy.ops.ui.copy_data_path_button
   */
  copy_data_path_button: H.Operator<{
    /** Copy full data path Default: False. */
    full_path?: H.In<boolean>;
  }>;
  /**
   * Copy the property's driver from the active item to the same property of all selected items, if the same property exists
   *
   * bpy.ops.ui.copy_driver_to_selected_button
   */
  copy_driver_to_selected_button: H.Operator<{
    /** Copy to selected the drivers of all elements of the array Default: False. */
    all?: H.In<boolean>;
  }>;
  /**
   * Copy the Python command matching this button
   *
   * bpy.ops.ui.copy_python_command_button
   */
  copy_python_command_button: H.Operator<{}>;
  /**
   * Copy the property's value from the active item to the same property of all selected items if the same property exists
   *
   * bpy.ops.ui.copy_to_selected_button
   */
  copy_to_selected_button: H.Operator<{
    /** Copy to selected all elements of the array Default: True. */
    all?: H.In<boolean>;
  }>;
  /**
   * Drop colors to buttons
   *
   * bpy.ops.ui.drop_color
   */
  drop_color: H.Operator<{
    /** Source color Default: (0.0, 0.0, 0.0, 0.0). */
    color?: H.In<readonly number[]>;
    /** The source color is gamma corrected Default: False. */
    gamma?: H.In<boolean>;
    /** The source color contains an Alpha component Default: False. */
    has_alpha?: H.In<boolean>;
  }>;
  /**
   * Drag material to Material slots in Properties
   *
   * bpy.ops.ui.drop_material
   */
  drop_material: H.Operator<{
    /** Session UID of the data-block to use by the operator Default: 0. */
    session_uid?: H.In<number>;
  }>;
  /**
   * Drop name to button
   *
   * bpy.ops.ui.drop_name
   */
  drop_name: H.Operator<{
    /** The string value to drop into the button Default: "". */
    string?: H.In<string>;
  }>;
  /**
   * Edit UI source code of the active button
   *
   * bpy.ops.ui.editsource
   */
  editsource: H.Operator<{}>;
  /**
   * Sample a bone from the 3D View or the Outliner to store in a property
   *
   * bpy.ops.ui.eyedropper_bone
   */
  eyedropper_bone: H.Operator<{}>;
  /**
   * Sample a color from the Blender window to store in a property
   *
   * bpy.ops.ui.eyedropper_color
   */
  eyedropper_color: H.Operator<{
    /** Path of property to be set with the depth Default: "". */
    prop_data_path?: H.In<string>;
  }>;
  /**
   * Sample a color band
   *
   * bpy.ops.ui.eyedropper_colorramp
   */
  eyedropper_colorramp: H.Operator<{}>;
  /**
   * Point-sample a color band
   *
   * bpy.ops.ui.eyedropper_colorramp_point
   */
  eyedropper_colorramp_point: H.Operator<{}>;
  /**
   * Sample depth from the 3D view
   *
   * bpy.ops.ui.eyedropper_depth
   */
  eyedropper_depth: H.Operator<{
    /** Path of property to be set with the depth Default: "". */
    prop_data_path?: H.In<string>;
  }>;
  /**
   * Pick a property to use as a driver target
   *
   * bpy.ops.ui.eyedropper_driver
   */
  eyedropper_driver: H.Operator<{
    /**
     * Method used to match target and driven properties Default: 'SINGLE_MANY'.
     * - `SINGLE_MANY`: All from Target (Drive all components of this property using the target picked)
     * - `DIRECT`: Single from Target (Drive this component of this property using the target picked)
     * - `MATCH`: Match Indices (Create drivers for each pair of corresponding elements)
     * - `NONE_ALL`: Manually Create Later (Create drivers for all properties without assigning any targets yet)
     * - `NONE_SINGLE`: Manually Create Later (Single) (Create driver for this property only and without assigning any targets yet)
     */
    mapping_type?: H.In<"SINGLE_MANY" | "DIRECT" | "MATCH" | "NONE_ALL" | "NONE_SINGLE">;
  }>;
  /**
   * Sample a color from the Blender Window and create Grease Pencil material
   *
   * bpy.ops.ui.eyedropper_grease_pencil_color
   */
  eyedropper_grease_pencil_color: H.Operator<{
    /**
     * Mode Default: 'MATERIAL'.
     * - `MATERIAL`: Material
     * - `PALETTE`: Palette
     * - `BRUSH`: Brush
     */
    mode?: H.In<"MATERIAL" | "PALETTE" | "BRUSH">;
    /**
     * Material Mode Default: 'STROKE'.
     * - `STROKE`: Stroke
     * - `FILL`: Fill
     * - `BOTH`: Both
     */
    material_mode?: H.In<"STROKE" | "FILL" | "BOTH">;
  }>;
  /**
   * Sample a data-block from the 3D View to store in a property
   *
   * bpy.ops.ui.eyedropper_id
   */
  eyedropper_id: H.Operator<{}>;
  /**
   * Switch to the target object or bone
   *
   * bpy.ops.ui.jump_to_target_button
   */
  jump_to_target_button: H.Operator<{}>;
  /**
   * Start entering filter text for the list in focus
   *
   * bpy.ops.ui.list_start_filter
   */
  list_start_filter: H.Operator<{}>;
  /**
   * Create an override operation
   *
   * bpy.ops.ui.override_add_button
   */
  override_add_button: H.Operator<{
    /** Add overrides for all elements of the array Default: True. */
    all?: H.In<boolean>;
  }>;
  /**
   * Delete the selected local override and relink its usages to the linked data-block if possible, else reset it and mark it as non editable
   *
   * bpy.ops.ui.override_idtemplate_clear
   */
  override_idtemplate_clear: H.Operator<{}>;
  /**
   * Create a local override of the selected linked data-block, and its hierarchy of dependencies
   *
   * bpy.ops.ui.override_idtemplate_make
   */
  override_idtemplate_make: H.Operator<{}>;
  /**
   * Reset the selected local override to its linked reference values
   *
   * bpy.ops.ui.override_idtemplate_reset
   */
  override_idtemplate_reset: H.Operator<{}>;
  /**
   * Remove an override operation
   *
   * bpy.ops.ui.override_remove_button
   */
  override_remove_button: H.Operator<{
    /** Reset to default values all elements of the array Default: True. */
    all?: H.In<boolean>;
  }>;
  /**
   * Force a full reload of UI translation
   *
   * bpy.ops.ui.reloadtranslation
   */
  reloadtranslation: H.Operator<{}>;
  /**
   * Reset this property's value to its default value
   *
   * bpy.ops.ui.reset_default_button
   */
  reset_default_button: H.Operator<{
    /** Reset to default values all elements of the array Default: True. */
    all?: H.In<boolean>;
  }>;
  /**
   * Clear the property and use default or generated value in operators
   *
   * bpy.ops.ui.unset_property_button
   */
  unset_property_button: H.Operator<{}>;
  /**
   * Drag and drop onto a data-set or item within the data-set
   *
   * bpy.ops.ui.view_drop
   */
  view_drop: H.Operator<{}>;
  /**
   * Delete selected list item
   *
   * bpy.ops.ui.view_item_delete
   */
  view_item_delete: H.Operator<{}>;
  /**
   * Bring active item into focus by scrolling the view
   *
   * bpy.ops.ui.view_item_focus
   */
  view_item_focus: H.Operator<{}>;
  /**
   * Walk and select view items in given direction
   *
   * bpy.ops.ui.view_item_navigate
   */
  view_item_navigate: H.Operator<{
    /**
     * Direction in which to navigate and select next element. Default: 'UP'.
     * - `UP`: Up (Select item above the active)
     * - `DOWN`: Down (Select item below the active)
     * - `LEFT`: Left (Collapse or walk towards left of the active item)
     * - `RIGHT`: Right (Uncollapse or walk towards right of the active item)
     */
    direction?: H.In<"UP" | "DOWN" | "LEFT" | "RIGHT">;
  }>;
  /**
   * Rename the active item in the data-set view
   *
   * bpy.ops.ui.view_item_rename
   */
  view_item_rename: H.Operator<{}>;
  /**
   * Activate selected view item
   *
   * bpy.ops.ui.view_item_select
   */
  view_item_select: H.Operator<{
    /** Wait to Deselect Others Default: False. */
    wait_to_deselect_others?: H.In<boolean>;
    /** Instead of selecting on mouse press, wait to see if there's drag event. Otherwise select on mouse release Default: False. */
    use_select_on_click?: H.In<boolean>;
    /** Mouse X Default: 0. */
    mouse_x?: H.In<number>;
    /** Mouse Y Default: 0. */
    mouse_y?: H.In<number>;
    /** Extend Selection Default: False. */
    extend?: H.In<boolean>;
    /** Select all between clicked and active items Default: False. */
    range_select?: H.In<boolean>;
  }>;
  /**
   * (undocumented operator)
   *
   * bpy.ops.ui.view_scroll
   */
  view_scroll: H.Operator<{}>;
  /**
   * Start entering filter text for the data-set in focus
   *
   * bpy.ops.ui.view_start_filter
   */
  view_start_filter: H.Operator<{}>;
}