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.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.rigidbody */
export interface Ops {
  /**
   * Bake rigid body transformations of selected objects to keyframes
   *
   * bpy.ops.rigidbody.bake_to_keyframes
   */
  bake_to_keyframes: H.Operator<{
    /** Start frame for baking Default: 1. */
    frame_start?: H.In<number>;
    /** End frame for baking Default: 250. */
    frame_end?: H.In<number>;
    /** Frame Step Default: 1. */
    step?: H.In<number>;
  }>;
  /**
   * Create rigid body constraints between selected rigid bodies
   *
   * bpy.ops.rigidbody.connect
   */
  connect: H.Operator<{
    /** Type of generated constraint Default: 'FIXED'. */
    con_type?: H.In<E.RigidBodyConstraintType>;
    /**
     * Constraint pivot location Default: 'CENTER'.
     * - `CENTER`: Center (Pivot location is between the constrained rigid bodies)
     * - `ACTIVE`: Active (Pivot location is at the active object position)
     * - `SELECTED`: Selected (Pivot location is at the selected object position)
     */
    pivot_type?: H.In<"CENTER" | "ACTIVE" | "SELECTED">;
    /**
     * Pattern used to connect objects Default: 'SELECTED_TO_ACTIVE'.
     * - `SELECTED_TO_ACTIVE`: Selected to Active (Connect selected objects to the active object)
     * - `CHAIN_DISTANCE`: Chain by Distance (Connect objects as a chain based on distance, starting at the active object)
     */
    connection_pattern?: H.In<"SELECTED_TO_ACTIVE" | "CHAIN_DISTANCE">;
  }>;
  /**
   * Add Rigid Body Constraint to active object
   *
   * bpy.ops.rigidbody.constraint_add
   */
  constraint_add: H.Operator<{
    /** Rigid Body Constraint Type Default: 'FIXED'. */
    type?: H.In<E.RigidBodyConstraintType>;
  }>;
  /**
   * Remove Rigid Body Constraint from Object
   *
   * bpy.ops.rigidbody.constraint_remove
   */
  constraint_remove: H.Operator<{}>;
  /**
   * Automatically calculate mass values for Rigid Body Objects based on volume
   *
   * bpy.ops.rigidbody.mass_calculate
   */
  mass_calculate: H.Operator<{
    /**
     * Type of material that objects are made of (determines material density) Default: 'DEFAULT'.
     * - `DEFAULT`: Default
     */
    material?: H.In<string>;
    /** Density value (kg/m^3), allows custom value if the 'Custom' preset is used Default: 1.0. */
    density?: H.In<number>;
  }>;
  /**
   * Add active object as Rigid Body
   *
   * bpy.ops.rigidbody.object_add
   */
  object_add: H.Operator<{
    /**
     * Rigid Body Type Default: 'ACTIVE'.
     * - `ACTIVE`: Active (Object is directly controlled by simulation results)
     * - `PASSIVE`: Passive (Object is directly controlled by animation system)
     */
    type?: H.In<"ACTIVE" | "PASSIVE">;
  }>;
  /**
   * Remove Rigid Body settings from Object
   *
   * bpy.ops.rigidbody.object_remove
   */
  object_remove: H.Operator<{}>;
  /**
   * Copy Rigid Body settings from active object to selected
   *
   * bpy.ops.rigidbody.object_settings_copy
   */
  object_settings_copy: H.Operator<{}>;
  /**
   * Add selected objects as Rigid Bodies
   *
   * bpy.ops.rigidbody.objects_add
   */
  objects_add: H.Operator<{
    /**
     * Rigid Body Type Default: 'ACTIVE'.
     * - `ACTIVE`: Active (Object is directly controlled by simulation results)
     * - `PASSIVE`: Passive (Object is directly controlled by animation system)
     */
    type?: H.In<"ACTIVE" | "PASSIVE">;
  }>;
  /**
   * Remove selected objects from Rigid Body simulation
   *
   * bpy.ops.rigidbody.objects_remove
   */
  objects_remove: H.Operator<{}>;
  /**
   * Change collision shapes for selected Rigid Body Objects
   *
   * bpy.ops.rigidbody.shape_change
   */
  shape_change: H.Operator<{
    /** Rigid Body Shape Default: 'MESH'. */
    type?: H.In<E.RigidBodyObjectCollisionShape>;
  }>;
  /**
   * Add Rigid Body simulation world to the current scene
   *
   * bpy.ops.rigidbody.world_add
   */
  world_add: H.Operator<{}>;
  /**
   * Remove Rigid Body simulation world from the current scene
   *
   * bpy.ops.rigidbody.world_remove
   */
  world_remove: H.Operator<{}>;
}