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.

9.9 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.scene */
export interface Ops {
  /**
   * Delete active scene
   *
   * bpy.ops.scene.delete
   */
  delete: H.Operator<{}>;
  /**
   * Import scene and set it as the active one in the window
   *
   * bpy.ops.scene.drop_scene_asset
   */
  drop_scene_asset: H.Operator<{
    /** Session UID of the data-block to use by the operator Default: 0. */
    session_uid?: H.In<number>;
  }>;
  /**
   * Add the data paths to the Freestyle Edge Mark property of selected edges to the active keying set
   *
   * bpy.ops.scene.freestyle_add_edge_marks_to_keying_set
   */
  freestyle_add_edge_marks_to_keying_set: H.Operator<{}>;
  /**
   * Add the data paths to the Freestyle Face Mark property of selected polygons to the active keying set
   *
   * bpy.ops.scene.freestyle_add_face_marks_to_keying_set
   */
  freestyle_add_face_marks_to_keying_set: H.Operator<{}>;
  /**
   * Add an alpha transparency modifier to the line style associated with the active lineset
   *
   * bpy.ops.scene.freestyle_alpha_modifier_add
   */
  freestyle_alpha_modifier_add: H.Operator<{
    /** Type Default: 'ALONG_STROKE'. */
    type?: H.In<E.LineStyleAlphaModifierAlongStrokeType>;
  }>;
  /**
   * Add a line color modifier to the line style associated with the active lineset
   *
   * bpy.ops.scene.freestyle_color_modifier_add
   */
  freestyle_color_modifier_add: H.Operator<{
    /** Type Default: 'ALONG_STROKE'. */
    type?: H.In<E.LineStyleAlphaModifierAlongStrokeType>;
  }>;
  /**
   * Fill the Range Min/Max entries by the min/max distance between selected mesh objects and the source object (either a user-specified object or the active camera)
   *
   * bpy.ops.scene.freestyle_fill_range_by_selection
   */
  freestyle_fill_range_by_selection: H.Operator<{
    /**
     * Type of the modifier to work on Default: 'COLOR'.
     * - `COLOR`: Color (Color modifier type)
     * - `ALPHA`: Alpha (Alpha modifier type)
     * - `THICKNESS`: Thickness (Thickness modifier type)
     */
    type?: H.In<"COLOR" | "ALPHA" | "THICKNESS">;
    /** Name of the modifier to work on Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Add a stroke geometry modifier to the line style associated with the active lineset
   *
   * bpy.ops.scene.freestyle_geometry_modifier_add
   */
  freestyle_geometry_modifier_add: H.Operator<{
    /** Type Default: '2D_OFFSET'. */
    type?: H.In<E.LineStyleGeometryModifier2DOffsetType>;
  }>;
  /**
   * Add a line set into the list of line sets
   *
   * bpy.ops.scene.freestyle_lineset_add
   */
  freestyle_lineset_add: H.Operator<{}>;
  /**
   * Copy the active line set to the internal clipboard
   *
   * bpy.ops.scene.freestyle_lineset_copy
   */
  freestyle_lineset_copy: H.Operator<{}>;
  /**
   * Change the position of the active line set within the list of line sets
   *
   * bpy.ops.scene.freestyle_lineset_move
   */
  freestyle_lineset_move: H.Operator<{
    /**
     * Direction to move the active line set towards Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    direction?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Paste the internal clipboard content to the active line set
   *
   * bpy.ops.scene.freestyle_lineset_paste
   */
  freestyle_lineset_paste: H.Operator<{}>;
  /**
   * Remove the active line set from the list of line sets
   *
   * bpy.ops.scene.freestyle_lineset_remove
   */
  freestyle_lineset_remove: H.Operator<{}>;
  /**
   * Create a new line style, reusable by multiple line sets
   *
   * bpy.ops.scene.freestyle_linestyle_new
   */
  freestyle_linestyle_new: H.Operator<{}>;
  /**
   * Duplicate the modifier within the list of modifiers
   *
   * bpy.ops.scene.freestyle_modifier_copy
   */
  freestyle_modifier_copy: H.Operator<{}>;
  /**
   * Move the modifier within the list of modifiers
   *
   * bpy.ops.scene.freestyle_modifier_move
   */
  freestyle_modifier_move: H.Operator<{
    /**
     * Direction to move the chosen modifier towards Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    direction?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Remove the modifier from the list of modifiers
   *
   * bpy.ops.scene.freestyle_modifier_remove
   */
  freestyle_modifier_remove: H.Operator<{}>;
  /**
   * Add a style module into the list of modules
   *
   * bpy.ops.scene.freestyle_module_add
   */
  freestyle_module_add: H.Operator<{}>;
  /**
   * Change the position of the style module within in the list of style modules
   *
   * bpy.ops.scene.freestyle_module_move
   */
  freestyle_module_move: H.Operator<{
    /**
     * Direction to move the chosen style module towards Default: 'UP'.
     * - `UP`: Up
     * - `DOWN`: Down
     */
    direction?: H.In<"UP" | "DOWN">;
  }>;
  /**
   * Open a style module file
   *
   * bpy.ops.scene.freestyle_module_open
   */
  freestyle_module_open: H.Operator<{
    /** Default: "". */
    filepath?: H.In<string>;
    /** Make module file internal after loading Default: True. */
    make_internal?: H.In<boolean>;
  }>;
  /**
   * Remove the style module from the stack
   *
   * bpy.ops.scene.freestyle_module_remove
   */
  freestyle_module_remove: H.Operator<{}>;
  /**
   * Create Freestyle stroke material for testing
   *
   * bpy.ops.scene.freestyle_stroke_material_create
   */
  freestyle_stroke_material_create: H.Operator<{}>;
  /**
   * Add a line thickness modifier to the line style associated with the active lineset
   *
   * bpy.ops.scene.freestyle_thickness_modifier_add
   */
  freestyle_thickness_modifier_add: H.Operator<{
    /** Type Default: 'ALONG_STROKE'. */
    type?: H.In<E.LineStyleThicknessModifierAlongStrokeType>;
  }>;
  /**
   * Refresh list of actions
   *
   * bpy.ops.scene.gltf2_action_filter_refresh
   */
  gltf2_action_filter_refresh: H.Operator<{}>;
  /**
   * Add or remove Grease Pencil brush preset
   *
   * bpy.ops.scene.gpencil_brush_preset_add
   */
  gpencil_brush_preset_add: H.Operator<{
    /** Name of the preset, used to make the path name Default: "". */
    name?: H.In<string>;
    /** Default: False. */
    remove_name?: H.In<boolean>;
    /** Default: False. */
    remove_active?: H.In<boolean>;
  }>;
  /**
   * Add or remove Grease Pencil material preset
   *
   * bpy.ops.scene.gpencil_material_preset_add
   */
  gpencil_material_preset_add: H.Operator<{
    /** Name of the preset, used to make the path name Default: "". */
    name?: H.In<string>;
    /** Default: False. */
    remove_name?: H.In<boolean>;
    /** Default: False. */
    remove_active?: H.In<boolean>;
  }>;
  /**
   * Add new scene by type
   *
   * bpy.ops.scene.new
   */
  "new": H.Operator<{
    /**
     * Type Default: 'NEW'.
     * - `NEW`: New (Add a new, empty scene with default settings)
     * - `EMPTY`: Copy Settings (Add a new, empty scene, and copy settings from the current scene)
     * - `LINK_COPY`: Linked Copy (Link in the collections from the current scene (shallow copy))
     * - `FULL_COPY`: Full Copy (Make a full copy of the current scene)
     */
    type?: H.In<"NEW" | "EMPTY" | "LINK_COPY" | "FULL_COPY">;
  }>;
  /**
   * Add new scene by type in the sequence editor and assign to active strip
   *
   * bpy.ops.scene.new_sequencer
   */
  new_sequencer: H.Operator<{
    /**
     * Type Default: 'NEW'.
     * - `NEW`: New (Add a new, empty scene with default settings)
     * - `EMPTY`: Copy Settings (Add a new, empty scene, and copy settings from the current scene)
     * - `LINK_COPY`: Linked Copy (Link in the collections from the current scene (shallow copy))
     * - `FULL_COPY`: Full Copy (Make a full copy of the current scene)
     */
    type?: H.In<"NEW" | "EMPTY" | "LINK_COPY" | "FULL_COPY">;
  }>;
  /**
   * Add new scene to be used by the sequencer
   *
   * bpy.ops.scene.new_sequencer_scene
   */
  new_sequencer_scene: H.Operator<{
    /**
     * Type Default: 'NEW'.
     * - `NEW`: New (Add a new, empty scene with default settings)
     * - `EMPTY`: Copy Settings (Add a new, empty scene, and copy settings from the current scene)
     * - `LINK_COPY`: Linked Copy (Link in the collections from the current scene (shallow copy))
     * - `FULL_COPY`: Full Copy (Make a full copy of the current scene)
     */
    type?: H.In<"NEW" | "EMPTY" | "LINK_COPY" | "FULL_COPY">;
  }>;
  /**
   * Add a render view
   *
   * bpy.ops.scene.render_view_add
   */
  render_view_add: H.Operator<{}>;
  /**
   * Remove the selected render view
   *
   * bpy.ops.scene.render_view_remove
   */
  render_view_remove: H.Operator<{}>;
  /**
   * Add a view layer
   *
   * bpy.ops.scene.view_layer_add
   */
  view_layer_add: H.Operator<{
    /**
     * Type Default: 'NEW'.
     * - `NEW`: New (Add a new view layer)
     * - `COPY`: Copy Settings (Copy settings of current view layer)
     * - `EMPTY`: Blank (Add a new view layer with all collections disabled)
     */
    type?: H.In<"NEW" | "COPY" | "EMPTY">;
  }>;
  /**
   * Add a Shader AOV
   *
   * bpy.ops.scene.view_layer_add_aov
   */
  view_layer_add_aov: H.Operator<{}>;
  /**
   * Add a Light Group
   *
   * bpy.ops.scene.view_layer_add_lightgroup
   */
  view_layer_add_lightgroup: H.Operator<{
    /** Name of newly created lightgroup Default: "". */
    name?: H.In<string>;
  }>;
  /**
   * Add all used Light Groups
   *
   * bpy.ops.scene.view_layer_add_used_lightgroups
   */
  view_layer_add_used_lightgroups: H.Operator<{}>;
  /**
   * Remove the selected view layer
   *
   * bpy.ops.scene.view_layer_remove
   */
  view_layer_remove: H.Operator<{}>;
  /**
   * Remove Active AOV
   *
   * bpy.ops.scene.view_layer_remove_aov
   */
  view_layer_remove_aov: H.Operator<{}>;
  /**
   * Remove Active Lightgroup
   *
   * bpy.ops.scene.view_layer_remove_lightgroup
   */
  view_layer_remove_lightgroup: H.Operator<{}>;
  /**
   * Remove all unused Light Groups
   *
   * bpy.ops.scene.view_layer_remove_unused_lightgroups
   */
  view_layer_remove_unused_lightgroups: H.Operator<{}>;
}