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.

16.8 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.curve */
export interface Ops {
  /**
   * Make active spline closed/open loop
   *
   * bpy.ops.curve.cyclic_toggle
   */
  cyclic_toggle: H.Operator<{
    /**
     * Direction to make surface cyclic in Default: 'CYCLIC_U'.
     * - `CYCLIC_U`: Cyclic U
     * - `CYCLIC_V`: Cyclic V
     */
    direction?: H.In<"CYCLIC_U" | "CYCLIC_V">;
  }>;
  /**
   * (De)select first of visible part of each NURBS
   *
   * bpy.ops.curve.de_select_first
   */
  de_select_first: H.Operator<{}>;
  /**
   * (De)select last of visible part of each NURBS
   *
   * bpy.ops.curve.de_select_last
   */
  de_select_last: H.Operator<{}>;
  /**
   * Simplify selected curves
   *
   * bpy.ops.curve.decimate
   */
  decimate: H.Operator<{
    /** Ratio Default: 1.0. */
    ratio?: H.In<number>;
  }>;
  /**
   * Delete selected control points or segments
   *
   * bpy.ops.curve.delete
   */
  delete: H.Operator<{
    /**
     * Which elements to delete Default: 'VERT'.
     * - `VERT`: Vertices
     * - `SEGMENT`: Segments
     */
    type?: H.In<"VERT" | "SEGMENT">;
  }>;
  /**
   * Delete selected control points, correcting surrounding handles
   *
   * bpy.ops.curve.dissolve_verts
   */
  dissolve_verts: H.Operator<{}>;
  /**
   * Draw a freehand spline
   *
   * bpy.ops.curve.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>;
  }>;
  /**
   * Duplicate selected control points
   *
   * bpy.ops.curve.duplicate
   */
  duplicate: H.Operator<{}>;
  /**
   * Duplicate curve and move
   *
   * bpy.ops.curve.duplicate_move
   */
  duplicate_move: H.Operator<{
    /** Duplicate selected control points */
    CURVE_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Extrude selected control point(s)
   *
   * bpy.ops.curve.extrude
   */
  extrude: H.Operator<{
    /** Mode Default: 'TRANSLATION'. */
    mode?: H.In<E.CurveExtrudeMode>;
  }>;
  /**
   * Extrude curve and move result
   *
   * bpy.ops.curve.extrude_move
   */
  extrude_move: H.Operator<{
    /** Extrude selected control point(s) */
    CURVE_OT_extrude?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Set type of handles for selected control points
   *
   * bpy.ops.curve.handle_type_set
   */
  handle_type_set: H.Operator<{
    /**
     * Spline type Default: 'AUTOMATIC'.
     * - `AUTOMATIC`: Automatic
     * - `VECTOR`: Vector
     * - `ALIGNED`: Aligned
     * - `FREE_ALIGN`: Free
     * - `TOGGLE_FREE_ALIGN`: Toggle Free/Align
     */
    type?: H.In<"AUTOMATIC" | "VECTOR" | "ALIGNED" | "FREE_ALIGN" | "TOGGLE_FREE_ALIGN">;
  }>;
  /**
   * Hide (un)selected control points
   *
   * bpy.ops.curve.hide
   */
  hide: H.Operator<{
    /** Hide unselected rather than selected Default: False. */
    unselected?: H.In<boolean>;
  }>;
  /**
   * Join two curves by their selected ends
   *
   * bpy.ops.curve.make_segment
   */
  make_segment: H.Operator<{}>;
  /**
   * Match texture space to object's bounding box
   *
   * bpy.ops.curve.match_texture_space
   */
  match_texture_space: H.Operator<{}>;
  /**
   * Recalculate the direction of selected handles
   *
   * bpy.ops.curve.normals_make_consistent
   */
  normals_make_consistent: H.Operator<{
    /** Recalculate handle length Default: False. */
    calc_length?: H.In<boolean>;
  }>;
  /**
   * Construct and edit splines
   *
   * bpy.ops.curve.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>;
    /** Make a spline cyclic by clicking endpoints Default: True. */
    close_spline?: H.In<boolean>;
    /**
     * The condition for close spline to activate Default: 'OFF'.
     * - `OFF`: None
     * - `ON_PRESS`: On Press (Move handles after closing the spline)
     * - `ON_CLICK`: On Click (Spline closes on release if not dragged)
     */
    close_spline_method?: H.In<"OFF" | "ON_PRESS" | "ON_CLICK">;
    /** Toggle between Vector and Auto handles Default: False. */
    toggle_vector?: H.In<boolean>;
    /** Cycle between all four handle types Default: False. */
    cycle_handle_type?: H.In<boolean>;
  }>;
  /**
   * Construct a Bézier Circle
   *
   * bpy.ops.curve.primitive_bezier_circle_add
   */
  primitive_bezier_circle_add: 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>;
  }>;
  /**
   * Construct a Bézier Curve
   *
   * bpy.ops.curve.primitive_bezier_curve_add
   */
  primitive_bezier_curve_add: 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>;
  }>;
  /**
   * Construct a Nurbs Circle
   *
   * bpy.ops.curve.primitive_nurbs_circle_add
   */
  primitive_nurbs_circle_add: 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>;
  }>;
  /**
   * Construct a Nurbs Curve
   *
   * bpy.ops.curve.primitive_nurbs_curve_add
   */
  primitive_nurbs_curve_add: 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>;
  }>;
  /**
   * Construct a Path
   *
   * bpy.ops.curve.primitive_nurbs_path_add
   */
  primitive_nurbs_path_add: 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 per-point radius which is used for bevel tapering
   *
   * bpy.ops.curve.radius_set
   */
  radius_set: H.Operator<{
    /** Radius Default: 1.0. */
    radius?: H.In<number>;
  }>;
  /**
   * Reveal hidden control points
   *
   * bpy.ops.curve.reveal
   */
  reveal: H.Operator<{
    /** Select Default: True. */
    select?: H.In<boolean>;
  }>;
  /**
   * (De)select all control points
   *
   * bpy.ops.curve.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 control points at the boundary of each selection region
   *
   * bpy.ops.curve.select_less
   */
  select_less: H.Operator<{}>;
  /**
   * Select all control points linked to the current selection
   *
   * bpy.ops.curve.select_linked
   */
  select_linked: H.Operator<{}>;
  /**
   * Select all control points linked to already selected ones
   *
   * bpy.ops.curve.select_linked_pick
   */
  select_linked_pick: H.Operator<{
    /** Deselect linked control points rather than selecting them Default: False. */
    deselect?: H.In<boolean>;
  }>;
  /**
   * Select control points at the boundary of each selection region
   *
   * bpy.ops.curve.select_more
   */
  select_more: H.Operator<{}>;
  /**
   * Select control points following already selected ones along the curves
   *
   * bpy.ops.curve.select_next
   */
  select_next: H.Operator<{}>;
  /**
   * Deselect every Nth point starting from the active one
   *
   * bpy.ops.curve.select_nth
   */
  select_nth: H.Operator<{
    /** Number of deselected elements in the repetitive sequence Default: 1. */
    skip?: H.In<number>;
    /** Number of selected elements in the repetitive sequence Default: 1. */
    nth?: H.In<number>;
    /** Offset from the starting point Default: 0. */
    offset?: H.In<number>;
  }>;
  /**
   * Select control points preceding already selected ones along the curves
   *
   * bpy.ops.curve.select_previous
   */
  select_previous: H.Operator<{}>;
  /**
   * Randomly select some control points
   *
   * bpy.ops.curve.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 a row of control points including active one. Successive use on the same point switches between U/V directions
   *
   * bpy.ops.curve.select_row
   */
  select_row: H.Operator<{}>;
  /**
   * Select similar curve points by property type
   *
   * bpy.ops.curve.select_similar
   */
  select_similar: H.Operator<{
    /**
     * Type Default: 'WEIGHT'.
     * - `TYPE`: Type
     * - `RADIUS`: Radius
     * - `WEIGHT`: Weight
     * - `DIRECTION`: Direction
     */
    type?: H.In<"TYPE" | "RADIUS" | "WEIGHT" | "DIRECTION">;
    /**
     * Compare Default: 'EQUAL'.
     * - `EQUAL`: Equal
     * - `GREATER`: Greater
     * - `LESS`: Less
     */
    compare?: H.In<"EQUAL" | "GREATER" | "LESS">;
    /** Threshold Default: 0.1. */
    threshold?: H.In<number>;
  }>;
  /**
   * Separate selected points from connected unselected points into a new object
   *
   * bpy.ops.curve.separate
   */
  separate: H.Operator<{}>;
  /**
   * Set shading to flat
   *
   * bpy.ops.curve.shade_flat
   */
  shade_flat: H.Operator<{}>;
  /**
   * Set shading to smooth
   *
   * bpy.ops.curve.shade_smooth
   */
  shade_smooth: H.Operator<{}>;
  /**
   * Select shortest path between two selections
   *
   * bpy.ops.curve.shortest_path_pick
   */
  shortest_path_pick: H.Operator<{}>;
  /**
   * Flatten angles of selected points
   *
   * bpy.ops.curve.smooth
   */
  smooth: H.Operator<{}>;
  /**
   * Interpolate radii of selected points
   *
   * bpy.ops.curve.smooth_radius
   */
  smooth_radius: H.Operator<{}>;
  /**
   * Interpolate tilt of selected points
   *
   * bpy.ops.curve.smooth_tilt
   */
  smooth_tilt: H.Operator<{}>;
  /**
   * Interpolate weight of selected points
   *
   * bpy.ops.curve.smooth_weight
   */
  smooth_weight: H.Operator<{}>;
  /**
   * Extrude selected boundary row around pivot point and current view axis
   *
   * bpy.ops.curve.spin
   */
  spin: H.Operator<{
    /** Center in global view space Default: (0.0, 0.0, 0.0). */
    center?: H.In<M.VectorLike>;
    /** Axis in global view space Default: (0.0, 0.0, 0.0). */
    axis?: H.In<M.VectorLike>;
  }>;
  /**
   * Set type of active spline
   *
   * bpy.ops.curve.spline_type_set
   */
  spline_type_set: H.Operator<{
    /**
     * Spline type Default: 'POLY'.
     * - `POLY`: Poly
     * - `BEZIER`: Bézier
     * - `NURBS`: NURBS
     */
    type?: H.In<"POLY" | "BEZIER" | "NURBS">;
    /** Use handles when converting Bézier curves into polygons Default: False. */
    use_handles?: H.In<boolean>;
  }>;
  /**
   * Set softbody goal weight for selected points
   *
   * bpy.ops.curve.spline_weight_set
   */
  spline_weight_set: H.Operator<{
    /** Weight Default: 1.0. */
    weight?: H.In<number>;
  }>;
  /**
   * Split off selected points from connected unselected points
   *
   * bpy.ops.curve.split
   */
  split: H.Operator<{}>;
  /**
   * Subdivide selected segments
   *
   * bpy.ops.curve.subdivide
   */
  subdivide: H.Operator<{
    /** Number of Cuts Default: 1. */
    number_cuts?: H.In<number>;
  }>;
  /**
   * Switch direction of selected splines
   *
   * bpy.ops.curve.switch_direction
   */
  switch_direction: H.Operator<{}>;
  /**
   * Clear the tilt of selected control points
   *
   * bpy.ops.curve.tilt_clear
   */
  tilt_clear: H.Operator<{}>;
  /**
   * Add a new control point (linked to only selected end-curve one, if any)
   *
   * bpy.ops.curve.vertex_add
   */
  vertex_add: H.Operator<{
    /** Location to add new vertex at Default: (0.0, 0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
}