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.

11.3 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.curves */
export interface Ops {
  /**
   * Add new Bézier curve
   *
   * bpy.ops.curves.add_bezier
   */
  add_bezier: H.Operator<{
    /** Radius Default: 1.0. */
    radius?: H.In<number>;
    /** Enter edit mode when adding this object Default: False. */
    enter_editmode?: H.In<boolean>;
    /**
     * The alignment of the new object Default: 'WORLD'.
     * - `WORLD`: World (Align the new object to the world)
     * - `VIEW`: View (Align the new object to the view)
     * - `CURSOR`: 3D Cursor (Use the 3D cursor orientation for the new object)
     */
    align?: H.In<"WORLD" | "VIEW" | "CURSOR">;
    /** Location for the newly added object Default: (0.0, 0.0, 0.0). */
    location?: H.In<M.VectorLike>;
    /** Rotation for the newly added object Default: (0.0, 0.0, 0.0). */
    rotation?: H.In<M.Euler | readonly number[]>;
    /** Scale for the newly added object Default: (0.0, 0.0, 0.0). */
    scale?: H.In<M.VectorLike>;
  }>;
  /**
   * Add new circle curve
   *
   * bpy.ops.curves.add_circle
   */
  add_circle: H.Operator<{
    /** Radius Default: 1.0. */
    radius?: H.In<number>;
    /** Enter edit mode when adding this object Default: False. */
    enter_editmode?: H.In<boolean>;
    /**
     * The alignment of the new object Default: 'WORLD'.
     * - `WORLD`: World (Align the new object to the world)
     * - `VIEW`: View (Align the new object to the view)
     * - `CURSOR`: 3D Cursor (Use the 3D cursor orientation for the new object)
     */
    align?: H.In<"WORLD" | "VIEW" | "CURSOR">;
    /** Location for the newly added object Default: (0.0, 0.0, 0.0). */
    location?: H.In<M.VectorLike>;
    /** Rotation for the newly added object Default: (0.0, 0.0, 0.0). */
    rotation?: H.In<M.Euler | readonly number[]>;
    /** Scale for the newly added object Default: (0.0, 0.0, 0.0). */
    scale?: H.In<M.VectorLike>;
  }>;
  /**
   * Set values of the active attribute for selected elements
   *
   * bpy.ops.curves.attribute_set
   */
  attribute_set: H.Operator<{
    /** Value Default: 0.0. */
    value_float?: H.In<number>;
    /** Value Default: (0.0, 0.0). */
    value_float_vector_2d?: H.In<readonly number[]>;
    /** Value Default: (0.0, 0.0, 0.0). */
    value_float_vector_3d?: H.In<readonly number[]>;
    /** Value Default: (0.0, 0.0, 0.0, 0.0). */
    value_float_vector_4d?: H.In<readonly number[]>;
    /** Value Default: 0. */
    value_int?: H.In<number>;
    /** Value Default: (0, 0). */
    value_int_vector_2d?: H.In<readonly number[]>;
    /** Value Default: (1.0, 1.0, 1.0, 1.0). */
    value_color?: H.In<readonly number[]>;
    /** Value Default: False. */
    value_bool?: H.In<boolean>;
  }>;
  /**
   * Add a new curves object based on the current state of the particle system
   *
   * bpy.ops.curves.convert_from_particle_system
   */
  convert_from_particle_system: H.Operator<{}>;
  /**
   * Add a new or update an existing hair particle system on the surface object
   *
   * bpy.ops.curves.convert_to_particle_system
   */
  convert_to_particle_system: H.Operator<{}>;
  /**
   * Set type of selected curves
   *
   * bpy.ops.curves.curve_type_set
   */
  curve_type_set: H.Operator<{
    /**
     * Curve type Default: 'POLY'.
     * - `CATMULL_ROM`: Catmull Rom
     * - `POLY`: Poly
     * - `BEZIER`: Bézier
     * - `NURBS`: NURBS
     */
    type?: H.In<"CATMULL_ROM" | "POLY" | "BEZIER" | "NURBS">;
    /** Take handle information into account in the conversion Default: False. */
    use_handles?: H.In<boolean>;
  }>;
  /**
   * Make active curve closed/open loop
   *
   * bpy.ops.curves.cyclic_toggle
   */
  cyclic_toggle: H.Operator<{}>;
  /**
   * Remove selected control points or curves
   *
   * bpy.ops.curves.delete
   */
  delete: H.Operator<{}>;
  /**
   * Draw a freehand curve
   *
   * bpy.ops.curves.draw
   */
  draw: H.Operator<{
    /** Error distance threshold (in object units) Default: 0.0. */
    error_threshold?: H.In<number>;
    /**
     * Fit Method Default: 'REFIT'.
     * - `REFIT`: Refit (Incrementally refit the curve (high quality))
     * - `SPLIT`: Split (Split the curve until the tolerance is met (fast))
     */
    fit_method?: H.In<"REFIT" | "SPLIT">;
    /** Corner Angle Default: 1.22173. */
    corner_angle?: H.In<number>;
    /** Cyclic Default: True. */
    use_cyclic?: H.In<boolean>;
    /** Stroke */
    stroke?: H.In<readonly Record<string, any>[]>;
    /** Wait for Input Default: True. */
    wait_for_input?: H.In<boolean>;
    /** Curve 2D Default: False. */
    is_curve_2d?: H.In<boolean>;
    /** As NURBS Default: False. */
    bezier_as_nurbs?: H.In<boolean>;
  }>;
  /**
   * Copy selected points or curves
   *
   * bpy.ops.curves.duplicate
   */
  duplicate: H.Operator<{}>;
  /**
   * Make copies of selected elements and move them
   *
   * bpy.ops.curves.duplicate_move
   */
  duplicate_move: H.Operator<{
    /** Copy selected points or curves */
    CURVES_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Extrude selected control point(s)
   *
   * bpy.ops.curves.extrude
   */
  extrude: H.Operator<{}>;
  /**
   * Extrude curve and move result
   *
   * bpy.ops.curves.extrude_move
   */
  extrude_move: H.Operator<{
    /** Extrude selected control point(s) */
    CURVES_OT_extrude?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Set the handle type for Bézier curves
   *
   * bpy.ops.curves.handle_type_set
   */
  handle_type_set: H.Operator<{
    /**
     * Type Default: 'AUTO'.
     * - `AUTO`: Auto (The location is automatically calculated to be smooth)
     * - `VECTOR`: Vector (The location is calculated to point to the next/previous control point)
     * - `ALIGN`: Align (The location is constrained to point in the opposite direction as the other handle)
     * - `FREE_ALIGN`: Free (The handle can be moved anywhere, and does not influence the point's other handle)
     * - `TOGGLE_FREE_ALIGN`: Toggle Free/Align (Replace Free handles with Align, and all Align with Free handles)
     */
    type?: H.In<"AUTO" | "VECTOR" | "ALIGN" | "FREE_ALIGN" | "TOGGLE_FREE_ALIGN">;
  }>;
  /**
   * Construct and edit Bézier curves
   *
   * bpy.ops.curves.pen
   */
  pen: H.Operator<{
    /** Extend selection instead of deselecting everything first Default: False. */
    extend?: H.In<boolean>;
    /** Remove from selection Default: False. */
    deselect?: H.In<boolean>;
    /** Toggle the selection Default: False. */
    toggle?: H.In<boolean>;
    /** Deselect all when nothing under the cursor Default: False. */
    deselect_all?: H.In<boolean>;
    /** Ignore the select action when the element is already selected Default: False. */
    select_passthrough?: H.In<boolean>;
    /** Add a point connected to the last selected point Default: False. */
    extrude_point?: H.In<boolean>;
    /**
     * Type of the extruded handle Default: 'VECTOR'.
     * - `AUTO`: Auto
     * - `VECTOR`: Vector
     */
    extrude_handle?: H.In<"AUTO" | "VECTOR">;
    /** Delete an existing point Default: False. */
    delete_point?: H.In<boolean>;
    /** Insert Point into a curve segment Default: False. */
    insert_point?: H.In<boolean>;
    /** Move an existing curve segment Default: False. */
    move_segment?: H.In<boolean>;
    /** Select a point or its handles Default: False. */
    select_point?: H.In<boolean>;
    /** Move a point or its handles Default: False. */
    move_point?: H.In<boolean>;
    /** Cycle between all four handle types Default: False. */
    cycle_handle_type?: H.In<boolean>;
    /** Diameter of new points Default: 0.01. */
    size?: H.In<number>;
  }>;
  /**
   * Enter/Exit sculpt mode for curves
   *
   * bpy.ops.curves.sculptmode_toggle
   */
  sculptmode_toggle: H.Operator<{}>;
  /**
   * (De)select all control points
   *
   * bpy.ops.curves.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">;
  }>;
  /**
   * Select end points of curves
   *
   * bpy.ops.curves.select_ends
   */
  select_ends: H.Operator<{
    /** Number of points to select from the front Default: 0. */
    amount_start?: H.In<number>;
    /** Number of points to select from the back Default: 1. */
    amount_end?: H.In<number>;
  }>;
  /**
   * Shrink the selection by one point
   *
   * bpy.ops.curves.select_less
   */
  select_less: H.Operator<{}>;
  /**
   * Select all points in curves with any point selection
   *
   * bpy.ops.curves.select_linked
   */
  select_linked: H.Operator<{}>;
  /**
   * Select all points in the curve under the cursor
   *
   * bpy.ops.curves.select_linked_pick
   */
  select_linked_pick: H.Operator<{
    /** Deselect linked control points rather than selecting them Default: False. */
    deselect?: H.In<boolean>;
  }>;
  /**
   * Grow the selection by one point
   *
   * bpy.ops.curves.select_more
   */
  select_more: H.Operator<{}>;
  /**
   * Randomize existing selection or create new random selection
   *
   * bpy.ops.curves.select_random
   */
  select_random: H.Operator<{
    /** Source of randomness Default: 0. */
    seed?: H.In<number>;
    /** Chance of every point or curve being included in the selection Default: 0.5. */
    probability?: H.In<number>;
  }>;
  /**
   * Separate selected geometry into a new object
   *
   * bpy.ops.curves.separate
   */
  separate: H.Operator<{}>;
  /**
   * Change the mode used for selection masking in curves sculpt mode
   *
   * bpy.ops.curves.set_selection_domain
   */
  set_selection_domain: H.Operator<{
    /**
     * Domain Default: 'POINT'.
     * - `POINT`: Control Point
     * - `CURVE`: Curve
     */
    domain?: H.In<"POINT" | "CURVE">;
  }>;
  /**
   * Move curves so that the first point is exactly on the surface mesh
   *
   * bpy.ops.curves.snap_curves_to_surface
   */
  snap_curves_to_surface: H.Operator<{
    /**
     * How to find the point on the surface to attach to Default: 'NEAREST'.
     * - `NEAREST`: Nearest (Find the closest point on the surface for the root point of every curve and move the root there)
     * - `DEFORM`: Deform (Re-attach curves to a deformed surface using the existing attachment information. This only works when the topology of the surface mesh has not changed)
     */
    attach_mode?: H.In<"NEAREST" | "DEFORM">;
  }>;
  /**
   * Split selected points
   *
   * bpy.ops.curves.split
   */
  split: H.Operator<{}>;
  /**
   * Subdivide selected curve segments
   *
   * bpy.ops.curves.subdivide
   */
  subdivide: H.Operator<{
    /** Number of Cuts Default: 1. */
    number_cuts?: H.In<number>;
  }>;
  /**
   * Use the active object as surface for selected curves objects and set it as the parent
   *
   * bpy.ops.curves.surface_set
   */
  surface_set: H.Operator<{}>;
  /**
   * Reverse the direction of the selected curves
   *
   * bpy.ops.curves.switch_direction
   */
  switch_direction: H.Operator<{}>;
  /**
   * Clear the tilt of selected control points
   *
   * bpy.ops.curves.tilt_clear
   */
  tilt_clear: H.Operator<{}>;
}