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.1 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.constraint */
export interface Ops {
  /**
   * Add a target to the constraint
   *
   * bpy.ops.constraint.add_target
   */
  add_target: H.Operator<{}>;
  /**
   * Apply constraint and remove from the stack
   *
   * bpy.ops.constraint.apply
   */
  apply: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
    /** Create a notification after the operation Default: False. */
    report?: H.In<boolean>;
  }>;
  /**
   * Clear inverse correction for Child Of constraint
   *
   * bpy.ops.constraint.childof_clear_inverse
   */
  childof_clear_inverse: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Set inverse correction for Child Of constraint
   *
   * bpy.ops.constraint.childof_set_inverse
   */
  childof_set_inverse: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Duplicate constraint at the same position in the stack
   *
   * bpy.ops.constraint.copy
   */
  copy: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
    /** Create a notification after the operation Default: False. */
    report?: H.In<boolean>;
  }>;
  /**
   * Copy constraint to other selected objects/bones
   *
   * bpy.ops.constraint.copy_to_selected
   */
  copy_to_selected: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Remove constraint from constraint stack
   *
   * bpy.ops.constraint.delete
   */
  delete: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
    /** Create a notification after the operation Default: False. */
    report?: H.In<boolean>;
  }>;
  /**
   * Set the influence of this constraint to zero while trying to maintain the object's transformation. Other active constraints can still influence the final transformation
   *
   * bpy.ops.constraint.disable_keep_transform
   */
  disable_keep_transform: H.Operator<{}>;
  /**
   * Add default animation for path used by constraint if it isn't animated already
   *
   * bpy.ops.constraint.followpath_path_animate
   */
  followpath_path_animate: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
    /** First frame of path animation Default: 1. */
    frame_start?: H.In<number>;
    /** Number of frames that path animation should take Default: 100. */
    length?: H.In<number>;
  }>;
  /**
   * Reset limiting distance for Limit Distance Constraint
   *
   * bpy.ops.constraint.limitdistance_reset
   */
  limitdistance_reset: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Move constraint down in constraint stack
   *
   * bpy.ops.constraint.move_down
   */
  move_down: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Change the constraint's position in the list so it evaluates after the set number of others
   *
   * bpy.ops.constraint.move_to_index
   */
  move_to_index: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
    /** The index to move the constraint to Default: 0. */
    index?: H.In<number>;
  }>;
  /**
   * Move constraint up in constraint stack
   *
   * bpy.ops.constraint.move_up
   */
  move_up: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Normalize weights of all target bones
   *
   * bpy.ops.constraint.normalize_target_weights
   */
  normalize_target_weights: H.Operator<{}>;
  /**
   * Clear inverse correction for Object Solver constraint
   *
   * bpy.ops.constraint.objectsolver_clear_inverse
   */
  objectsolver_clear_inverse: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Set inverse correction for Object Solver constraint
   *
   * bpy.ops.constraint.objectsolver_set_inverse
   */
  objectsolver_set_inverse: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
  /**
   * Remove the target from the constraint
   *
   * bpy.ops.constraint.remove_target
   */
  remove_target: H.Operator<{
    /** Default: 0. */
    index?: H.In<number>;
  }>;
  /**
   * Reset original length of bone for Stretch To Constraint
   *
   * bpy.ops.constraint.stretchto_reset
   */
  stretchto_reset: H.Operator<{
    /** Name of the constraint to edit Default: "". */
    constraint?: H.In<string>;
    /**
     * The owner of this constraint Default: 'OBJECT'.
     * - `OBJECT`: Object (Edit a constraint on the active object)
     * - `BONE`: Bone (Edit a constraint on the active bone)
     */
    owner?: H.In<"OBJECT" | "BONE">;
  }>;
}