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.

5.7 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";
import type * as P from "../py";

/**
 * Editor header containing UI elements
 *
 * bpy.types.Header
 */
export interface Header extends R.bpy_struct {
  /** Structure of the header in the UI */
  get layout(): H.Ptr<R.UILayout>;
  /** If this is set, the header gets a custom ID, otherwise it takes the name of the class used to define the header; for example, if the class name is "OBJECT_HT_hello", and bl_idname is not set by the script, then bl_idname = "OBJECT_HT_hello" Default: "". */
  get bl_idname(): H.Ref<string>;
  set bl_idname(v: H.In<string>);
  /** The space where the header is going to be used in Default: 'EMPTY'. */
  get bl_space_type(): H.Ref<E.AreaType>;
  set bl_space_type(v: H.In<E.AreaType>);
  /** The region where the header is going to be used in (defaults to header region) Default: 'HEADER'. */
  get bl_region_type(): H.Ref<E.GizmoGroupBlRegionType>;
  set bl_region_type(v: H.In<E.GizmoGroupBlRegionType>);
  /**
   * Draw UI elements into the header UI layout
   * @param context The context
   */
  draw(context: R.Context): H.Ref<void>;
  /**
   * Draw UI elements into the header UI layout
   * @param context The context
   */
  draw(kw: {
    /** The context */
    context: R.Context;
  }): H.Ref<void>;
}

/**
 * Statistical view of the levels of color in an image
 *
 * bpy.types.Histogram
 */
export interface Histogram extends R.bpy_struct {
  /**
   * Channels to display in the histogram Default: 'LUMA'.
   * - `LUMA`: Luma (Luma)
   * - `RGB`: RGB (Red Green Blue)
   * - `R`: R (Red)
   * - `G`: G (Green)
   * - `B`: B (Blue)
   * - `A`: A (Alpha)
   */
  get mode(): H.Ref<"LUMA" | "RGB" | "R" | "G" | "B" | "A">;
  set mode(v: H.In<"LUMA" | "RGB" | "R" | "G" | "B" | "A">);
  /** Display lines rather than filled shapes Default: False. */
  get show_line(): H.Ref<boolean>;
  set show_line(v: H.In<boolean>);
}

/**
 * Hook modifier to modify the location of vertices
 *
 * bpy.types.HookModifier
 */
export interface HookModifier extends R.Modifier {
  /** Relative force of the hook Range: 0 to 1. Default: 1.0. */
  get strength(): H.Ref<number>;
  set strength(v: H.In<number>);
  /** Falloff Type Default: 'SMOOTH'. */
  get falloff_type(): H.Ref<E.GreasePencilHookModifierFalloffType>;
  set falloff_type(v: H.In<E.GreasePencilHookModifierFalloffType>);
  /** If not zero, the distance from the hook where influence ends Range: 0 to inf. Default: 0.0. */
  get falloff_radius(): H.Ref<number>;
  set falloff_radius(v: H.In<number>);
  /** Custom falloff curve */
  get falloff_curve(): H.Ptr<R.CurveMapping>;
  /** Center of the hook, used for falloff and display Default: (0.0, 0.0, 0.0). */
  get center(): H.Remote<M.Vector>;
  set center(v: H.In<M.VectorLike>);
  /** Reverse the transformation between this object and its target Default: ((1.0, 0.0, 0.0, 0.0), (0.0, 1.0, 0.0, 0.0), (0.0, 0.0, 1.0, 0.0), (0.0, 0.0, 0.0, 1.0)). */
  get matrix_inverse(): H.Remote<M.Matrix>;
  set matrix_inverse(v: H.In<M.MatrixLike>);
  /** Parent Object for hook, also recalculates and clears offset */
  get object(): H.Ptr<R.Object>;
  set object(v: R.Object | null);
  /** Name of Parent Bone for hook (if applicable), also recalculates and clears offset Default: "". */
  get subtarget(): H.Ref<string>;
  set subtarget(v: H.In<string>);
  /** Compensate for non-uniform object scale Default: False. */
  get use_falloff_uniform(): H.Ref<boolean>;
  set use_falloff_uniform(v: H.In<boolean>);
  /** Name of Vertex Group which determines influence of modifier per point Default: "". */
  get vertex_group(): H.Ref<string>;
  set vertex_group(v: H.In<string>);
  /** Indices of vertices bound to the modifier. For Bézier curves, handles count as additional vertices. Range: 0 to 2147483647. Default: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0). */
  get vertex_indices(): H.Arr<number>;
  /** Invert vertex group influence Default: False. */
  get invert_vertex_group(): H.Ref<boolean>;
  set invert_vertex_group(v: H.In<boolean>);
  /**
   * Validates and assigns the array of vertex indices bound to the modifier
   * @param indices Vertex Indices
   */
  vertex_indices_set(indices: H.In<readonly number[]>): H.Ref<void>;
  /**
   * Validates and assigns the array of vertex indices bound to the modifier
   * @param indices Vertex Indices
   */
  vertex_indices_set(kw: {
    /** Vertex Indices */
    indices: H.In<readonly number[]>;
  }): H.Ref<void>;
}

/**
 * Hue correction modifier for sequence strip
 *
 * bpy.types.HueCorrectModifier
 */
export interface HueCorrectModifier extends R.StripModifier {
  /** Curve Mapping */
  get curve_mapping(): H.Ptr<R.CurveMapping>;
  /** Default: False. */
  get open_mask_input_panel(): H.Ref<boolean>;
  set open_mask_input_panel(v: H.In<boolean>);
}

/**
 * Base class from USD Hydra based renderers
 *
 * bpy.types.HydraRenderEngine
 */
export interface HydraRenderEngine extends R.RenderEngine {
  /**
   * Provide render settings for ``HdRenderDelegate``.
   * @returns Mapping of render-delegate setting name to value.
   * @param engine_type Render mode.
   */
  get_render_settings(engine_type: H.In<"PREVIEW" | "FINAL" | "VIEWPORT">): H.Ref<Map<string, any>>;
  /**
   * Provide render settings for ``HdRenderDelegate``.
   * @returns Mapping of render-delegate setting name to value.
   * @param engine_type Render mode.
   */
  get_render_settings(kw: {
    /** Render mode. */
    engine_type: H.In<"PREVIEW" | "FINAL" | "VIEWPORT">;
  }): H.Ref<Map<string, any>>;
}