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.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
// 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.grease_pencil */
export interface Ops {
/**
* Delete the active Grease Pencil frame(s)
*
* bpy.ops.grease_pencil.active_frame_delete
*/
active_frame_delete: H.Operator<{
/** Delete active keyframes of all layers Default: False. */
all?: H.In<boolean>;
}>;
/**
* Bake Grease Pencil object transform to Grease Pencil keyframes
*
* bpy.ops.grease_pencil.bake_grease_pencil_animation
*/
bake_grease_pencil_animation: H.Operator<{
/** The start frame Default: 1. */
frame_start?: H.In<number>;
/** The end frame of animation Default: 250. */
frame_end?: H.In<number>;
/** Step between generated frames Default: 1. */
step?: H.In<number>;
/** Convert only selected keyframes Default: False. */
only_selected?: H.In<boolean>;
/** Destination frame Default: 1. */
frame_target?: H.In<number>;
/**
* Projection Type Default: 'KEEP'.
* - `KEEP`: No Reproject
* - `FRONT`: Front (Reproject the strokes using the X-Z plane)
* - `SIDE`: Side (Reproject the strokes using the Y-Z plane)
* - `TOP`: Top (Reproject the strokes using the X-Y plane)
* - `VIEW`: View (Reproject the strokes to end up on the same plane, as if drawn from the current viewpoint using 'Cursor' Stroke Placement)
* - `CURSOR`: Cursor (Reproject the strokes using the orientation of 3D cursor)
*/
project_type?: H.In<"KEEP" | "FRONT" | "SIDE" | "TOP" | "VIEW" | "CURSOR">;
}>;
/**
* Draw a new stroke in the active Grease Pencil object
*
* bpy.ops.grease_pencil.brush_stroke
*/
brush_stroke: H.Operator<{
/** Stroke */
stroke?: H.In<readonly Record<string, any>[]>;
/**
* Action taken when a paint stroke is made Default: 'NORMAL'.
* - `NORMAL`: Regular (Apply brush normally)
* - `INVERT`: Invert (Invert action of brush for duration of stroke)
*/
mode?: H.In<"NORMAL" | "INVERT">;
/**
* Brush to use for duration of stroke Default: 'None'.
* - `None`: None (Apply brush normally)
* - `SMOOTH`: Smooth (Switch to smooth brush for duration of stroke)
* - `ERASE`: Erase (Switch to erase brush for duration of stroke)
* - `MASK`: Mask (Switch to mask brush for duration of stroke)
*/
brush_toggle?: H.In<"None" | "SMOOTH" | "ERASE" | "MASK">;
/** Whether a tablet's eraser mode is being used Default: False. */
pen_flip?: H.In<boolean>;
}>;
/**
* Change curve caps mode (rounded or flat)
*
* bpy.ops.grease_pencil.caps_set
*/
caps_set: H.Operator<{
/**
* Type Default: 'ROUND'.
* - `ROUND`: Rounded (Set as default rounded)
* - `FLAT`: Flat
* - `START`: Toggle Start
* - `END`: Toggle End
*/
type?: H.In<"ROUND" | "FLAT" | "START" | "END">;
}>;
/**
* Remove loose points
*
* bpy.ops.grease_pencil.clean_loose
*/
clean_loose: H.Operator<{
/** Number of points to consider stroke as loose Default: 1. */
limit?: H.In<number>;
}>;
/**
* Convert type of selected curves
*
* bpy.ops.grease_pencil.convert_curve_type
*/
convert_curve_type: H.Operator<{
/**
* Type Default: 'POLY'.
* - `CATMULL_ROM`: Catmull Rom
* - `POLY`: Poly
* - `BEZIER`: Bézier
* - `NURBS`: NURBS
*/
type?: H.In<"CATMULL_ROM" | "POLY" | "BEZIER" | "NURBS">;
/** The distance that the resulting points are allowed to be within Default: 0.01. */
threshold?: H.In<number>;
}>;
/**
* Copy the selected Grease Pencil points or strokes to the internal clipboard
*
* bpy.ops.grease_pencil.copy
*/
copy: H.Operator<{}>;
/**
* Close or open the selected stroke adding a segment from last to first point
*
* bpy.ops.grease_pencil.cyclical_set
*/
cyclical_set: H.Operator<{
/**
* Type Default: 'TOGGLE'.
* - `CLOSE`: Close All
* - `OPEN`: Open All
* - `TOGGLE`: Toggle
*/
type?: H.In<"CLOSE" | "OPEN" | "TOGGLE">;
/** Add point in the new segment to keep the same density Default: True. */
subdivide_cyclic_segment?: H.In<boolean>;
}>;
/**
* Delete selected strokes or points
*
* bpy.ops.grease_pencil.delete
*/
delete: H.Operator<{
/**
* The kind of strokes or fills to delete Default: 'ALL'.
* - `ALL`: All (Delete all selected strokes or points)
* - `STROKES`: Only Strokes (Delete only strokes and not fills)
* - `FILLS`: Only Fills (Delete only fills and not strokes)
*/
mode?: H.In<"ALL" | "STROKES" | "FILLS">;
}>;
/**
* Remove breakdown frames generated by interpolating between two Grease Pencil frames
*
* bpy.ops.grease_pencil.delete_breakdown
*/
delete_breakdown: H.Operator<{}>;
/**
* Delete Grease Pencil Frame(s)
*
* bpy.ops.grease_pencil.delete_frame
*/
delete_frame: H.Operator<{
/**
* Method used for deleting Grease Pencil frames Default: 'ACTIVE_FRAME'.
* - `ACTIVE_FRAME`: Active Frame (Deletes current frame in the active layer)
* - `ALL_FRAMES`: All Active Frames (Delete active frames for all layers)
*/
type?: H.In<"ACTIVE_FRAME" | "ALL_FRAMES">;
}>;
/**
* Delete selected points without splitting strokes
*
* bpy.ops.grease_pencil.dissolve
*/
dissolve: H.Operator<{
/**
* Method used for dissolving stroke points Default: 'POINTS'.
* - `POINTS`: Dissolve (Dissolve selected points)
* - `BETWEEN`: Dissolve Between (Dissolve points between selected points)
* - `UNSELECT`: Dissolve Unselect (Dissolve all unselected points)
*/
type?: H.In<"POINTS" | "BETWEEN" | "UNSELECT">;
}>;
/**
* Duplicate the selected points
*
* bpy.ops.grease_pencil.duplicate
*/
duplicate: H.Operator<{}>;
/**
* Make copies of the selected Grease Pencil strokes and move them
*
* bpy.ops.grease_pencil.duplicate_move
*/
duplicate_move: H.Operator<{
/** Duplicate the selected points */
GREASE_PENCIL_OT_duplicate?: any;
/** Move selected items */
TRANSFORM_OT_translate?: any;
}>;
/**
* Erase points in the box region
*
* bpy.ops.grease_pencil.erase_box
*/
erase_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>;
}>;
/**
* Erase points in the lasso region
*
* bpy.ops.grease_pencil.erase_lasso
*/
erase_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>;
}>;
/**
* Extrude the selected points
*
* bpy.ops.grease_pencil.extrude
*/
extrude: H.Operator<{}>;
/**
* Extrude selected points and move them
*
* bpy.ops.grease_pencil.extrude_move
*/
extrude_move: H.Operator<{
/** Extrude the selected points */
GREASE_PENCIL_OT_extrude?: any;
/** Move selected items */
TRANSFORM_OT_translate?: any;
}>;
/**
* Fill with color the shape formed by strokes
*
* bpy.ops.grease_pencil.fill
*/
fill: H.Operator<{
/** Find boundary of unfilled instead of filled regions Default: False. */
invert?: H.In<boolean>;
/** Use precision movement for extension lines Default: False. */
precision?: H.In<boolean>;
}>;
/**
* Remove any keyframe that is a duplicate of the previous one
*
* bpy.ops.grease_pencil.frame_clean_duplicate
*/
frame_clean_duplicate: H.Operator<{
/** Only delete selected keyframes Default: False. */
selected?: H.In<boolean>;
}>;
/**
* Make a copy of the active Grease Pencil frame(s)
*
* bpy.ops.grease_pencil.frame_duplicate
*/
frame_duplicate: H.Operator<{
/** Duplicate active keyframes of all layer Default: False. */
all?: H.In<boolean>;
}>;
/**
* Insert a blank frame on the current scene frame
*
* bpy.ops.grease_pencil.insert_blank_frame
*/
insert_blank_frame: H.Operator<{
/** Insert a blank frame in all editable layers Default: False. */
all_layers?: H.In<boolean>;
/** Duration Default: 0. */
duration?: H.In<number>;
}>;
/**
* Interpolate Grease Pencil strokes between frames
*
* bpy.ops.grease_pencil.interpolate
*/
interpolate: H.Operator<{
/** Bias factor for which frame has more influence on the interpolated strokes Default: 0.0. */
shift?: H.In<number>;
/**
* Layers included in the interpolation Default: 'ACTIVE'.
* - `ACTIVE`: Active
* - `ALL`: All Layers
*/
layers?: H.In<"ACTIVE" | "ALL">;
/** Exclude existing Breakdowns keyframes as interpolation extremes Default: False. */
exclude_breakdowns?: H.In<boolean>;
/** Use only selected strokes for interpolating Default: False. */
use_selection?: H.In<boolean>;
/**
* Invert destination stroke to match start and end with source stroke Default: 'AUTO'.
* - `NONE`: No Flip
* - `FLIP`: Flip
* - `AUTO`: Automatic
*/
flip?: H.In<"NONE" | "FLIP" | "AUTO">;
/** Number of times to smooth newly created strokes Default: 1. */
smooth_steps?: H.In<number>;
/** Amount of smoothing to apply to interpolated strokes, to reduce jitter/noise Default: 0.0. */
smooth_factor?: H.In<number>;
}>;
/**
* Generate 'in-betweens' to smoothly interpolate between Grease Pencil frames
*
* bpy.ops.grease_pencil.interpolate_sequence
*/
interpolate_sequence: H.Operator<{
/** Number of frames between generated interpolated frames Default: 1. */
step?: H.In<number>;
/**
* Layers included in the interpolation Default: 'ACTIVE'.
* - `ACTIVE`: Active
* - `ALL`: All Layers
*/
layers?: H.In<"ACTIVE" | "ALL">;
/** Exclude existing Breakdowns keyframes as interpolation extremes Default: False. */
exclude_breakdowns?: H.In<boolean>;
/** Use only selected strokes for interpolating Default: False. */
use_selection?: H.In<boolean>;
/**
* Invert destination stroke to match start and end with source stroke Default: 'AUTO'.
* - `NONE`: No Flip
* - `FLIP`: Flip
* - `AUTO`: Automatic
*/
flip?: H.In<"NONE" | "FLIP" | "AUTO">;
/** Number of times to smooth newly created strokes Default: 1. */
smooth_steps?: H.In<number>;
/** Amount of smoothing to apply to interpolated strokes, to reduce jitter/noise Default: 0.0. */
smooth_factor?: H.In<number>;
/** Interpolation method to use the next time 'Interpolate Sequence' is run Default: 'LINEAR'. */
type?: H.In<E.GreasePencilInterpolateSequenceType>;
/**
* Which ends of the segment between the preceding and following Grease Pencil frames easing interpolation is applied to Default: 'EASE_IN'.
* - `AUTO`: Automatic Easing (Easing type is chosen automatically based on what the type of interpolation used (e.g. Ease In for transitional types, and Ease Out for dynamic effects))
* - `EASE_IN`: Ease In (Only on the end closest to the next keyframe)
* - `EASE_OUT`: Ease Out (Only on the end closest to the first keyframe)
* - `EASE_IN_OUT`: Ease In and Out (Segment between both keyframes)
*/
easing?: H.In<"AUTO" | "EASE_IN" | "EASE_OUT" | "EASE_IN_OUT">;
/** Amount of overshoot for 'back' easing Default: 1.702. */
back?: H.In<number>;
/** Amount to boost elastic bounces for 'elastic' easing Default: 0.15. */
amplitude?: H.In<number>;
/** Time between bounces for elastic easing Default: 0.15. */
period?: H.In<number>;
}>;
/**
* Join selected strokes into one fill to create holes
*
* bpy.ops.grease_pencil.join_fills
*/
join_fills: H.Operator<{}>;
/**
* New stroke from selected points/strokes
*
* bpy.ops.grease_pencil.join_selection
*/
join_selection: H.Operator<{
/**
* Defines how the operator will behave on the selection in the active layer Default: 'JOINSTROKES'.
* - `JOINSTROKES`: Join Strokes (Join the selected strokes into one stroke)
* - `SPLITCOPY`: Split and Copy (Copy the selected points to a new stroke)
* - `SPLIT`: Split (Split the selected point to a new stroke)
*/
type?: H.In<"JOINSTROKES" | "SPLITCOPY" | "SPLIT">;
}>;
/**
* Set the active Grease Pencil layer
*
* bpy.ops.grease_pencil.layer_active
*/
layer_active: H.Operator<{
/** Grease Pencil Layer Default: 0. */
layer?: H.In<number>;
}>;
/**
* Add a new Grease Pencil layer in the active object
*
* bpy.ops.grease_pencil.layer_add
*/
layer_add: H.Operator<{
/** Name of the new layer Default: "Layer". */
new_layer_name?: H.In<string>;
}>;
/**
* Make a copy of the active Grease Pencil layer
*
* bpy.ops.grease_pencil.layer_duplicate
*/
layer_duplicate: H.Operator<{
/** Add Empty Keyframes Default: False. */
empty_keyframes?: H.In<boolean>;
}>;
/**
* Make a copy of the active Grease Pencil layer to selected object
*
* bpy.ops.grease_pencil.layer_duplicate_object
*/
layer_duplicate_object: H.Operator<{
/** Copy only active Layer, uncheck to append all layers Default: True. */
only_active?: H.In<boolean>;
/**
* Mode Default: 'ALL'.
* - `ALL`: All Frames
* - `ACTIVE`: Active Frame
*/
mode?: H.In<"ALL" | "ACTIVE">;
}>;
/**
* Add a new Grease Pencil layer group in the active object
*
* bpy.ops.grease_pencil.layer_group_add
*/
layer_group_add: H.Operator<{
/** Name of the new layer group Default: "". */
new_layer_group_name?: H.In<string>;
}>;
/**
* Change layer group icon
*
* bpy.ops.grease_pencil.layer_group_color_tag
*/
layer_group_color_tag: H.Operator<{
/** Color Tag Default: 'COLOR1'. */
color_tag?: H.In<E.GreasePencilLayerGroupColorTag>;
}>;
/**
* Remove Grease Pencil layer group in the active object
*
* bpy.ops.grease_pencil.layer_group_remove
*/
layer_group_remove: H.Operator<{
/** Keep the children nodes of the group and only delete the group itself Default: False. */
keep_children?: H.In<boolean>;
}>;
/**
* Hide selected/unselected Grease Pencil layers
*
* bpy.ops.grease_pencil.layer_hide
*/
layer_hide: H.Operator<{
/** Hide unselected rather than selected layers Default: False. */
unselected?: H.In<boolean>;
}>;
/**
* Make only active layer visible/editable
*
* bpy.ops.grease_pencil.layer_isolate
*/
layer_isolate: H.Operator<{
/** Also affect the visibility Default: False. */
affect_visibility?: H.In<boolean>;
}>;
/**
* Lock all Grease Pencil layers to prevent them from being accidentally modified
*
* bpy.ops.grease_pencil.layer_lock_all
*/
layer_lock_all: H.Operator<{
/** Lock/Unlock all layers Default: True. */
lock?: H.In<boolean>;
}>;
/**
* Add new layer as masking
*
* bpy.ops.grease_pencil.layer_mask_add
*/
layer_mask_add: H.Operator<{
/** Name of the layer Default: "". */
name?: H.In<string>;
}>;
/**
* Remove Layer Mask
*
* bpy.ops.grease_pencil.layer_mask_remove
*/
layer_mask_remove: H.Operator<{}>;
/**
* Reorder the active Grease Pencil mask layer up/down in the list
*
* bpy.ops.grease_pencil.layer_mask_reorder
*/
layer_mask_reorder: H.Operator<{
/**
* Direction Default: 'UP'.
* - `UP`: Up
* - `DOWN`: Down
*/
direction?: H.In<"UP" | "DOWN">;
}>;
/**
* Combine layers based on the mode into one layer
*
* bpy.ops.grease_pencil.layer_merge
*/
layer_merge: H.Operator<{
/**
* Mode Default: 'ACTIVE'.
* - `ACTIVE`: Active (Combine the active layer with the layer just below (if it exists))
* - `GROUP`: Group (Combine layers in the active group into a single layer)
* - `ALL`: All (Combine all layers into a single layer)
*/
mode?: H.In<"ACTIVE" | "GROUP" | "ALL">;
}>;
/**
* Move the active Grease Pencil layer or Group
*
* bpy.ops.grease_pencil.layer_move
*/
layer_move: H.Operator<{
/**
* Direction Default: 'UP'.
* - `UP`: Up
* - `DOWN`: Down
*/
direction?: H.In<"UP" | "DOWN">;
}>;
/**
* Remove the active Grease Pencil layer
*
* bpy.ops.grease_pencil.layer_remove
*/
layer_remove: H.Operator<{}>;
/**
* Show all Grease Pencil layers
*
* bpy.ops.grease_pencil.layer_reveal
*/
layer_reveal: H.Operator<{}>;
/**
* Append Materials of the active Grease Pencil to other object
*
* bpy.ops.grease_pencil.material_copy_to_object
*/
material_copy_to_object: H.Operator<{
/** Append only active material, uncheck to append all materials Default: True. */
only_active?: H.In<boolean>;
}>;
/**
* Hide active/inactive Grease Pencil material(s)
*
* bpy.ops.grease_pencil.material_hide
*/
material_hide: H.Operator<{
/** Hide inactive materials instead of the active one Default: False. */
invert?: H.In<boolean>;
}>;
/**
* Toggle whether the active material is the only one that is editable and/or visible
*
* bpy.ops.grease_pencil.material_isolate
*/
material_isolate: H.Operator<{
/** In addition to toggling the editability, also affect the visibility Default: False. */
affect_visibility?: H.In<boolean>;
}>;
/**
* Lock all Grease Pencil materials to prevent them from being accidentally modified
*
* bpy.ops.grease_pencil.material_lock_all
*/
material_lock_all: H.Operator<{}>;
/**
* Lock any material not used in any selected stroke
*
* bpy.ops.grease_pencil.material_lock_unselected
*/
material_lock_unselected: H.Operator<{}>;
/**
* Lock and hide any material not used
*
* bpy.ops.grease_pencil.material_lock_unused
*/
material_lock_unused: H.Operator<{}>;
/**
* Unhide all hidden Grease Pencil materials
*
* bpy.ops.grease_pencil.material_reveal
*/
material_reveal: H.Operator<{}>;
/**
* Select/Deselect all Grease Pencil strokes using current material
*
* bpy.ops.grease_pencil.material_select
*/
material_select: H.Operator<{
/** Unselect strokes Default: False. */
deselect?: H.In<boolean>;
}>;
/**
* Unlock all Grease Pencil materials so that they can be edited
*
* bpy.ops.grease_pencil.material_unlock_all
*/
material_unlock_all: H.Operator<{}>;
/**
* Move selected strokes to another layer
*
* bpy.ops.grease_pencil.move_to_layer
*/
move_to_layer: H.Operator<{
/** Target Grease Pencil Layer Default: "". */
target_layer_name?: H.In<string>;
/** Group to add the new layer to Default: "". */
target_group_name?: H.In<string>;
/** Move selection to a new layer Default: False. */
add_new_layer?: H.In<boolean>;
}>;
/**
* Convert selected strokes to perimeter
*
* bpy.ops.grease_pencil.outline
*/
outline: H.Operator<{
/**
* Projection Mode Default: 'VIEW'.
* - `VIEW`: View
* - `FRONT`: Front
* - `SIDE`: Side
* - `TOP`: Top
* - `CURSOR`: Cursor
* - `CAMERA`: Camera
*/
type?: H.In<"VIEW" | "FRONT" | "SIDE" | "TOP" | "CURSOR" | "CAMERA">;
/** Radius Default: 0.01. */
radius?: H.In<number>;
/** Offset Factor Default: -1.0. */
offset_factor?: H.In<number>;
/** Corner Subdivisions Default: 2. */
corner_subdivisions?: H.In<number>;
}>;
/**
* Enter/Exit paint mode for Grease Pencil strokes
*
* bpy.ops.grease_pencil.paintmode_toggle
*/
paintmode_toggle: H.Operator<{
/** Return to previous mode Default: False. */
back?: H.In<boolean>;
}>;
/**
* Paste Grease Pencil points or strokes from the internal clipboard to the active layer
*
* bpy.ops.grease_pencil.paste
*/
paste: H.Operator<{
/**
* Type Default: 'ACTIVE'.
* - `ACTIVE`: Paste to Active
* - `LAYER`: Paste by Layer
*/
type?: H.In<"ACTIVE" | "LAYER">;
/** Add pasted strokes behind all strokes Default: False. */
paste_back?: H.In<boolean>;
/** Keep the world transform of strokes from the clipboard unchanged Default: False. */
keep_world_transform?: H.In<boolean>;
}>;
/**
* Construct and edit splines
*
* bpy.ops.grease_pencil.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>;
}>;
/**
* Create predefined Grease Pencil stroke arcs
*
* bpy.ops.grease_pencil.primitive_arc
*/
primitive_arc: H.Operator<{
/** Number of subdivisions per segment Default: 62. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'ARC'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Create predefined Grease Pencil stroke boxes
*
* bpy.ops.grease_pencil.primitive_box
*/
primitive_box: H.Operator<{
/** Number of subdivisions per segment Default: 3. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'BOX'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Create predefined Grease Pencil stroke circles
*
* bpy.ops.grease_pencil.primitive_circle
*/
primitive_circle: H.Operator<{
/** Number of subdivisions per segment Default: 94. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'CIRCLE'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Create predefined Grease Pencil stroke curve shapes
*
* bpy.ops.grease_pencil.primitive_curve
*/
primitive_curve: H.Operator<{
/** Number of subdivisions per segment Default: 62. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'CURVE'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Create predefined Grease Pencil stroke lines
*
* bpy.ops.grease_pencil.primitive_line
*/
primitive_line: H.Operator<{
/** Number of subdivisions per segment Default: 6. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'LINE'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Create predefined Grease Pencil stroke polylines
*
* bpy.ops.grease_pencil.primitive_polyline
*/
primitive_polyline: H.Operator<{
/** Number of subdivisions per segment Default: 6. */
subdivision?: H.In<number>;
/**
* Type of shape Default: 'POLYLINE'.
* - `BOX`: Box
* - `LINE`: Line
* - `POLYLINE`: Polyline
* - `CIRCLE`: Circle
* - `ARC`: Arc
* - `CURVE`: Curve
*/
type?: H.In<"BOX" | "LINE" | "POLYLINE" | "CIRCLE" | "ARC" | "CURVE">;
}>;
/**
* Mask active layer with layer above or below
*
* bpy.ops.grease_pencil.relative_layer_mask_add
*/
relative_layer_mask_add: H.Operator<{
/**
* Which relative layer (above or below) to use as a mask Default: 'ABOVE'.
* - `ABOVE`: Above
* - `BELOW`: Below
*/
mode?: H.In<"ABOVE" | "BELOW">;
}>;
/**
* Remove all the strokes that were created from the fill tool as guides
*
* bpy.ops.grease_pencil.remove_fill_guides
*/
remove_fill_guides: H.Operator<{
/**
* Mode Default: 'ALL_FRAMES'.
* - `ACTIVE_FRAME`: Active Frame
* - `ALL_FRAMES`: All Frames
*/
mode?: H.In<"ACTIVE_FRAME" | "ALL_FRAMES">;
}>;
/**
* Change the display order of the selected strokes
*
* bpy.ops.grease_pencil.reorder
*/
reorder: H.Operator<{
/**
* Direction Default: 'TOP'.
* - `TOP`: Bring to Front
* - `UP`: Bring Forward
* - `DOWN`: Send Backward
* - `BOTTOM`: Send to Back
*/
direction?: H.In<"TOP" | "UP" | "DOWN" | "BOTTOM">;
}>;
/**
* Reproject the selected strokes from the current viewpoint as if they had been newly drawn (e.g. to fix problems from accidental 3D cursor movement or accidental viewport changes, or for matching deforming geometry)
*
* bpy.ops.grease_pencil.reproject
*/
reproject: H.Operator<{
/**
* Projection Type Default: 'VIEW'.
* - `FRONT`: Front (Reproject the strokes using the X-Z plane)
* - `SIDE`: Side (Reproject the strokes using the Y-Z plane)
* - `TOP`: Top (Reproject the strokes using the X-Y plane)
* - `VIEW`: View (Reproject the strokes to end up on the same plane, as if drawn from the current viewpoint using 'Cursor' Stroke Placement)
* - `SURFACE`: Surface (Reproject the strokes on to the scene geometry, as if drawn using 'Surface' placement)
* - `CURSOR`: Cursor (Reproject the strokes using the orientation of 3D cursor)
*/
type?: H.In<"FRONT" | "SIDE" | "TOP" | "VIEW" | "SURFACE" | "CURSOR">;
/** Keep original strokes and create a copy before reprojecting Default: False. */
keep_original?: H.In<boolean>;
/** Surface Offset Default: 0.0. */
offset?: H.In<number>;
}>;
/**
* Reset UV transformation to default values
*
* bpy.ops.grease_pencil.reset_uvs
*/
reset_uvs: H.Operator<{}>;
/**
* Sculpt strokes in the active Grease Pencil object
*
* bpy.ops.grease_pencil.sculpt_paint
*/
sculpt_paint: H.Operator<{
/** Stroke */
stroke?: H.In<readonly Record<string, any>[]>;
/**
* Action taken when a paint stroke is made Default: 'NORMAL'.
* - `NORMAL`: Regular (Apply brush normally)
* - `INVERT`: Invert (Invert action of brush for duration of stroke)
*/
mode?: H.In<"NORMAL" | "INVERT">;
/**
* Brush to use for duration of stroke Default: 'None'.
* - `None`: None (Apply brush normally)
* - `SMOOTH`: Smooth (Switch to smooth brush for duration of stroke)
* - `ERASE`: Erase (Switch to erase brush for duration of stroke)
* - `MASK`: Mask (Switch to mask brush for duration of stroke)
*/
brush_toggle?: H.In<"None" | "SMOOTH" | "ERASE" | "MASK">;
/** Whether a tablet's eraser mode is being used Default: False. */
pen_flip?: H.In<boolean>;
}>;
/**
* Enter/Exit sculpt mode for Grease Pencil strokes
*
* bpy.ops.grease_pencil.sculptmode_toggle
*/
sculptmode_toggle: H.Operator<{
/** Return to previous mode Default: False. */
back?: H.In<boolean>;
}>;
/**
* (De)select all visible strokes
*
* bpy.ops.grease_pencil.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 alternated points in strokes with already selected points
*
* bpy.ops.grease_pencil.select_alternate
*/
select_alternate: H.Operator<{
/** (De)select the first and last point of each stroke Default: False. */
deselect_ends?: H.In<boolean>;
}>;
/**
* Select/Deselect all strokes or fills
*
* bpy.ops.grease_pencil.select_by_stroke_type
*/
select_by_stroke_type: H.Operator<{
/**
* Type Default: 'STROKE'.
* - `STROKE`: Stroke
* - `FILL`: Fill
*/
type?: H.In<"STROKE" | "FILL">;
/** Unselect strokes Default: False. */
deselect?: H.In<boolean>;
}>;
/**
* Select end points of strokes
*
* bpy.ops.grease_pencil.select_ends
*/
select_ends: H.Operator<{
/** Number of points to select from the start Default: 0. */
amount_start?: H.In<number>;
/** Number of points to select from the end Default: 1. */
amount_end?: H.In<number>;
}>;
/**
* Select all curves in a fill
*
* bpy.ops.grease_pencil.select_fill
*/
select_fill: H.Operator<{}>;
/**
* Shrink the selection by one point
*
* bpy.ops.grease_pencil.select_less
*/
select_less: H.Operator<{}>;
/**
* Select all points in curves with any point selection
*
* bpy.ops.grease_pencil.select_linked
*/
select_linked: H.Operator<{
/** Deselect linked strokes Default: False. */
deselect?: H.In<boolean>;
}>;
/**
* Grow the selection by one point
*
* bpy.ops.grease_pencil.select_more
*/
select_more: H.Operator<{}>;
/**
* Selects random points from the current strokes selection
*
* bpy.ops.grease_pencil.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 all strokes with similar characteristics
*
* bpy.ops.grease_pencil.select_similar
*/
select_similar: H.Operator<{
/**
* Mode Default: 'LAYER'.
* - `LAYER`: Layer
* - `MATERIAL`: Material
* - `VERTEX_COLOR`: Vertex Color
* - `RADIUS`: Radius
* - `OPACITY`: Opacity
*/
mode?: H.In<"LAYER" | "MATERIAL" | "VERTEX_COLOR" | "RADIUS" | "OPACITY">;
/** Threshold Default: 0.1. */
threshold?: H.In<number>;
}>;
/**
* Separate the selected geometry into a new Grease Pencil object
*
* bpy.ops.grease_pencil.separate
*/
separate: H.Operator<{
/**
* Mode Default: 'SELECTED'.
* - `SELECTED`: Selection (Separate selected geometry)
* - `MATERIAL`: By Material (Separate by material)
* - `LAYER`: By Layer (Separate by layer)
*/
mode?: H.In<"SELECTED" | "MATERIAL" | "LAYER">;
}>;
/**
* Separate the selected strokes from current fill
*
* bpy.ops.grease_pencil.separate_fills
*/
separate_fills: H.Operator<{
/** Create a separate fill for each individual stroke Default: True. */
individual?: H.In<boolean>;
}>;
/**
* Set the selected stroke material as the active material
*
* bpy.ops.grease_pencil.set_active_material
*/
set_active_material: H.Operator<{}>;
/**
* Set the corner type of the selected points
*
* bpy.ops.grease_pencil.set_corner_type
*/
set_corner_type: H.Operator<{
/**
* Corner Type Default: 'SHARP'.
* - `ROUND`: Round
* - `FLAT`: Flat
* - `SHARP`: Sharp
*/
corner_type?: H.In<"ROUND" | "FLAT" | "SHARP">;
/** All corners sharper than the Miter angle will be cut flat Default: 0.785398. */
miter_angle?: H.In<number>;
}>;
/**
* Set resolution of selected curves
*
* bpy.ops.grease_pencil.set_curve_resolution
*/
set_curve_resolution: H.Operator<{
/** The resolution to use for each curve segment Default: 12. */
resolution?: H.In<number>;
}>;
/**
* Set type of selected curves
*
* bpy.ops.grease_pencil.set_curve_type
*/
set_curve_type: 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>;
}>;
/**
* Set the handle type for Bézier curves
*
* bpy.ops.grease_pencil.set_handle_type
*/
set_handle_type: 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">;
}>;
/**
* Set active material
*
* bpy.ops.grease_pencil.set_material
*/
set_material: H.Operator<{
/**
* Material Slot Default: 'DEFAULT'.
* - `DEFAULT`: Default
*/
slot?: H.In<string>;
}>;
/**
* Change the selection mode for Grease Pencil strokes
*
* bpy.ops.grease_pencil.set_selection_mode
*/
set_selection_mode: H.Operator<{
/**
* Mode Default: 'POINT'.
* - `POINT`: Point (Select only points)
* - `STROKE`: Stroke (Select all stroke points)
* - `SEGMENT`: Segment (Select all stroke points between other strokes)
*/
mode?: H.In<"POINT" | "STROKE" | "SEGMENT">;
}>;
/**
* Select which point is the beginning of the curve
*
* bpy.ops.grease_pencil.set_start_point
*/
set_start_point: H.Operator<{}>;
/**
* Set the stroke type (stroke, fill, or both) of the selected strokes
*
* bpy.ops.grease_pencil.set_stroke_type
*/
set_stroke_type: H.Operator<{
/**
* Type Default: 'STROKE'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Both
*/
type?: H.In<"STROKE" | "FILL" | "BOTH">;
}>;
/**
* Set all stroke points to same opacity
*
* bpy.ops.grease_pencil.set_uniform_opacity
*/
set_uniform_opacity: H.Operator<{
/** Stroke Opacity Default: 1.0. */
opacity_stroke?: H.In<number>;
/** Fill Opacity Default: 0.5. */
opacity_fill?: H.In<number>;
}>;
/**
* Set all stroke points to same thickness
*
* bpy.ops.grease_pencil.set_uniform_thickness
*/
set_uniform_thickness: H.Operator<{
/** Thickness Default: 0.1. */
thickness?: H.In<number>;
}>;
/**
* Snap cursor to center of selected points
*
* bpy.ops.grease_pencil.snap_cursor_to_selected
*/
snap_cursor_to_selected: H.Operator<{}>;
/**
* Snap selected points/strokes to the cursor
*
* bpy.ops.grease_pencil.snap_to_cursor
*/
snap_to_cursor: H.Operator<{
/** Offset the entire stroke instead of selected points only Default: True. */
use_offset?: H.In<boolean>;
}>;
/**
* Snap selected points to the nearest grid points
*
* bpy.ops.grease_pencil.snap_to_grid
*/
snap_to_grid: H.Operator<{}>;
/**
* Assign the active material slot to the selected strokes
*
* bpy.ops.grease_pencil.stroke_material_set
*/
stroke_material_set: H.Operator<{
/** Name of the material Default: "". */
material?: H.In<string>;
}>;
/**
* Merge points by distance
*
* bpy.ops.grease_pencil.stroke_merge_by_distance
*/
stroke_merge_by_distance: H.Operator<{
/** Threshold Default: 0.001. */
threshold?: H.In<number>;
/** Use whole stroke, not only selected points Default: False. */
use_unselected?: H.In<boolean>;
}>;
/**
* Reset vertex color for all or selected strokes
*
* bpy.ops.grease_pencil.stroke_reset_vertex_color
*/
stroke_reset_vertex_color: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
}>;
/**
* Simplify selected strokes
*
* bpy.ops.grease_pencil.stroke_simplify
*/
stroke_simplify: H.Operator<{
/** Factor Default: 0.01. */
factor?: H.In<number>;
/** Length Default: 0.05. */
length?: H.In<number>;
/** Distance Default: 0.01. */
distance?: H.In<number>;
/** Steps Default: 1. */
steps?: H.In<number>;
/**
* Method used for simplifying stroke points Default: 'FIXED'.
* - `FIXED`: Fixed (Delete alternating vertices in the stroke, except extremes)
* - `ADAPTIVE`: Adaptive (Use a Ramer-Douglas-Peucker algorithm to simplify the stroke preserving main shape)
* - `SAMPLE`: Sample (Re-sample the stroke with segments of the specified length)
* - `MERGE`: Merge (Simplify the stroke by merging vertices closer than a given distance)
*/
mode?: H.In<"FIXED" | "ADAPTIVE" | "SAMPLE" | "MERGE">;
}>;
/**
* Smooth selected strokes
*
* bpy.ops.grease_pencil.stroke_smooth
*/
stroke_smooth: H.Operator<{
/** Iterations Default: 10. */
iterations?: H.In<number>;
/** Factor Default: 1.0. */
factor?: H.In<number>;
/** Smooth Endpoints Default: False. */
smooth_ends?: H.In<boolean>;
/** Keep Shape Default: False. */
keep_shape?: H.In<boolean>;
/** Position Default: True. */
smooth_position?: H.In<boolean>;
/** Radius Default: True. */
smooth_radius?: H.In<boolean>;
/** Opacity Default: False. */
smooth_opacity?: H.In<boolean>;
}>;
/**
* Split selected points to a new stroke
*
* bpy.ops.grease_pencil.stroke_split
*/
stroke_split: H.Operator<{}>;
/**
* Subdivide between continuous selected points of the stroke adding a point half way between them
*
* bpy.ops.grease_pencil.stroke_subdivide
*/
stroke_subdivide: H.Operator<{
/** Number of Cuts Default: 1. */
number_cuts?: H.In<number>;
/** Smooth only selected points in the stroke Default: True. */
only_selected?: H.In<boolean>;
}>;
/**
* Subdivide strokes and smooth them
*
* bpy.ops.grease_pencil.stroke_subdivide_smooth
*/
stroke_subdivide_smooth: H.Operator<{
/** Subdivide between continuous selected points of the stroke adding a point half way between them */
GREASE_PENCIL_OT_stroke_subdivide?: any;
/** Smooth selected strokes */
GREASE_PENCIL_OT_stroke_smooth?: any;
}>;
/**
* Change direction of the points of the selected strokes
*
* bpy.ops.grease_pencil.stroke_switch_direction
*/
stroke_switch_direction: H.Operator<{}>;
/**
* Delete stroke points in between intersecting strokes
*
* bpy.ops.grease_pencil.stroke_trim
*/
stroke_trim: 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>;
}>;
/**
* Draw a line to set the fill material gradient for the selected strokes
*
* bpy.ops.grease_pencil.texture_gradient
*/
texture_gradient: H.Operator<{
/** X Start Default: 0. */
xstart?: H.In<number>;
/** X End Default: 0. */
xend?: H.In<number>;
/** Y Start Default: 0. */
ystart?: H.In<number>;
/** Y End Default: 0. */
yend?: H.In<number>;
/** Flip Default: False. */
flip?: H.In<boolean>;
/** Mouse cursor style to use during the modal operator Default: 5. */
cursor?: H.In<number>;
}>;
/**
* Extract Grease Pencil strokes from image
*
* bpy.ops.grease_pencil.trace_image
*/
trace_image: H.Operator<{
/**
* Target Grease Pencil Default: 'NEW'.
* - `NEW`: New Object
* - `SELECTED`: Selected Object
*/
target?: H.In<"NEW" | "SELECTED">;
/** Determine the lightness threshold above which strokes are generated Default: 0.5. */
threshold?: H.In<number>;
/** Determines how to resolve ambiguities during decomposition of bitmaps into paths Default: 'MINORITY'. */
turnpolicy?: H.In<E.GreasePencilTraceImageTurnpolicy>;
/**
* Determines if trace simple image or full sequence Default: 'SINGLE'.
* - `SINGLE`: Single (Trace the current frame of the image)
* - `SEQUENCE`: Sequence (Trace full sequence)
*/
mode?: H.In<"SINGLE" | "SEQUENCE">;
/** Trace Image starting in current image frame Default: True. */
use_current_frame?: H.In<boolean>;
/** Used to trace only one frame of the image sequence, set to zero to trace all Default: 0. */
frame_number?: H.In<number>;
}>;
/**
* Draw on vertex colors in the active Grease Pencil object
*
* bpy.ops.grease_pencil.vertex_brush_stroke
*/
vertex_brush_stroke: H.Operator<{
/** Stroke */
stroke?: H.In<readonly Record<string, any>[]>;
/**
* Action taken when a paint stroke is made Default: 'NORMAL'.
* - `NORMAL`: Regular (Apply brush normally)
* - `INVERT`: Invert (Invert action of brush for duration of stroke)
*/
mode?: H.In<"NORMAL" | "INVERT">;
/**
* Brush to use for duration of stroke Default: 'None'.
* - `None`: None (Apply brush normally)
* - `SMOOTH`: Smooth (Switch to smooth brush for duration of stroke)
* - `ERASE`: Erase (Switch to erase brush for duration of stroke)
* - `MASK`: Mask (Switch to mask brush for duration of stroke)
*/
brush_toggle?: H.In<"None" | "SMOOTH" | "ERASE" | "MASK">;
/** Whether a tablet's eraser mode is being used Default: False. */
pen_flip?: H.In<boolean>;
}>;
/**
* Adjust vertex color brightness/contrast
*
* bpy.ops.grease_pencil.vertex_color_brightness_contrast
*/
vertex_color_brightness_contrast: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
/** Brightness Default: 0.0. */
brightness?: H.In<number>;
/** Contrast Default: 0.0. */
contrast?: H.In<number>;
}>;
/**
* Adjust vertex color HSV values
*
* bpy.ops.grease_pencil.vertex_color_hsv
*/
vertex_color_hsv: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
/** Hue Default: 0.5. */
h?: H.In<number>;
/** Saturation Default: 1.0. */
s?: H.In<number>;
/** Value Default: 1.0. */
v?: H.In<number>;
}>;
/**
* Invert RGB values
*
* bpy.ops.grease_pencil.vertex_color_invert
*/
vertex_color_invert: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
}>;
/**
* Adjust levels of vertex colors
*
* bpy.ops.grease_pencil.vertex_color_levels
*/
vertex_color_levels: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
/** Value to add to colors Default: 0.0. */
offset?: H.In<number>;
/** Value to multiply colors by Default: 1.0. */
gain?: H.In<number>;
}>;
/**
* Set active color to all selected vertices
*
* bpy.ops.grease_pencil.vertex_color_set
*/
vertex_color_set: H.Operator<{
/**
* Mode Default: 'BOTH'.
* - `STROKE`: Stroke
* - `FILL`: Fill
* - `BOTH`: Stroke & Fill
*/
mode?: H.In<"STROKE" | "FILL" | "BOTH">;
/** Mix Factor Default: 1.0. */
factor?: H.In<number>;
}>;
/**
* Normalize weights of the active vertex group
*
* bpy.ops.grease_pencil.vertex_group_normalize
*/
vertex_group_normalize: H.Operator<{}>;
/**
* Normalize the weights of all vertex groups, so that for each vertex, the sum of all weights is 1.0
*
* bpy.ops.grease_pencil.vertex_group_normalize_all
*/
vertex_group_normalize_all: H.Operator<{
/** Keep the values of the active group while normalizing others Default: True. */
lock_active?: H.In<boolean>;
}>;
/**
* Smooth the weights of the active vertex group
*
* bpy.ops.grease_pencil.vertex_group_smooth
*/
vertex_group_smooth: H.Operator<{
/** Factor Default: 0.5. */
factor?: H.In<number>;
/** Iterations Default: 1. */
repeat?: H.In<number>;
}>;
/**
* Enter/Exit vertex paint mode for Grease Pencil strokes
*
* bpy.ops.grease_pencil.vertexmode_toggle
*/
vertexmode_toggle: H.Operator<{
/** Return to previous mode Default: False. */
back?: H.In<boolean>;
}>;
/**
* Draw weight on stroke points in the active Grease Pencil object
*
* bpy.ops.grease_pencil.weight_brush_stroke
*/
weight_brush_stroke: H.Operator<{
/** Stroke */
stroke?: H.In<readonly Record<string, any>[]>;
/**
* Action taken when a paint stroke is made Default: 'NORMAL'.
* - `NORMAL`: Regular (Apply brush normally)
* - `INVERT`: Invert (Invert action of brush for duration of stroke)
*/
mode?: H.In<"NORMAL" | "INVERT">;
/**
* Brush to use for duration of stroke Default: 'None'.
* - `None`: None (Apply brush normally)
* - `SMOOTH`: Smooth (Switch to smooth brush for duration of stroke)
* - `ERASE`: Erase (Switch to erase brush for duration of stroke)
* - `MASK`: Mask (Switch to mask brush for duration of stroke)
*/
brush_toggle?: H.In<"None" | "SMOOTH" | "ERASE" | "MASK">;
/** Whether a tablet's eraser mode is being used Default: False. */
pen_flip?: H.In<boolean>;
}>;
/**
* Invert the weight of active vertex group
*
* bpy.ops.grease_pencil.weight_invert
*/
weight_invert: H.Operator<{}>;
/**
* Set the weight of the Draw tool to the weight of the vertex under the mouse cursor
*
* bpy.ops.grease_pencil.weight_sample
*/
weight_sample: H.Operator<{}>;
/**
* Toggle Add/Subtract for the weight paint draw tool
*
* bpy.ops.grease_pencil.weight_toggle_direction
*/
weight_toggle_direction: H.Operator<{}>;
/**
* Enter/Exit weight paint mode for Grease Pencil strokes
*
* bpy.ops.grease_pencil.weightmode_toggle
*/
weightmode_toggle: H.Operator<{
/** Return to previous mode Default: False. */
back?: H.In<boolean>;
}>;
}