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.

10.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.mask */
export interface Ops {
  /**
   * Add vertex to feather
   *
   * bpy.ops.mask.add_feather_vertex
   */
  add_feather_vertex: H.Operator<{
    /** Location of vertex in normalized space Default: (0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
  /**
   * Add new vertex to feather and slide it
   *
   * bpy.ops.mask.add_feather_vertex_slide
   */
  add_feather_vertex_slide: H.Operator<{
    /** Add vertex to feather */
    MASK_OT_add_feather_vertex?: any;
    /** Slide control points */
    MASK_OT_slide_point?: any;
  }>;
  /**
   * Add vertex to active spline
   *
   * bpy.ops.mask.add_vertex
   */
  add_vertex: H.Operator<{
    /** Location of vertex in normalized space Default: (0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
  /**
   * Add new vertex and slide it
   *
   * bpy.ops.mask.add_vertex_slide
   */
  add_vertex_slide: H.Operator<{
    /** Add vertex to active spline */
    MASK_OT_add_vertex?: any;
    /** Slide control points */
    MASK_OT_slide_point?: any;
  }>;
  /**
   * Copy the selected splines to the internal clipboard
   *
   * bpy.ops.mask.copy_splines
   */
  copy_splines: H.Operator<{}>;
  /**
   * Toggle cyclic for selected splines
   *
   * bpy.ops.mask.cyclic_toggle
   */
  cyclic_toggle: H.Operator<{}>;
  /**
   * Delete selected control points or splines
   *
   * bpy.ops.mask.delete
   */
  delete: H.Operator<{
    /** Prompt for confirmation Default: True. */
    confirm?: H.In<boolean>;
  }>;
  /**
   * Duplicate selected control points and segments between them
   *
   * bpy.ops.mask.duplicate
   */
  duplicate: H.Operator<{}>;
  /**
   * Duplicate mask and move
   *
   * bpy.ops.mask.duplicate_move
   */
  duplicate_move: H.Operator<{
    /** Duplicate selected control points and segments between them */
    MASK_OT_duplicate?: any;
    /** Move selected items */
    TRANSFORM_OT_translate?: any;
  }>;
  /**
   * Reset the feather weight to zero
   *
   * bpy.ops.mask.feather_weight_clear
   */
  feather_weight_clear: H.Operator<{}>;
  /**
   * Set type of handles for selected control points
   *
   * bpy.ops.mask.handle_type_set
   */
  handle_type_set: H.Operator<{
    /**
     * Spline type Default: 'AUTO'.
     * - `AUTO`: Auto
     * - `VECTOR`: Vector
     * - `ALIGNED`: Aligned Single
     * - `ALIGNED_DOUBLESIDE`: Aligned
     * - `FREE`: Free
     */
    type?: H.In<"AUTO" | "VECTOR" | "ALIGNED" | "ALIGNED_DOUBLESIDE" | "FREE">;
  }>;
  /**
   * Reveal temporarily hidden mask layers
   *
   * bpy.ops.mask.hide_view_clear
   */
  hide_view_clear: H.Operator<{
    /** Select Default: True. */
    select?: H.In<boolean>;
  }>;
  /**
   * Temporarily hide mask layers
   *
   * bpy.ops.mask.hide_view_set
   */
  hide_view_set: H.Operator<{
    /** Hide unselected rather than selected layers Default: False. */
    unselected?: H.In<boolean>;
  }>;
  /**
   * Move the active layer up/down in the list
   *
   * bpy.ops.mask.layer_move
   */
  layer_move: H.Operator<{
    /**
     * Direction to move the active layer Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    direction?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Add new mask layer for masking
   *
   * bpy.ops.mask.layer_new
   */
  layer_new: H.Operator<{
    /** Name of new mask layer Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Remove mask layer
   *
   * bpy.ops.mask.layer_remove
   */
  layer_remove: H.Operator<{}>;
  /**
   * Move the active spline to layer
   *
   * bpy.ops.mask.move_to_layer
   */
  move_to_layer: H.Operator<{
    /** Target Mask Layer Default: "". */
    target_layer_name?: H.In<string>;
    /** Move selection to a new layer Default: False. */
    add_new_layer?: H.In<boolean>;
  }>;
  /**
   * Create new mask
   *
   * bpy.ops.mask.new
   */
  "new": H.Operator<{
    /** Name of new mask Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Recalculate the direction of selected handles
   *
   * bpy.ops.mask.normals_make_consistent
   */
  normals_make_consistent: H.Operator<{}>;
  /**
   * Clear the mask's parenting
   *
   * bpy.ops.mask.parent_clear
   */
  parent_clear: H.Operator<{}>;
  /**
   * Set the mask's parenting
   *
   * bpy.ops.mask.parent_set
   */
  parent_set: H.Operator<{}>;
  /**
   * Paste splines from the internal clipboard
   *
   * bpy.ops.mask.paste_splines
   */
  paste_splines: H.Operator<{}>;
  /**
   * Add new circle-shaped spline
   *
   * bpy.ops.mask.primitive_circle_add
   */
  primitive_circle_add: H.Operator<{
    /** Size of new primitive Default: 100.0. */
    size?: H.In<number>;
    /** Location of new primitive Default: (0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
  /**
   * Add new square-shaped spline
   *
   * bpy.ops.mask.primitive_square_add
   */
  primitive_square_add: H.Operator<{
    /** Size of new primitive Default: 100.0. */
    size?: H.In<number>;
    /** Location of new primitive Default: (0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
  /**
   * Select spline points
   *
   * bpy.ops.mask.select
   */
  select: 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>;
    /** Location of vertex in normalized space Default: (0.0, 0.0). */
    location?: H.In<M.VectorLike>;
  }>;
  /**
   * Change selection of all curve points
   *
   * bpy.ops.mask.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 curve points using box selection
   *
   * bpy.ops.mask.select_box
   */
  select_box: H.Operator<{
    /** X Min Default: 0. */
    xmin?: H.In<number>;
    /** X Max Default: 0. */
    xmax?: H.In<number>;
    /** Y Min Default: 0. */
    ymin?: H.In<number>;
    /** Y Max Default: 0. */
    ymax?: H.In<number>;
    /** Wait for Input Default: True. */
    wait_for_input?: H.In<boolean>;
    /**
     * Mode Default: 'SET'.
     * - `SET`: Set (Set a new selection)
     * - `ADD`: Extend (Extend existing selection)
     * - `SUB`: Subtract (Subtract existing selection)
     */
    mode?: H.In<"SET" | "ADD" | "SUB">;
  }>;
  /**
   * Select curve points using circle selection
   *
   * bpy.ops.mask.select_circle
   */
  select_circle: H.Operator<{
    /** X Default: 0. */
    x?: H.In<number>;
    /** Y Default: 0. */
    y?: H.In<number>;
    /** Radius Default: 25. */
    radius?: H.In<number>;
    /** Wait for Input Default: True. */
    wait_for_input?: H.In<boolean>;
    /**
     * Mode Default: 'SET'.
     * - `SET`: Set (Set a new selection)
     * - `ADD`: Extend (Extend existing selection)
     * - `SUB`: Subtract (Subtract existing selection)
     */
    mode?: H.In<"SET" | "ADD" | "SUB">;
  }>;
  /**
   * Select curve points using lasso selection
   *
   * bpy.ops.mask.select_lasso
   */
  select_lasso: H.Operator<{
    /** Path */
    path?: H.In<readonly Record<string, any>[]>;
    /** Selection lags behind mouse and follows a smoother path Default: False. */
    use_smooth_stroke?: H.In<boolean>;
    /** Higher values give a smoother stroke Default: 0.75. */
    smooth_stroke_factor?: H.In<number>;
    /** Minimum distance from last point before selection continues Default: 35. */
    smooth_stroke_radius?: H.In<number>;
    /**
     * Mode Default: 'SET'.
     * - `SET`: Set (Set a new selection)
     * - `ADD`: Extend (Extend existing selection)
     * - `SUB`: Subtract (Subtract existing selection)
     */
    mode?: H.In<"SET" | "ADD" | "SUB">;
  }>;
  /**
   * Deselect spline points at the boundary of each selection region
   *
   * bpy.ops.mask.select_less
   */
  select_less: H.Operator<{}>;
  /**
   * Select all curve points linked to already selected ones
   *
   * bpy.ops.mask.select_linked
   */
  select_linked: H.Operator<{}>;
  /**
   * (De)select all points linked to the curve under the mouse cursor
   *
   * bpy.ops.mask.select_linked_pick
   */
  select_linked_pick: H.Operator<{
    /** Deselect Default: False. */
    deselect?: H.In<boolean>;
  }>;
  /**
   * Select more spline points connected to initial selection
   *
   * bpy.ops.mask.select_more
   */
  select_more: H.Operator<{}>;
  /**
   * Remove mask shape keyframe for active mask layer at the current frame
   *
   * bpy.ops.mask.shape_key_clear
   */
  shape_key_clear: H.Operator<{}>;
  /**
   * Reset feather weights on all selected points animation values
   *
   * bpy.ops.mask.shape_key_feather_reset
   */
  shape_key_feather_reset: H.Operator<{}>;
  /**
   * Insert mask shape keyframe for active mask layer at the current frame
   *
   * bpy.ops.mask.shape_key_insert
   */
  shape_key_insert: H.Operator<{}>;
  /**
   * Recalculate animation data on selected points for frames selected in the dopesheet
   *
   * bpy.ops.mask.shape_key_rekey
   */
  shape_key_rekey: H.Operator<{
    /** Location Default: True. */
    location?: H.In<boolean>;
    /** Feather Default: True. */
    feather?: H.In<boolean>;
  }>;
  /**
   * Slide control points
   *
   * bpy.ops.mask.slide_point
   */
  slide_point: H.Operator<{
    /** First try to slide feather instead of vertex Default: False. */
    slide_feather?: H.In<boolean>;
    /** Newly created vertex is being slid Default: False. */
    is_new_point?: H.In<boolean>;
  }>;
  /**
   * Slide a point on the spline to define its curvature
   *
   * bpy.ops.mask.slide_spline_curvature
   */
  slide_spline_curvature: H.Operator<{}>;
  /**
   * Switch direction of selected splines
   *
   * bpy.ops.mask.switch_direction
   */
  switch_direction: H.Operator<{}>;
}