Blender V5.0
rna_grease_pencil.cc File Reference
#include "BKE_attribute.h"
#include "BLT_translation.hh"
#include "DNA_grease_pencil_types.h"
#include "DNA_scene_types.h"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "rna_internal.hh"
#include "WM_api.hh"

Go to the source code of this file.

Functions

static void rna_def_grease_pencil_drawing (BlenderRNA *brna)
static void rna_def_grease_pencil_frame (BlenderRNA *brna)
static void rna_def_grease_pencil_frames (BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_grease_pencil_layer_mask (BlenderRNA *brna)
static void rna_def_grease_pencil_layer_masks (BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_grease_pencil_tree_node (BlenderRNA *brna)
static void rna_def_grease_pencil_layer (BlenderRNA *brna)
static void rna_def_grease_pencil_layers (BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_grease_pencil_layer_group (BlenderRNA *brna)
static void rna_def_grease_pencil_layer_groups (BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_grease_pencil_onion_skinning (StructRNA *srna)
static void rna_def_grease_pencil_data (BlenderRNA *brna)
void RNA_def_grease_pencil (BlenderRNA *brna)

Variables

const EnumPropertyItem rna_enum_stroke_depth_order_items []
const EnumPropertyItem enum_layergroup_color_items []

Function Documentation

◆ RNA_def_grease_pencil()

◆ rna_def_grease_pencil_data()

◆ rna_def_grease_pencil_drawing()

◆ rna_def_grease_pencil_frame()

◆ rna_def_grease_pencil_frames()

void rna_def_grease_pencil_frames ( BlenderRNA * brna,
PropertyRNA * cprop )
static

◆ rna_def_grease_pencil_layer()

void rna_def_grease_pencil_layer ( BlenderRNA * brna)
static

Definition at line 1005 of file rna_grease_pencil.cc.

References FLT_MAX, GP_LAYER_BLEND_ADD, GP_LAYER_BLEND_DIVIDE, GP_LAYER_BLEND_HARDLIGHT, GP_LAYER_BLEND_MULTIPLY, GP_LAYER_BLEND_NONE, GP_LAYER_BLEND_SUBTRACT, GP_LAYER_TREE_NODE_DISABLE_MASKS_IN_VIEWLAYER, GP_LAYER_TREE_NODE_IGNORE_LOCKED_MATERIALS, GP_LAYER_TREE_NODE_MUTE, GP_LAYER_TREE_NODE_USE_LIGHTS, NC_GPENCIL, ND_DATA, PROP_ANIMATABLE, PROP_BOOLEAN, PROP_COLLECTION, PROP_COLOR, PROP_EDITABLE, PROP_ENUM, PROP_EULER, PROP_FACTOR, PROP_FLOAT, PROP_ID_SELF_CHECK, PROP_INT, PROP_MATRIX, PROP_NONE, PROP_POINTER, PROP_STRING, PROP_TRANSLATION, PROP_UNSIGNED, PROP_XYZ, PROPOVERRIDE_OVERRIDABLE_LIBRARY, RNA_api_grease_pencil_layer(), rna_def_grease_pencil_frames(), rna_def_grease_pencil_layer_masks(), RNA_def_property(), RNA_def_property_array(), RNA_def_property_boolean_negative_sdna(), RNA_def_property_boolean_sdna(), RNA_def_property_clear_flag(), RNA_def_property_collection_funcs(), RNA_def_property_collection_sdna(), RNA_def_property_enum_items(), RNA_def_property_enum_sdna(), RNA_def_property_flag(), RNA_def_property_float_array_default(), RNA_def_property_float_funcs(), RNA_def_property_float_sdna(), RNA_def_property_int_funcs(), RNA_def_property_multi_array(), RNA_def_property_override_flag(), RNA_def_property_pointer_funcs(), RNA_def_property_range(), RNA_def_property_string_funcs(), RNA_def_property_string_sdna(), RNA_def_property_struct_type(), RNA_def_property_ui_icon(), RNA_def_property_ui_range(), RNA_def_property_ui_text(), RNA_def_property_update(), RNA_def_struct(), RNA_def_struct_path_func(), RNA_def_struct_sdna(), RNA_def_struct_ui_text(), rna_matrix_dimsize_4x4, and RNA_TRANSLATION_PREC_DEFAULT.

Referenced by RNA_def_grease_pencil().

◆ rna_def_grease_pencil_layer_group()

◆ rna_def_grease_pencil_layer_groups()

◆ rna_def_grease_pencil_layer_mask()

◆ rna_def_grease_pencil_layer_masks()

◆ rna_def_grease_pencil_layers()

◆ rna_def_grease_pencil_onion_skinning()

◆ rna_def_grease_pencil_tree_node()

Variable Documentation

◆ enum_layergroup_color_items

const EnumPropertyItem enum_layergroup_color_items[]
Initial value:
= {
{LAYERGROUP_COLOR_NONE, "NONE", ICON_X, "Reset color tag", ""},
{LAYERGROUP_COLOR_01, "COLOR1", ICON_LAYERGROUP_COLOR_01, "Color tag 1", ""},
{LAYERGROUP_COLOR_02, "COLOR2", ICON_LAYERGROUP_COLOR_02, "Color tag 2", ""},
{LAYERGROUP_COLOR_03, "COLOR3", ICON_LAYERGROUP_COLOR_03, "Color tag 3", ""},
{LAYERGROUP_COLOR_04, "COLOR4", ICON_LAYERGROUP_COLOR_04, "Color tag 4", ""},
{LAYERGROUP_COLOR_05, "COLOR5", ICON_LAYERGROUP_COLOR_05, "Color tag 5", ""},
{LAYERGROUP_COLOR_06, "COLOR6", ICON_LAYERGROUP_COLOR_06, "Color tag 6", ""},
{LAYERGROUP_COLOR_07, "COLOR7", ICON_LAYERGROUP_COLOR_07, "Color tag 7", ""},
{LAYERGROUP_COLOR_08, "COLOR8", ICON_LAYERGROUP_COLOR_08, "Color tag 8", ""},
{0, nullptr, 0, nullptr, nullptr},
}
@ LAYERGROUP_COLOR_01
@ LAYERGROUP_COLOR_NONE
@ LAYERGROUP_COLOR_06
@ LAYERGROUP_COLOR_04
@ LAYERGROUP_COLOR_05
@ LAYERGROUP_COLOR_03
@ LAYERGROUP_COLOR_08
@ LAYERGROUP_COLOR_07
@ LAYERGROUP_COLOR_02

Definition at line 1221 of file rna_grease_pencil.cc.

Referenced by rna_def_grease_pencil_layer_group().

◆ rna_enum_stroke_depth_order_items

const EnumPropertyItem rna_enum_stroke_depth_order_items[]
Initial value:
= {
{0,
"2D",
0,
"2D Layers",
"Display strokes using Grease Pencil layer order and stroke order to define depth"},
"3D",
0,
"3D Location",
"Display strokes using real 3D position in 3D space"},
{0, nullptr, 0, nullptr, nullptr},
}
@ GREASE_PENCIL_STROKE_ORDER_3D

Definition at line 23 of file rna_grease_pencil.cc.

Referenced by blender::nodes::node_geo_grease_pencil_set_depth_mode::node_rna(), and rna_def_grease_pencil_data().