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.

3.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.gpencil */
export interface Ops {
  /**
   * Make annotations on the active data
   *
   * bpy.ops.gpencil.annotate
   */
  annotate: H.Operator<{
    /**
     * Way to interpret mouse movements Default: 'DRAW'.
     * - `DRAW`: Draw Freehand (Draw freehand stroke(s))
     * - `DRAW_STRAIGHT`: Draw Straight Lines (Draw straight line segment(s))
     * - `DRAW_POLY`: Draw Poly Line (Click to place endpoints of straight line segments (connected))
     * - `ERASER`: Eraser (Erase Annotation strokes)
     */
    mode?: H.In<"DRAW" | "DRAW_STRAIGHT" | "DRAW_POLY" | "ERASER">;
    /**
     * Stroke start style Default: 'NONE'.
     * - `NONE`: None (Don't use any arrow/style in corner)
     * - `ARROW`: Arrow (Use closed arrow style)
     * - `ARROW_OPEN`: Open Arrow (Use open arrow style)
     * - `ARROW_OPEN_INVERTED`: Segment (Use perpendicular segment style)
     * - `DIAMOND`: Square (Use square style)
     */
    arrowstyle_start?: H.In<"NONE" | "ARROW" | "ARROW_OPEN" | "ARROW_OPEN_INVERTED" | "DIAMOND">;
    /**
     * Stroke end style Default: 'NONE'.
     * - `NONE`: None (Don't use any arrow/style in corner)
     * - `ARROW`: Arrow (Use closed arrow style)
     * - `ARROW_OPEN`: Open Arrow (Use open arrow style)
     * - `ARROW_OPEN_INVERTED`: Segment (Use perpendicular segment style)
     * - `DIAMOND`: Square (Use square style)
     */
    arrowstyle_end?: H.In<"NONE" | "ARROW" | "ARROW_OPEN" | "ARROW_OPEN_INVERTED" | "DIAMOND">;
    /** Helper to draw smooth and clean lines. Press Shift for an invert effect (even if this option is not active) Default: False. */
    use_stabilizer?: H.In<boolean>;
    /** Higher values give a smoother stroke Default: 0.75. */
    stabilizer_factor?: H.In<number>;
    /** Minimum distance from last point before stroke continues Default: 35. */
    stabilizer_radius?: H.In<number>;
    /** Stroke */
    stroke?: H.In<readonly Record<string, any>[]>;
    /** Wait for first click instead of painting immediately Default: True. */
    wait_for_input?: H.In<boolean>;
  }>;
  /**
   * Delete the active frame for the active Annotation Layer
   *
   * bpy.ops.gpencil.annotation_active_frame_delete
   */
  annotation_active_frame_delete: H.Operator<{}>;
  /**
   * Add new Annotation data-block
   *
   * bpy.ops.gpencil.annotation_add
   */
  annotation_add: H.Operator<{}>;
  /**
   * Unlink active Annotation data-block
   *
   * bpy.ops.gpencil.data_unlink
   */
  data_unlink: H.Operator<{}>;
  /**
   * Add new Annotation layer or note for the active data-block
   *
   * bpy.ops.gpencil.layer_annotation_add
   */
  layer_annotation_add: H.Operator<{}>;
  /**
   * Move the active Annotation layer up/down in the list
   *
   * bpy.ops.gpencil.layer_annotation_move
   */
  layer_annotation_move: H.Operator<{
    /**
     * Type Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    type?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Remove active Annotation layer
   *
   * bpy.ops.gpencil.layer_annotation_remove
   */
  layer_annotation_remove: H.Operator<{}>;
}