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.7 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.particle */
export interface Ops {
  /**
   * Apply a stroke of brush to the particles
   *
   * bpy.ops.particle.brush_edit
   */
  brush_edit: H.Operator<{
    /** Stroke */
    stroke?: H.In<readonly Record<string, any>[]>;
    /** Whether a tablet's eraser mode is being used Default: False. */
    pen_flip?: H.In<boolean>;
  }>;
  /**
   * Connect hair to the emitter mesh
   *
   * bpy.ops.particle.connect_hair
   */
  connect_hair: H.Operator<{
    /** Connect all hair systems to the emitter mesh Default: False. */
    all?: H.In<boolean>;
  }>;
  /**
   * Copy particle systems from the active object to selected objects
   *
   * bpy.ops.particle.copy_particle_systems
   */
  copy_particle_systems: H.Operator<{
    /**
     * Space transform for copying from one object to another Default: 'OBJECT'.
     * - `OBJECT`: Object (Copy inside each object's local space)
     * - `WORLD`: World (Copy in world space)
     */
    space?: H.In<"OBJECT" | "WORLD">;
    /** Remove particle systems on the target objects Default: True. */
    remove_target_particles?: H.In<boolean>;
    /** Use the active particle system from the context Default: False. */
    use_active?: H.In<boolean>;
  }>;
  /**
   * Delete selected particles or keys
   *
   * bpy.ops.particle.delete
   */
  delete: H.Operator<{
    /**
     * Delete a full particle or only keys Default: 'PARTICLE'.
     * - `PARTICLE`: Particle
     * - `KEY`: Key
     */
    type?: H.In<"PARTICLE" | "KEY">;
  }>;
  /**
   * Disconnect hair from the emitter mesh
   *
   * bpy.ops.particle.disconnect_hair
   */
  disconnect_hair: H.Operator<{
    /** Disconnect all hair systems from the emitter mesh Default: False. */
    all?: H.In<boolean>;
  }>;
  /**
   * Duplicate particle system within the active object
   *
   * bpy.ops.particle.duplicate_particle_system
   */
  duplicate_particle_system: H.Operator<{
    /** Duplicate settings as well, so the new particle system uses its own settings Default: False. */
    use_duplicate_settings?: H.In<boolean>;
  }>;
  /**
   * Duplicate the current instance object
   *
   * bpy.ops.particle.dupliob_copy
   */
  dupliob_copy: H.Operator<{}>;
  /**
   * Move instance object down in the list
   *
   * bpy.ops.particle.dupliob_move_down
   */
  dupliob_move_down: H.Operator<{}>;
  /**
   * Move instance object up in the list
   *
   * bpy.ops.particle.dupliob_move_up
   */
  dupliob_move_up: H.Operator<{}>;
  /**
   * Refresh list of instance objects and their weights
   *
   * bpy.ops.particle.dupliob_refresh
   */
  dupliob_refresh: H.Operator<{}>;
  /**
   * Remove the selected instance object
   *
   * bpy.ops.particle.dupliob_remove
   */
  dupliob_remove: H.Operator<{}>;
  /**
   * Undo all edition performed on the particle system
   *
   * bpy.ops.particle.edited_clear
   */
  edited_clear: H.Operator<{}>;
  /**
   * Add or remove a Hair Dynamics Preset
   *
   * bpy.ops.particle.hair_dynamics_preset_add
   */
  hair_dynamics_preset_add: H.Operator<{
    /** Name of the preset, used to make the path name Default: "". */
    name?: H.In<string>;
    /** Default: False. */
    remove_name?: H.In<boolean>;
    /** Default: False. */
    remove_active?: H.In<boolean>;
  }>;
  /**
   * Hide selected particles
   *
   * bpy.ops.particle.hide
   */
  hide: H.Operator<{
    /** Hide unselected rather than selected Default: False. */
    unselected?: H.In<boolean>;
  }>;
  /**
   * Duplicate and mirror the selected particles along the local X axis
   *
   * bpy.ops.particle.mirror
   */
  mirror: H.Operator<{}>;
  /**
   * Add new particle settings
   *
   * bpy.ops.particle.new
   */
  "new": H.Operator<{}>;
  /**
   * Add a new particle target
   *
   * bpy.ops.particle.new_target
   */
  new_target: H.Operator<{}>;
  /**
   * Toggle particle edit mode
   *
   * bpy.ops.particle.particle_edit_toggle
   */
  particle_edit_toggle: H.Operator<{}>;
  /**
   * Remove all particle system within the active object
   *
   * bpy.ops.particle.particle_system_remove_all
   */
  particle_system_remove_all: H.Operator<{}>;
  /**
   * Change the number of keys of selected particles (root and tip keys included)
   *
   * bpy.ops.particle.rekey
   */
  rekey: H.Operator<{
    /** Number of Keys Default: 2. */
    keys_number?: H.In<number>;
  }>;
  /**
   * Remove selected particles close enough to others
   *
   * bpy.ops.particle.remove_doubles
   */
  remove_doubles: H.Operator<{
    /** Threshold distance within which particles are removed Default: 0.0002. */
    threshold?: H.In<number>;
  }>;
  /**
   * Show hidden particles
   *
   * bpy.ops.particle.reveal
   */
  reveal: H.Operator<{
    /** Select Default: True. */
    select?: H.In<boolean>;
  }>;
  /**
   * (De)select all particles' keys
   *
   * bpy.ops.particle.select_all
   */
  select_all: H.Operator<{
    /**
     * Selection action to execute Default: 'TOGGLE'.
     * - `TOGGLE`: Toggle (Toggle selection for all elements)
     * - `SELECT`: Select (Select all elements)
     * - `DESELECT`: Deselect (Deselect all elements)
     * - `INVERT`: Invert (Invert selection of all elements)
     */
    action?: H.In<"TOGGLE" | "SELECT" | "DESELECT" | "INVERT">;
  }>;
  /**
   * Deselect boundary selected keys of each particle
   *
   * bpy.ops.particle.select_less
   */
  select_less: H.Operator<{}>;
  /**
   * Select all keys linked to already selected ones
   *
   * bpy.ops.particle.select_linked
   */
  select_linked: H.Operator<{}>;
  /**
   * Select nearest particle from mouse pointer
   *
   * bpy.ops.particle.select_linked_pick
   */
  select_linked_pick: H.Operator<{
    /** Deselect linked keys rather than selecting them Default: False. */
    deselect?: H.In<boolean>;
    /** Location Default: (0, 0). */
    location?: H.In<readonly number[]>;
  }>;
  /**
   * Select keys linked to boundary selected keys of each particle
   *
   * bpy.ops.particle.select_more
   */
  select_more: H.Operator<{}>;
  /**
   * Select a randomly distributed set of hair or points
   *
   * bpy.ops.particle.select_random
   */
  select_random: H.Operator<{
    /** Portion of items to select randomly Default: 0.5. */
    ratio?: H.In<number>;
    /** Seed for the random number generator Default: 0. */
    seed?: H.In<number>;
    /**
     * Selection action to execute Default: 'SELECT'.
     * - `SELECT`: Select (Select all elements)
     * - `DESELECT`: Deselect (Deselect all elements)
     */
    action?: H.In<"SELECT" | "DESELECT">;
    /**
     * Select either hair or points Default: 'HAIR'.
     * - `HAIR`: Hair
     * - `POINTS`: Points
     */
    type?: H.In<"HAIR" | "POINTS">;
  }>;
  /**
   * Select roots of all visible particles
   *
   * bpy.ops.particle.select_roots
   */
  select_roots: H.Operator<{
    /**
     * Selection action to execute Default: 'SELECT'.
     * - `TOGGLE`: Toggle (Toggle selection for all elements)
     * - `SELECT`: Select (Select all elements)
     * - `DESELECT`: Deselect (Deselect all elements)
     * - `INVERT`: Invert (Invert selection of all elements)
     */
    action?: H.In<"TOGGLE" | "SELECT" | "DESELECT" | "INVERT">;
  }>;
  /**
   * Select tips of all visible particles
   *
   * bpy.ops.particle.select_tips
   */
  select_tips: H.Operator<{
    /**
     * Selection action to execute Default: 'SELECT'.
     * - `TOGGLE`: Toggle (Toggle selection for all elements)
     * - `SELECT`: Select (Select all elements)
     * - `DESELECT`: Deselect (Deselect all elements)
     * - `INVERT`: Invert (Invert selection of all elements)
     */
    action?: H.In<"TOGGLE" | "SELECT" | "DESELECT" | "INVERT">;
  }>;
  /**
   * Cut hair to conform to the set shape object
   *
   * bpy.ops.particle.shape_cut
   */
  shape_cut: H.Operator<{}>;
  /**
   * Subdivide selected particles segments (adds keys)
   *
   * bpy.ops.particle.subdivide
   */
  subdivide: H.Operator<{}>;
  /**
   * Move particle target down in the list
   *
   * bpy.ops.particle.target_move_down
   */
  target_move_down: H.Operator<{}>;
  /**
   * Move particle target up in the list
   *
   * bpy.ops.particle.target_move_up
   */
  target_move_up: H.Operator<{}>;
  /**
   * Remove the selected particle target
   *
   * bpy.ops.particle.target_remove
   */
  target_remove: H.Operator<{}>;
  /**
   * Make selected hair the same length
   *
   * bpy.ops.particle.unify_length
   */
  unify_length: H.Operator<{}>;
  /**
   * Set the weight of selected keys
   *
   * bpy.ops.particle.weight_set
   */
  weight_set: H.Operator<{
    /** Interpolation factor between current brush weight, and keys' weights Default: 1.0. */
    factor?: H.In<number>;
  }>;
}