53 "Lossless wavelet compression, effective for noisy/grainy images"},
58 "JPEG-like lossy compression on 32 row image blocks"},
63 "JPEG-like lossy compression on 256 row image blocks"},
68 "Lossless compression based on high throughput JPEG 2000 encoding. It produces smaller "
69 "files, but it is new and not widely supported by other software yet."},
74 "Lossless zip compression, each image row compressed separately"},
80 "Lossy compression for 32 bit float images (stores 24 bits of each float)"},
85 "Lossy compression for 16 bit float images, at fixed 2.3:1 ratio"},
90 "Lossy compression for 16 bit float images, at fixed 2.3:1 ratio"},
91 {0,
nullptr, 0,
nullptr,
nullptr},
99 {0,
nullptr, 0,
nullptr,
nullptr},
103 {
PROP_SMOOTH,
"SMOOTH", ICON_SMOOTHCURVE,
"Smooth",
"Smooth falloff"},
104 {
PROP_SPHERE,
"SPHERE", ICON_SPHERECURVE,
"Sphere",
"Spherical falloff"},
105 {
PROP_ROOT,
"ROOT", ICON_ROOTCURVE,
"Root",
"Root falloff"},
108 ICON_INVERSESQUARECURVE,
110 "Inverse Square falloff"},
111 {
PROP_SHARP,
"SHARP", ICON_SHARPCURVE,
"Sharp",
"Sharp falloff"},
112 {
PROP_LIN,
"LINEAR", ICON_LINCURVE,
"Linear",
"Linear falloff"},
113 {
PROP_CONST,
"CONSTANT", ICON_NOCURVE,
"Constant",
"Constant falloff"},
114 {
PROP_RANDOM,
"RANDOM", ICON_RNDCURVE,
"Random",
"Random falloff"},
115 {0,
nullptr, 0,
nullptr,
nullptr},
120 {
PROP_SMOOTH,
"SMOOTH", ICON_SMOOTHCURVE,
"Smooth",
"Smooth falloff"},
121 {
PROP_SPHERE,
"SPHERE", ICON_SPHERECURVE,
"Sphere",
"Spherical falloff"},
122 {
PROP_ROOT,
"ROOT", ICON_ROOTCURVE,
"Root",
"Root falloff"},
125 ICON_INVERSESQUARECURVE,
127 "Inverse Square falloff"},
128 {
PROP_SHARP,
"SHARP", ICON_SHARPCURVE,
"Sharp",
"Sharp falloff"},
129 {
PROP_LIN,
"LINEAR", ICON_LINCURVE,
"Linear",
"Linear falloff"},
130 {0,
nullptr, 0,
nullptr,
nullptr},
137 {
SCE_SELECT_EDGE,
"EDGE", ICON_EDGESEL,
"Edge",
"Edge selection mode"},
138 {
SCE_SELECT_FACE,
"FACE", ICON_FACESEL,
"Face",
"Face selection mode"},
139 {0,
nullptr, 0,
nullptr,
nullptr},
143 {
UV_SELECT_VERT,
"VERTEX", ICON_UV_VERTEXSEL,
"Vertex",
"Vertex selection mode"},
144 {
UV_SELECT_EDGE,
"EDGE", ICON_UV_EDGESEL,
"Edge",
"Edge selection mode"},
145 {
UV_SELECT_FACE,
"FACE", ICON_UV_FACESEL,
"Face",
"Face selection mode"},
146 {0,
nullptr, 0,
nullptr,
nullptr},
150#define RNA_SNAP_ELEMENTS_BASE \
151 {SCE_SNAP_TO_INCREMENT, "INCREMENT", ICON_SNAP_INCREMENT, "Increment", "Snap to increments"}, \
152 {SCE_SNAP_TO_GRID, "GRID", ICON_SNAP_GRID, "Grid", "Snap to grid"}, \
153 {SCE_SNAP_TO_ORIGIN, "ORIGIN", ICON_OBJECT_ORIGIN, "Origin", "Snap to origins"}, \
154 {SCE_SNAP_TO_VERTEX, "VERTEX", ICON_SNAP_VERTEX, "Vertex", "Snap to vertices"}, \
155 {SCE_SNAP_TO_EDGE, "EDGE", ICON_SNAP_EDGE, "Edge", "Snap to edges"}, \
156 {SCE_SNAP_TO_FACE, "FACE", ICON_SNAP_FACE, "Face", "Snap by projecting onto faces"}, \
157 {SCE_SNAP_TO_VOLUME, "VOLUME", ICON_SNAP_VOLUME, "Volume", "Snap to volume"}, \
158 {SCE_SNAP_TO_EDGE_MIDPOINT, "EDGE_MIDPOINT", ICON_SNAP_MIDPOINT, "Edge Center", "Snap to the middle of edges"}, \
159 {SCE_SNAP_TO_EDGE_PERPENDICULAR, "EDGE_PERPENDICULAR", ICON_SNAP_PERPENDICULAR, "Edge Perpendicular", "Snap to the nearest point on an edge"}, \
160 {SCE_SNAP_TO_FACE_MIDPOINT, "FACE_MIDPOINT", ICON_SNAP_FACE_CENTER,"Face Center","Snap to the middle of faces"}
169 "Snap by projecting onto faces"},
172 ICON_SNAP_FACE_NEAREST,
174 "Snap to nearest point on faces"},
175 {0,
nullptr, 0,
nullptr,
nullptr},
180 {0,
nullptr, 0,
nullptr,
nullptr},
193 {0,
nullptr, 0,
nullptr,
nullptr},
202 "Snap to increments of grid"},
205 {0,
nullptr, 0,
nullptr,
nullptr},
214 {0,
nullptr, 0,
nullptr,
nullptr},
222 "Scene will be rendering without any anti-aliasing"},
226 "Single Pass Anti-Aliasing",
227 "Scene will be rendered using a single pass anti-aliasing method (FXAA)"},
232 "Scene will be rendered using 5 anti-aliasing samples"},
237 "Scene will be rendered using 8 anti-aliasing samples"},
242 "Scene will be rendered using 11 anti-aliasing samples"},
247 "Scene will be rendered using 16 anti-aliasing samples"},
252 "Scene will be rendered using 32 anti-aliasing samples"},
253 {0,
nullptr, 0,
nullptr,
nullptr},
262 "Incrementally refit the curve (high quality)"},
267 "Split the curve until the tolerance is met (fast)"},
268 {0,
nullptr, 0,
nullptr,
nullptr},
271#define MEDIA_TYPE_ENUM_IMAGE {MEDIA_TYPE_IMAGE, "IMAGE", ICON_NONE, "Image", ""}
272#define MEDIA_TYPE_ENUM_MULTI_LAYER_IMAGE \
273 {MEDIA_TYPE_MULTI_LAYER_IMAGE, "MULTI_LAYER_IMAGE", ICON_NONE, "Multi-Layer EXR", ""}
274#define MEDIA_TYPE_ENUM_VIDEO {MEDIA_TYPE_VIDEO, "VIDEO", ICON_NONE, "Video", ""}
280 {0,
nullptr, 0,
nullptr,
nullptr},
284static const EnumPropertyItem rna_enum_media_type_image_items[] = {
287 {0,
nullptr, 0,
nullptr,
nullptr},
295#define R_IMF_ENUM_BMP \
296 {R_IMF_IMTYPE_BMP, "BMP", 0, "Bitmap (.bmp)", "Output image in bitmap format"},
297#define R_IMF_ENUM_IRIS \
298 {R_IMF_IMTYPE_IRIS, "IRIS", 0, "Iris (.rgb)", "Output image in SGI IRIS format"},
299#define R_IMF_ENUM_PNG {R_IMF_IMTYPE_PNG, "PNG", 0, "PNG (.png)", "Output image in PNG format"},
300#define R_IMF_ENUM_JPEG \
301 {R_IMF_IMTYPE_JPEG90, "JPEG", 0, "JPEG (.jpg)", "Output image in JPEG format"},
302#define R_IMF_ENUM_TAGA \
303 {R_IMF_IMTYPE_TARGA, "TARGA", 0, "Targa (.tga)", "Output image in Targa format"},
304#define R_IMF_ENUM_TAGA_RAW \
305 {R_IMF_IMTYPE_RAWTGA, \
308 "Targa Raw (.tga)", \
309 "Output image in uncompressed Targa format"},
312# define R_IMF_ENUM_DDS \
313 {R_IMF_IMTYPE_DDS, "DDS", 0, "DirectDraw Surface (.dds)", "Output image in DDS format"},
316#ifdef WITH_IMAGE_OPENJPEG
317# define R_IMF_ENUM_JPEG2K \
318 {R_IMF_IMTYPE_JP2, "JPEG2000", 0, "JPEG 2000 (.jp2)", "Output image in JPEG 2000 format"},
320# define R_IMF_ENUM_JPEG2K
323#ifdef WITH_IMAGE_CINEON
324# define R_IMF_ENUM_CINEON \
325 {R_IMF_IMTYPE_CINEON, "CINEON", 0, "Cineon (.cin)", "Output image in Cineon format"},
326# define R_IMF_ENUM_DPX {R_IMF_IMTYPE_DPX, "DPX", 0, "DPX (.dpx)", "Output image in DPX format"},
328# define R_IMF_ENUM_CINEON
329# define R_IMF_ENUM_DPX
332#define R_IMF_ENUM_EXR_MULTILAYER \
333 {R_IMF_IMTYPE_MULTILAYER, \
334 "OPEN_EXR_MULTILAYER", \
336 "OpenEXR MultiLayer (.exr)", \
337 "Output image in multilayer OpenEXR format"},
338#define R_IMF_ENUM_EXR \
339 {R_IMF_IMTYPE_OPENEXR, "OPEN_EXR", 0, "OpenEXR (.exr)", "Output image in OpenEXR format"},
341#define R_IMF_ENUM_HDR \
342 {R_IMF_IMTYPE_RADHDR, "HDR", 0, "Radiance HDR (.hdr)", "Output image in Radiance HDR format"},
344#define R_IMF_ENUM_TIFF \
345 {R_IMF_IMTYPE_TIFF, "TIFF", 0, "TIFF (.tif)", "Output image in TIFF format"},
347#ifdef WITH_IMAGE_WEBP
348# define R_IMF_ENUM_WEBP \
349 {R_IMF_IMTYPE_WEBP, "WEBP", 0, "WebP (.webp)", "Output image in WebP format"},
351# define R_IMF_ENUM_WEBP
354#define R_IMF_ENUM_AVIF \
355 {R_IMF_IMTYPE_AVIF, "AVIF", 0, "AVIF (.avif)", "Output image in AVIF format"},
358# define R_IMF_ENUM_FFMPEG {R_IMF_IMTYPE_FFMPEG, "FFMPEG", ICON_FILE_MOVIE, "FFmpeg Video", ""},
360# define R_IMF_ENUM_FFMPEG
363#define IMAGE_TYPE_ITEMS_IMAGE \
370 RNA_ENUM_ITEM_SEPR, \
371 R_IMF_ENUM_BMP R_IMF_ENUM_CINEON R_IMF_ENUM_DPX R_IMF_ENUM_IRIS R_IMF_ENUM_JPEG2K \
372 R_IMF_ENUM_HDR R_IMF_ENUM_TAGA R_IMF_ENUM_TAGA_RAW R_IMF_ENUM_TIFF
374#define IMAGE_TYPE_ITEMS_MULTI_LAYER_IMAGE R_IMF_ENUM_EXR_MULTILAYER
376#define IMAGE_TYPE_ITEMS_VIDEO R_IMF_ENUM_FFMPEG
379static const EnumPropertyItem image_type_items[] = {
382 {0,
nullptr, 0,
nullptr,
nullptr},
388 {0,
nullptr, 0,
nullptr,
nullptr},
394 {0,
nullptr, 0,
nullptr,
nullptr},
401 {0,
nullptr, 0,
nullptr,
nullptr},
409 "Images get saved in 8-bit grayscale (only PNG, JPEG, TGA, TIF)"},
410 {int(
ImColorMode::RGB),
"RGB", 0,
"RGB",
"Images are saved with RGB (color) data"},
415 "Images are saved with RGB and Alpha data (if supported)"},
416 {0,
nullptr, 0,
nullptr,
nullptr},
420# define IMAGE_COLOR_MODE_BW rna_enum_image_color_mode_items[0]
421# define IMAGE_COLOR_MODE_RGB rna_enum_image_color_mode_items[1]
422# define IMAGE_COLOR_MODE_RGBA rna_enum_image_color_mode_items[2]
433 {0,
nullptr, 0,
nullptr,
nullptr},
439 {0,
nullptr, 0,
nullptr,
nullptr},
449 {0,
nullptr, 0,
nullptr,
nullptr},
457 "Use pixels from adjacent faces across UV seams"},
458 {
R_BAKE_EXTEND,
"EXTEND", 0,
"Extend",
"Extend border pixels outwards"},
459 {0,
nullptr, 0,
nullptr,
nullptr},
467 "Bake to image data-blocks associated with active image texture nodes in materials"},
471 "Active Color Attribute",
472 "Bake to the active color attribute on meshes"},
473 {0,
nullptr, 0,
nullptr,
nullptr},
481 "Save the baking map in an internal image data-block"},
483 {0,
nullptr, 0,
nullptr,
nullptr},
491 "Cast rays from above the surface"},
496 "Use the active camera's position to cast rays"},
497 {0,
nullptr, 0,
nullptr,
nullptr},
500#define R_IMF_VIEWS_ENUM_IND \
501 {R_IMF_VIEWS_INDIVIDUAL, \
505 "Individual files for each view with the prefix as defined by the scene views"},
506#define R_IMF_VIEWS_ENUM_S3D \
507 {R_IMF_VIEWS_STEREO_3D, "STEREO_3D", 0, "Stereo 3D", "Single file with an encoded stereo pair"},
508#define R_IMF_VIEWS_ENUM_MV \
509 {R_IMF_VIEWS_MULTIVIEW, "MULTIVIEW", 0, "Multi-View", "Single file with all the views"},
523#undef R_IMF_VIEWS_ENUM_IND
524#undef R_IMF_VIEWS_ENUM_S3D
525#undef R_IMF_VIEWS_ENUM_MV
532 "Render views for left and right eyes as two differently filtered colors in a single image "
533 "(anaglyph glasses are required)"},
538 "Render views for left and right eyes interlaced in a single image (3D-ready monitor is "
544 "Render alternate eyes (also known as page flip, quad buffer support in the graphic card is "
550 "Render views for left and right eyes side-by-side"},
555 "Render views for left and right eyes one above another"},
556 {0,
nullptr, 0,
nullptr,
nullptr},
563 {0,
nullptr, 0,
nullptr,
nullptr},
570 {0,
nullptr, 0,
nullptr,
nullptr},
582 {0,
nullptr, 0,
nullptr,
nullptr},
588 {0,
nullptr, 0,
nullptr,
nullptr},
593 "BOUNDING_BOX_CENTER",
595 "Bounding Box Center",
596 "Pivot around bounding box center of selected object(s)"},
597 {
V3D_AROUND_CURSOR,
"CURSOR", ICON_PIVOT_CURSOR,
"3D Cursor",
"Pivot around the 3D cursor"},
599 "INDIVIDUAL_ORIGINS",
600 ICON_PIVOT_INDIVIDUAL,
601 "Individual Origins",
602 "Pivot around each object's own origin"},
607 "Pivot around the median point of selected objects"},
612 "Pivot around active object"},
613 {0,
nullptr, 0,
nullptr,
nullptr},
620 ICON_ORIENTATION_GLOBAL,
622 "Align the transformation axes to world space"},
625 ICON_ORIENTATION_LOCAL,
627 "Align the transformation axes to the selected objects' local space"},
630 ICON_ORIENTATION_NORMAL,
632 "Align the transformation axes to average normal of selected elements "
633 "(bone Y axis for pose mode)"},
636 ICON_ORIENTATION_GIMBAL,
638 "Align each axis to the Euler rotation axis as used for input"},
641 ICON_ORIENTATION_VIEW,
643 "Align the transformation axes to the window"},
646 ICON_ORIENTATION_CURSOR,
648 "Align the transformation axes to the 3D cursor"},
651 ICON_ORIENTATION_PARENT,
653 "Align the transformation axes to the object's parent space"},
655 {0,
nullptr, 0,
nullptr,
nullptr},
663 "Start placing on the surface, using the 3D cursor position as a fallback"},
668 "Start placement using a point projected onto the orientation axis "
669 "at the 3D cursor position"},
674 "Start placement using a point projected onto the view plane at the 3D cursor position"},
675 {0,
nullptr, 0,
nullptr,
nullptr},
683 "Use the surface normal (using the transform orientation as a fallback)"},
686 ICON_ORIENTATION_GLOBAL,
688 "Use the current transform orientation"},
689 {0,
nullptr, 0,
nullptr,
nullptr},
694 {
SCE_SNAP_TO_NONE,
"DEFAULT", 0,
"Default",
"Use the current snap settings"},
695 {0,
nullptr, 0,
nullptr,
nullptr},
703 ICON_GP_SELECT_BETWEEN_STROKES,
705 "Select all stroke points between other strokes"},
706 {0,
nullptr, 0,
nullptr,
nullptr},
710 {1,
"1", 0,
"1:1",
"Full resolution"},
711 {2,
"2", 0,
"1:2",
"Render this effect at 50% render resolution"},
712 {4,
"4", 0,
"1:4",
"Render this effect at 25% render resolution"},
713 {8,
"8", 0,
"1:8",
"Render this effect at 12.5% render resolution"},
714 {16,
"16", 0,
"1:16",
"Render this effect at 6.25% render resolution"},
715 {0,
nullptr, 0,
nullptr,
nullptr},
724# include <fmt/format.h>
800# ifdef WITH_FREESTYLE
816static int rna_ToolSettings_snap_mode_get(
PointerRNA *ptr)
822static void rna_ToolSettings_snap_mode_set(
PointerRNA *ptr,
int value)
830static void rna_ToolSettings_snap_uv_mode_set(
PointerRNA *ptr,
int value)
920 for (
GreasePencil &grease_pencil : bmain->grease_pencils) {
930 Scene *scene =
static_cast<Scene *
>(ptr->data);
934 static_cast<void *
>(scene));
935 iter->valid = (
static_cast<BLI_Iterator *
>(iter->internal.custom))->valid;
941 iter->valid = (
static_cast<BLI_Iterator *
>(iter->internal.custom))->valid;
953 (
static_cast<BLI_Iterator *
>(iter->internal.custom))->current);
961 Scene *scene =
static_cast<Scene *
>(ptr->data);
962 Scene *set =
static_cast<Scene *
>(value.data);
965 for (nested_set = set; nested_set; nested_set = nested_set->set) {
966 if (nested_set == scene) {
970 if (nested_set->set == set) {
981 Scene *scene = id_cast<Scene *>(ptr->owner_id);
985 if (scene->set !=
nullptr) {
996 Scene *scene =
static_cast<Scene *
>(ptr->data);
1005 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1022 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1026static const char *rna_Scene_statistics_string_get(
Scene *scene,
1034 "View Layer '%s' not found in scene '%s'",
1036 scene->id.
name + 2);
1045 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1046 scene->r.framelen =
float(scene->r.framapto) /
float(scene->r.images);
1049static void rna_Scene_frame_current_set(
PointerRNA *ptr,
int value)
1055 data->r.cfra = value;
1058static float rna_Scene_frame_float_get(
PointerRNA *ptr)
1064static void rna_Scene_frame_float_set(
PointerRNA *ptr,
float value)
1069 data->r.cfra = int(value);
1070 data->r.subframe = value -
data->r.cfra;
1073static float rna_Scene_frame_current_final_get(
PointerRNA *ptr)
1075 Scene *scene =
static_cast<Scene *
>(ptr->data);
1080static void rna_Scene_start_frame_set(
PointerRNA *ptr,
int value)
1085 data->r.sfra = value;
1087 if (value >
data->r.efra) {
1092static void rna_Scene_end_frame_set(
PointerRNA *ptr,
int value)
1096 data->r.efra = value;
1098 if (
data->r.sfra > value) {
1103static void rna_Scene_use_preview_range_set(
PointerRNA *ptr,
bool value)
1109 if ((
data->r.psfra ==
data->r.pefra) && (
data->r.psfra == 0)) {
1121static void rna_Scene_preview_range_start_frame_set(
PointerRNA *ptr,
int value)
1132 data->r.psfra = value;
1134 if (value >
data->r.pefra) {
1139static void rna_Scene_preview_range_end_frame_set(
PointerRNA *ptr,
int value)
1150 data->r.pefra = value;
1152 if (
data->r.psfra > value) {
1157static void rna_Scene_show_subframe_update(
Main * ,
1161 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1162 scene->r.subframe = 0.0f;
1167 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1175 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1182 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1189 Scene *scene =
static_cast<Scene *
>(ptr->data);
1194static void rna_Scene_active_keying_set_set(
PointerRNA *ptr,
1198 Scene *scene =
static_cast<Scene *
>(ptr->data);
1208static int rna_Scene_active_keying_set_index_get(
PointerRNA *ptr)
1210 Scene *scene =
static_cast<Scene *
>(ptr->data);
1211 return scene->active_keyingset - 1;
1217static void rna_Scene_active_keying_set_index_set(
PointerRNA *ptr,
int value)
1219 Scene *scene =
static_cast<Scene *
>(ptr->data);
1220 scene->active_keyingset = value + 1;
1229 Scene *scene =
static_cast<Scene *
>(ptr->data);
1234 if (scene->keyingsets.first()) {
1256 iter->valid = (
internal->link !=
nullptr);
1275static void rna_Scene_compositing_node_group_set(
PointerRNA *scene_ptr,
1284 "Node tree '%s' is not a compositing node group.",
1285 node_tree->id.name + 2);
1294 if (effect->node_group) {
1297 effect->node_group = node_tree;
1298 if (effect->node_group) {
1305 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1317static std::optional<std::string> rna_SceneEEVEE_path(
const PointerRNA * )
1322static std::optional<std::string> rna_RaytraceEEVEE_path(
const PointerRNA * )
1324 return "eevee.ray_tracing_options";
1327static std::optional<std::string> rna_SceneGpencil_path(
const PointerRNA * )
1329 return "grease_pencil_settings";
1332static std::optional<std::string> rna_SceneHydra_path(
const PointerRNA * )
1355static std::optional<std::string> rna_RenderSettings_path(
const PointerRNA * )
1360static std::optional<std::string> rna_BakeSettings_path(
const PointerRNA * )
1362 return "render.bake";
1368 Strip *found_strip =
nullptr;
1371 if (strip->data && &strip->data->colorspace_settings == colorspace_settings) {
1372 found_strip = strip;
1381static std::optional<std::string> rna_ImageFormatSettings_path(
1382 const PointerRNA *ptr, FunctionRef<
bool(ImageFormatData *)> match)
1384 ID *
id = ptr->owner_id;
1386 switch (
GS(id->name)) {
1388 Scene *scene = id_cast<Scene *>(
id);
1390 if (match(&scene->r.im_format)) {
1391 return "render.image_settings";
1393 else if (match(&scene->r.bake.im_format)) {
1394 return "render.bake.image_settings";
1396 return std::nullopt;
1399 bNodeTree *ntree = id_cast<bNodeTree *>(
id);
1401 for (bNode *
node : ntree->all_nodes()) {
1403 NodeCompositorFileOutput &
storage = *
static_cast<NodeCompositorFileOutput *
>(
1406 char node_name_esc[
sizeof(
node->name) * 2];
1408 return fmt::format(
"nodes[\"{}\"].format", node_name_esc);
1411 for (
const int i : IndexRange(
storage.items_count)) {
1412 NodeCompositorFileOutputItem &item =
storage.items[i];
1413 if (match(&item.format)) {
1414 char node_name_esc[
sizeof(
node->name) * 2];
1417 const std::string identifier = FileOutputItemsAccessor::socket_identifier_for_item(
1419 const std::string escaped_identifier =
BLI_str_escape(identifier);
1420 return fmt::format(
"nodes[\"{}\"].file_output_items[\"{}\"].format",
1422 escaped_identifier.c_str());
1428 return std::nullopt;
1431 return std::nullopt;
1435static std::optional<std::string> rna_ImageFormatSettings_path(
const PointerRNA *ptr)
1437 ImageFormatData *
data =
static_cast<ImageFormatData *
>(ptr->data);
1438 return rna_ImageFormatSettings_path(ptr, [&](ImageFormatData *imf) {
return imf ==
data; });
1443 ColorManagedDisplaySettings *
data =
static_cast<ColorManagedDisplaySettings *
>(ptr->data);
1444 std::optional<std::string> path = rna_ImageFormatSettings_path(
1445 ptr, [&](ImageFormatData *imf) {
return &imf->display_settings ==
data; });
1447 return *path +
".display_settings";
1449 if (
GS(ptr->owner_id->name) == ID_SCE) {
1450 return "display_settings";
1453 return std::nullopt;
1458 ColorManagedViewSettings *
data =
static_cast<ColorManagedViewSettings *
>(ptr->data);
1459 std::optional<std::string> path = rna_ImageFormatSettings_path(
1460 ptr, [&](ImageFormatData *imf) {
return &imf->view_settings ==
data; });
1462 return *path +
".view_settings";
1464 if (
GS(ptr->owner_id->name) == ID_SCE) {
1465 return "view_settings";
1467 return std::nullopt;
1472 ColorManagedColorspaceSettings *
data =
static_cast<ColorManagedColorspaceSettings *
>(ptr->data);
1473 std::optional<std::string> path = rna_ImageFormatSettings_path(
1474 ptr, [&](ImageFormatData *imf) {
return &imf->linear_colorspace_settings ==
data; });
1476 return *path +
".linear_colorspace_settings";
1480 if (
ELEM(
GS(ptr->owner_id->name), ID_IM, ID_MC)) {
1481 return "colorspace_settings";
1485 if (
GS(ptr->owner_id->name) == ID_SCE) {
1486 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1491 char name_esc[(
sizeof(strip->name) - 2) * 2];
1493 return fmt::format(
"sequence_editor.strips_all[\"{}\"].colorspace_settings", name_esc);
1498 return std::nullopt;
1501static int rna_RenderSettings_threads_get(PointerRNA *ptr)
1503 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1507static int rna_RenderSettings_threads_mode_get(PointerRNA *ptr)
1509 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1516 return (rd->mode & R_FIXED_THREADS);
1520static bool rna_RenderSettings_is_movie_format_get(PointerRNA *ptr)
1522 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1526static const EnumPropertyItem *rna_ImageFormatSettings_media_type_itemf(bContext * ,
1531 ID *
id = ptr->owner_id;
1534 if (
id &&
GS(id->name) == ID_SCE) {
1538 return rna_enum_media_type_image_items;
1544static void rna_ImageFormatSettings_media_type_set(PointerRNA *ptr,
int value)
1546 ImageFormatData *
format = ptr->data_as<ImageFormatData>();
1550static void rna_ImageFormatSettings_file_format_set(PointerRNA *ptr,
int value)
1555static const EnumPropertyItem *rna_ImageFormatSettings_file_format_itemf(bContext * ,
1560 const ImageFormatData *
format = ptr->data_as<ImageFormatData>();
1563 return image_type_items;
1565 return multi_layer_image_type_items;
1567 return video_image_type_items;
1573static const EnumPropertyItem *rna_ImageFormatSettings_color_mode_itemf(bContext * ,
1578 ImageFormatData *imf =
static_cast<ImageFormatData *
>(ptr->data);
1579 ID *
id = ptr->owner_id;
1580 const bool is_render = (
id &&
GS(id->name) ==
ID_SCE);
1593 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1594 RenderData *rd = &scene->r;
1597 rd->ffcodecdata.ffmpeg_prores_profile))
1608 EnumPropertyItem *item =
nullptr;
1627static const EnumPropertyItem *rna_ImageFormatSettings_color_depth_itemf(bContext * ,
1632 ImageFormatData *imf =
static_cast<ImageFormatData *
>(ptr->data);
1634 if (imf ==
nullptr) {
1640 const int is_float =
ELEM(
1641 imf->imtype, R_IMF_IMTYPE_RADHDR, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_MULTILAYER);
1650 EnumPropertyItem *item =
nullptr;
1651 EnumPropertyItem tmp = {0,
"", 0,
"",
""};
1653 if (depth_ok & R_IMF_CHAN_DEPTH_8) {
1657 if (depth_ok & R_IMF_CHAN_DEPTH_10) {
1661 if (depth_ok & R_IMF_CHAN_DEPTH_12) {
1665 if (depth_ok & R_IMF_CHAN_DEPTH_16) {
1668 tmp.name =
N_(
"Float (Half)");
1669 if (
ELEM(imf->imtype, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_MULTILAYER)) {
1670 tmp.description =
N_(
1671 "16-bit color channels. Data passes like Depth will still be saved using full "
1672 "32-bit precision.");
1681 if (depth_ok & R_IMF_CHAN_DEPTH_32) {
1684 tmp.name =
N_(
"Float (Full)");
1699static const EnumPropertyItem *rna_ImageFormatSettings_views_format_itemf(bContext * ,
1704 ImageFormatData *imf =
static_cast<ImageFormatData *
>(ptr->data);
1706 if (imf ==
nullptr) {
1709 else if (imf->imtype == R_IMF_IMTYPE_OPENEXR) {
1712 else if (imf->imtype == R_IMF_IMTYPE_MULTILAYER) {
1722static const EnumPropertyItem *rna_ImageFormatSettings_exr_codec_itemf(bContext * ,
1727 ImageFormatData *imf = (ImageFormatData *)ptr->data;
1729 EnumPropertyItem *item =
nullptr;
1730 int i = 1, totitem = 0;
1732 if (imf->depth == 16) {
1737 if (
ELEM(rna_enum_exr_codec_items[i].value, R_IMF_EXR_CODEC_B44, R_IMF_EXR_CODEC_B44A)) {
1750static bool rna_ImageFormatSettings_has_linear_colorspace_get(PointerRNA *ptr)
1752 ImageFormatData *imf =
static_cast<ImageFormatData *
>(ptr->data);
1756static void rna_ImageFormatSettings_color_management_set(PointerRNA *ptr,
int value)
1758 ImageFormatData *imf =
static_cast<ImageFormatData *
>(ptr->data);
1760 if (imf->color_management != value) {
1761 imf->color_management = value;
1764 if (imf->color_management == R_IMF_COLOR_MANAGEMENT_OVERRIDE) {
1765 ID *owner_id = ptr->owner_id;
1766 if (owner_id &&
GS(owner_id->name) == ID_NT) {
1770 if (owner_id &&
GS(owner_id->name) == ID_SCE) {
1777static int rna_SceneRender_file_ext_length(PointerRNA *ptr)
1779 const RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1782 return ext_num ? strlen(ext_array[0]) : 0;
1785static void rna_SceneRender_file_ext_get(PointerRNA *ptr,
char *value)
1787 const RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1790 strcpy(value, ext_num ? ext_array[0] :
"");
1794static void rna_FFmpegSettings_lossless_output_set(PointerRNA *ptr,
bool value)
1797 RenderData *rd = &scene->r;
1803 rd->ffcodecdata.flags &= ~FFMPEG_LOSSLESS_OUTPUT;
1808static int rna_RenderSettings_active_view_index_get(PointerRNA *ptr)
1810 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1814static void rna_RenderSettings_active_view_index_set(PointerRNA *ptr,
int value)
1816 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1817 rd->actview = value;
1820static void rna_RenderSettings_active_view_index_range(
1821 PointerRNA *ptr,
int *
min,
int *
max,
int * ,
int * )
1823 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1826 *
max =
max_ii(0, rd->views.count() - 1);
1829static PointerRNA rna_RenderSettings_active_view_get(PointerRNA *ptr)
1831 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1832 SceneRenderView *srv =
static_cast<SceneRenderView *
>(
BLI_findlink(&rd->views, rd->actview));
1837static void rna_RenderSettings_active_view_set(PointerRNA *ptr,
1841 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1842 SceneRenderView *srv =
static_cast<SceneRenderView *
>(value.data);
1845 rd->actview =
index;
1849static SceneRenderView *rna_RenderView_new(ID *
id, RenderData * ,
const char *name)
1851 Scene *scene = id_cast<Scene *>(
id);
1859static void rna_RenderView_remove(
1860 ID *
id, RenderData * , Main * , ReportList *reports, PointerRNA *srv_ptr)
1862 SceneRenderView *srv =
static_cast<SceneRenderView *
>(srv_ptr->data);
1863 Scene *scene = id_cast<Scene *>(
id);
1868 "Render view '%s' could not be removed from scene '%s'",
1870 scene->id.
name + 2);
1874 srv_ptr->invalidate();
1879static void rna_RenderSettings_views_format_set(PointerRNA *ptr,
int value)
1881 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1883 if (rd->views_format == SCE_VIEWS_FORMAT_MULTIVIEW && value == SCE_VIEWS_FORMAT_STEREO_3D) {
1885 if (rd->actview > 1) {
1893static void rna_RenderSettings_engine_set(PointerRNA *ptr,
int value)
1895 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1896 RenderEngineType *type =
static_cast<RenderEngineType *
>(
BLI_findlink(&R_engines, value));
1904static const EnumPropertyItem *rna_RenderSettings_engine_itemf(bContext * ,
1909 RenderEngineType *type;
1910 EnumPropertyItem *item =
nullptr;
1911 EnumPropertyItem tmp = {0,
"", 0,
"",
""};
1912 int a = 0, totitem = 0;
1914 for (type =
R_engines.first(); type; type = type->next, a++) {
1916 tmp.identifier = type->idname;
1917 tmp.name = type->name;
1927static int rna_RenderSettings_engine_get(PointerRNA *ptr)
1929 RenderData *rd =
static_cast<RenderData *
>(ptr->data);
1930 RenderEngineType *type;
1933 for (type =
R_engines.first(); type; type = type->next, a++) {
1934 if (
STREQ(type->idname, rd->engine)) {
1942static void rna_RenderSettings_engine_update(Main *bmain,
Scene * , PointerRNA * )
1947static void rna_Scene_update_render_engine(Main *bmain)
1952static bool rna_RenderSettings_multiple_engines_get(PointerRNA * )
1957static bool rna_RenderSettings_use_spherical_stereo_get(PointerRNA *ptr)
1959 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1965 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1970static void rna_Scene_world_update(Main *bmain,
Scene *scene, PointerRNA *ptr)
1972 Scene *screen = id_cast<Scene *>(ptr->owner_id);
1979static void rna_Scene_mesh_quality_update(Main *bmain,
Scene * , PointerRNA *ptr)
1981 Scene *scene = id_cast<Scene *>(ptr->owner_id);
1984 if (
ELEM(ob->
type, OB_MESH, OB_CURVES_LEGACY, OB_VOLUME, OB_MBALL)) {
1995 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2000void rna_Scene_use_freestyle_update(Main *bmain,
Scene * , PointerRNA *ptr)
2002 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2010void rna_Scene_compositor_update(Main * ,
Scene * , PointerRNA *ptr)
2012 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2019# ifdef WITH_FREESTYLE
2026 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2027 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2032static void rna_SceneRenderView_name_set(PointerRNA *ptr,
const char *value)
2034 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2035 SceneRenderView *rv =
static_cast<SceneRenderView *
>(ptr->data);
2039 DATA_(
"RenderView"),
2047 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2054 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2056 ViewLayer *view_layer =
nullptr;
2057 if (ptr->type == RNA_ViewLayer) {
2058 view_layer =
static_cast<ViewLayer *
>(ptr->data);
2060 else if (ptr->type == RNA_AOV) {
2061 ViewLayerAOV *aov =
static_cast<ViewLayerAOV *
>(ptr->data);
2064 else if (ptr->type == RNA_Lightgroup) {
2065 ViewLayerLightgroup *lightgroup =
static_cast<ViewLayerLightgroup *
>(ptr->data);
2071 if (engine_type->update_render_passes) {
2087static std::optional<std::string> rna_ViewLayerEEVEE_path(
const PointerRNA *ptr)
2089 const ViewLayerEEVEE *view_layer_eevee =
static_cast<ViewLayerEEVEE *
>(ptr->data);
2090 const ViewLayer *view_layer =
reinterpret_cast<ViewLayer *
>(
2091 reinterpret_cast<uint8_t *
>(
const_cast<ViewLayerEEVEE *
>(view_layer_eevee)) -
2093 char rna_path[
sizeof(view_layer->name) * 3];
2096 view_layer, rna_path,
sizeof(rna_path));
2098 BLI_strncpy(rna_path + view_layer_path_len,
".eevee",
sizeof(rna_path) - view_layer_path_len);
2103static void rna_SceneEEVEE_gi_cubemap_resolution_update(Main * ,
2109 if (ob->
type == OB_LIGHTPROBE) {
2116static void rna_SceneEEVEE_clamp_surface_indirect_update(Main * ,
2122 if (ob->
type == OB_LIGHTPROBE) {
2132static void rna_SceneEEVEE_shadow_resolution_update(Main * ,
2137 if (ob->
type == OB_LAMP) {
2148static std::optional<std::string> rna_SceneRenderView_path(
const PointerRNA *ptr)
2150 const SceneRenderView *srv =
static_cast<SceneRenderView *
>(ptr->data);
2151 char srv_name_esc[
sizeof(srv->name) * 2];
2153 return fmt::format(
"render.views[\"{}\"]", srv_name_esc);
2156static bool rna_Scene_use_nodes_get(PointerRNA * )
2162static void rna_Scene_use_nodes_set(PointerRNA * ,
const bool )
2170static void rna_Physics_relations_update(Main *bmain,
Scene * , PointerRNA * )
2175static void rna_Physics_update(Main * ,
Scene * , PointerRNA *ptr)
2177 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2186static void rna_Scene_editmesh_select_mode_set(PointerRNA *ptr,
const bool *value)
2188 ToolSettings *ts =
static_cast<ToolSettings *
>(ptr->data);
2189 const int selectmode = (value[0] ?
SCE_SELECT_VERTEX : 0) | (value[1] ? SCE_SELECT_EDGE : 0) |
2193 ts->selectmode = selectmode;
2196 wmWindowManager *wm =
G_MAIN->wm.first();
2197 for (wmWindow &win : wm->windows) {
2205 if (
object && object->
type == OB_MESH) {
2208 if (em->selectmode != selectmode) {
2218static void rna_Scene_editmesh_select_mode_update(bContext *
C, PointerRNA * )
2223 Mesh *mesh =
nullptr;
2229 if (mesh && mesh->runtime->edit_mesh ==
nullptr) {
2240static void rna_Scene_uv_select_mode_update(bContext *
C, PointerRNA * )
2247static void rna_Scene_uv_select_sync_update(bContext *
C, PointerRNA * )
2252static void rna_Scene_uv_sticky_select_mode_update(bContext *
C, PointerRNA * )
2258static void object_simplify_update(
Scene *scene,
2260 bool update_normals,
2261 Depsgraph *depsgraph)
2266 if ((ob->id.tag & ID_TAG_DOIT) == 0) {
2270 ob->id.tag &= ~ID_TAG_DOIT;
2272 for (md = ob->modifiers.first(); md; md = md->next) {
2273 if (md->type == eModifierType_Nodes && depsgraph !=
nullptr) {
2275 const bke::GeometrySet *geometry_set = ob_eval->runtime->geometry_set_eval;
2276 if (geometry_set !=
nullptr && geometry_set->has_volume()) {
2282 md->type, eModifierType_Subsurf, eModifierType_Multires, eModifierType_ParticleSystem))
2288 for (psys = ob->particlesystem.first(); psys; psys = psys->next) {
2292 if (ob->instance_collection) {
2294 object_simplify_update(scene, ob_collection, update_normals, depsgraph);
2299 if (ob->
type == OB_VOLUME) {
2303 if (scene->r.mode & R_SIMPLIFY_NORMALS || update_normals) {
2309 if (ob->
type == OB_LAMP) {
2314static void rna_Scene_simplify_update_impl(Main *bmain,
2316 bool update_normals,
2317 Depsgraph *depsgraph)
2324 object_simplify_update(sce, ob, update_normals, depsgraph);
2329 object_simplify_update(sce, base->object, update_normals, depsgraph);
2337static void rna_Scene_use_simplify_update(bContext *
C, PointerRNA *ptr)
2339 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2342 rna_Scene_simplify_update_impl(bmain, scene,
false, depsgraph);
2345static void rna_Scene_simplify_volume_update(bContext *
C, PointerRNA *ptr)
2347 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2350 if (scene->r.mode & R_SIMPLIFY) {
2351 rna_Scene_simplify_update_impl(bmain, scene,
false, depsgraph);
2355static void rna_Scene_simplify_update(Main *bmain,
Scene *scene, PointerRNA * )
2357 if (scene->r.mode & R_SIMPLIFY) {
2358 rna_Scene_simplify_update_impl(bmain, scene,
false,
nullptr);
2362static void rna_Scene_use_simplify_normals_update(Main *bmain,
Scene *scene, PointerRNA * )
2366 if (scene->r.mode & R_SIMPLIFY) {
2367 rna_Scene_simplify_update_impl(bmain, scene,
true,
nullptr);
2371static void rna_Scene_use_persistent_data_update(Main * ,
2375 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2377 if (!(scene->r.mode & R_PERSISTENT_DATA)) {
2383static void rna_Scene_transform_orientation_slots_begin(CollectionPropertyIterator *iter,
2386 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2387 TransformOrientationSlot *orient_slot = &scene->orientation_slots[0];
2391 sizeof(*orient_slot),
2397static int rna_Scene_transform_orientation_slots_length(PointerRNA * )
2399 return ARRAY_SIZE((
static_cast<Scene *
>(
nullptr))->orientation_slots);
2402static bool rna_Scene_use_audio_get(PointerRNA *ptr)
2404 Scene *scene =
static_cast<Scene *
>(ptr->data);
2405 return (scene->audio.flag & AUDIO_MUTE) == 0;
2408static void rna_Scene_use_audio_set(PointerRNA *ptr,
bool value)
2410 Scene *scene =
static_cast<Scene *
>(ptr->data);
2416 scene->audio.flag &= ~AUDIO_MUTE;
2420static void rna_Scene_use_audio_update(Main * ,
Scene * , PointerRNA *ptr)
2425static int rna_Scene_sync_mode_get(PointerRNA *ptr)
2427 Scene *scene =
static_cast<Scene *
>(ptr->data);
2428 if (scene->audio.flag & AUDIO_SYNC) {
2434static void rna_Scene_sync_mode_set(PointerRNA *ptr,
int value)
2436 Scene *scene =
static_cast<Scene *
>(ptr->data);
2438 if (value == AUDIO_SYNC) {
2441 else if (value == SCE_FRAME_DROP) {
2442 scene->audio.flag &= ~AUDIO_SYNC;
2446 scene->audio.flag &= ~AUDIO_SYNC;
2447 scene->flag &= ~SCE_FRAME_DROP;
2451static void rna_View3DCursor_rotation_mode_set(PointerRNA *ptr,
int value)
2453 View3DCursor *cursor =
static_cast<View3DCursor *
>(ptr->data);
2457 cursor->rotation_euler,
2458 cursor->rotation_axis,
2459 &cursor->rotation_angle,
2464 cursor->rotation_mode = value;
2467static void rna_View3DCursor_rotation_axis_angle_get(PointerRNA *ptr,
float *value)
2469 View3DCursor *cursor =
static_cast<View3DCursor *
>(ptr->data);
2470 value[0] = cursor->rotation_angle;
2471 copy_v3_v3(&value[1], cursor->rotation_axis);
2474static void rna_View3DCursor_rotation_axis_angle_set(PointerRNA *ptr,
const float *value)
2476 View3DCursor *cursor =
static_cast<View3DCursor *
>(ptr->data);
2477 cursor->rotation_angle = value[0];
2478 copy_v3_v3(cursor->rotation_axis, &value[1]);
2481static void rna_View3DCursor_matrix_get(PointerRNA *ptr,
float *values)
2483 const View3DCursor *cursor =
static_cast<const View3DCursor *
>(ptr->data);
2487static void rna_View3DCursor_matrix_set(PointerRNA *ptr,
const float *values)
2489 View3DCursor *cursor =
static_cast<View3DCursor *
>(ptr->data);
2490 float unit_mat[4][4];
2491 normalize_m4_m4(unit_mat,
reinterpret_cast<const float (*)[4]
>(values));
2492 cursor->set_matrix(
float4x4(unit_mat),
false);
2495static std::optional<std::string> rna_TransformOrientationSlot_path(
const PointerRNA *ptr)
2497 const Scene *scene = id_cast<Scene *>(ptr->owner_id);
2498 const TransformOrientationSlot *orientation_slot =
static_cast<const TransformOrientationSlot *
>(
2501 if (!
ELEM(
nullptr, scene, orientation_slot)) {
2502 for (
int i = 0; i <
ARRAY_SIZE(scene->orientation_slots); i++) {
2503 if (&scene->orientation_slots[i] == orientation_slot) {
2504 return fmt::format(
"transform_orientation_slots[{}]", i);
2511 return "transform_orientation_slots[0]";
2514static std::optional<std::string> rna_View3DCursor_path(
const PointerRNA * )
2519static TimeMarker *rna_TimeLine_add(
Scene *scene,
const char name[],
int frame)
2521 TimeMarker *marker = MEM_new<TimeMarker>(
"TimeMarker");
2523 marker->frame = frame;
2533static void rna_TimeLine_remove(
Scene *scene, ReportList *reports, PointerRNA *marker_ptr)
2535 TimeMarker *marker =
static_cast<TimeMarker *
>(marker_ptr->data);
2539 "Timeline marker '%s' not found in scene '%s'",
2541 scene->id.
name + 2);
2546 marker_ptr->invalidate();
2552static void rna_TimeLine_clear(
Scene *scene)
2560static std::optional<std::string> rna_Scene_KeyingsSetsAll_path(
const PointerRNA * )
2562 return "keying_sets_all";
2565static KeyingSet *rna_Scene_keying_set_new(
Scene *sce,
2566 ReportList *reports,
2567 const char idname[],
2570 KeyingSet *ks =
nullptr;
2573 ks =
BKE_keyingset_add(&sce->keyingsets, idname, name, KEYINGSET_ABSOLUTE, INSERTKEY_NOFLAGS);
2576 sce->active_keyingset = sce->keyingsets.count();
2580 BKE_report(reports, RPT_ERROR,
"Keying set could not be added");
2585static std::optional<std::string> rna_CurvePaintSettings_path(
const PointerRNA * )
2587 return "tool_settings.curve_paint_settings";
2590static std::optional<std::string> rna_SequencerToolSettings_path(
const PointerRNA * )
2592 return "tool_settings.sequencer_tool_settings";
2596static void rna_EditMesh_update(bContext *
C, PointerRNA * )
2605 for (
Object *obedit : objects) {
2613static std::optional<std::string> rna_MeshStatVis_path(
const PointerRNA * )
2615 return "tool_settings.statvis";
2623static void rna_Scene_update_active_object_data(bContext *
C, PointerRNA * )
2637static void rna_SceneCamera_update(Main * ,
Scene * , PointerRNA *ptr)
2639 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2642 seq::cache_cleanup(scene, seq::CacheCleanup::SourceImage | seq::CacheCleanup::FinalAndIntra);
2649static void rna_SceneSequencer_update(Main * ,
Scene * , PointerRNA *ptr)
2651 seq::cache_cleanup(id_cast<Scene *>(ptr->owner_id), seq::CacheCleanup::FinalAndIntra);
2654static std::optional<std::string> rna_ToolSettings_path(
const PointerRNA * )
2656 return "tool_settings";
2661 FreestyleLineSet *lineset =
static_cast<FreestyleLineSet *
>(ptr->data);
2670 FreestyleLineSet *lineset =
static_cast<FreestyleLineSet *
>(ptr->data);
2672 if (lineset->linestyle) {
2675 lineset->linestyle =
static_cast<FreestyleLineStyle *
>(value.data);
2680 FreestyleSettings *config,
2684 Scene *scene = id_cast<Scene *>(
id);
2686 bmain,
reinterpret_cast<FreestyleConfig *
>(config), name);
2695 FreestyleSettings *config,
2696 ReportList *reports,
2697 PointerRNA *lineset_ptr)
2699 FreestyleLineSet *lineset =
static_cast<FreestyleLineSet *
>(lineset_ptr->data);
2700 Scene *scene = id_cast<Scene *>(
id);
2703 BKE_reportf(reports, RPT_ERROR,
"Line set '%s' could not be removed", lineset->name);
2707 lineset_ptr->invalidate();
2715 FreestyleConfig *config =
static_cast<FreestyleConfig *
>(ptr->data);
2721 PointerRNA *ptr,
int *
min,
int *
max,
int * ,
int * )
2723 FreestyleConfig *config =
static_cast<FreestyleConfig *
>(ptr->data);
2726 *
max =
max_ii(0, config->linesets.count() - 1);
2731 FreestyleConfig *config =
static_cast<FreestyleConfig *
>(ptr->data);
2737 FreestyleConfig *config =
static_cast<FreestyleConfig *
>(ptr->data);
2743 Scene *scene = id_cast<Scene *>(
id);
2745 reinterpret_cast<FreestyleConfig *
>(config));
2754 FreestyleSettings *config,
2755 ReportList *reports,
2756 PointerRNA *module_ptr)
2758 Scene *scene = id_cast<Scene *>(
id);
2759 FreestyleModuleConfig *
module =
static_cast<FreestyleModuleConfig *
>(module_ptr->data);
2765 "Style module '%s' could not be removed",
2766 module->script->id.name + 2);
2769 BKE_report(reports, RPT_ERROR,
"Style module could not be removed");
2774 module_ptr->invalidate();
2780static void rna_Stereo3dFormat_update(Main *bmain,
Scene * , PointerRNA *ptr)
2782 ID *
id = ptr->owner_id;
2784 if (
id &&
GS(id->name) == ID_IM) {
2785 Image *ima = id_cast<Image *>(
id);
2800 else if (
id &&
GS(id->name) == ID_SCE) {
2801 Scene *scene = id_cast<Scene *>(
id);
2802 Editing *ed = seq::editing_get(scene);
2804 if (ed ==
nullptr) {
2808 seq::foreach_strip(&ed->seqbase, [&](Strip *strip) {
2810 if (strip->stereo3d_format != ptr->data) {
2813 seq::relations_invalidate_cache_raw(scene, strip);
2819static ViewLayer *rna_ViewLayer_new(ID *
id,
Scene * , Main *bmain,
const char *name)
2821 Scene *scene = id_cast<Scene *>(
id);
2822 ViewLayer *view_layer =
BKE_view_layer_add(bmain, scene, name,
nullptr, VIEWLAYER_ADD_NEW);
2831static void rna_ViewLayer_remove(
2832 ID *
id,
Scene * , Main *bmain, ReportList *reports, PointerRNA *sl_ptr)
2834 Scene *scene = id_cast<Scene *>(
id);
2835 ViewLayer *view_layer =
static_cast<ViewLayer *
>(sl_ptr->data);
2838 sl_ptr->invalidate();
2842static void rna_ViewLayer_move(
2843 ID *
id,
Scene * , Main *bmain, ReportList *reports,
int from,
int to)
2849 Scene *scene = id_cast<Scene *>(
id);
2852 BKE_reportf(reports, RPT_ERROR,
"Could not move layer from index '%d' to '%d'", from, to);
2862 PointerRNA *ptr,
int *
min,
int *
max,
int * ,
int * )
2864 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2867 *
max =
max_ii(0, view_layer->aovs.count() - 1);
2872 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2873 return BLI_findindex(&view_layer->aovs, view_layer->active_aov);
2878 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2879 ViewLayerAOV *aov =
static_cast<ViewLayerAOV *
>(
BLI_findlink(&view_layer->aovs, value));
2880 view_layer->active_aov = aov;
2884 PointerRNA *ptr,
int *
min,
int *
max,
int * ,
int * )
2886 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2889 *
max =
max_ii(0, view_layer->lightgroups.count() - 1);
2894 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2895 return BLI_findindex(&view_layer->lightgroups, view_layer->active_lightgroup);
2900 ViewLayer *view_layer =
static_cast<ViewLayer *
>(ptr->data);
2901 ViewLayerLightgroup *lightgroup =
static_cast<ViewLayerLightgroup *
>(
2903 view_layer->active_lightgroup = lightgroup;
2906static void rna_ViewLayerLightgroup_name_get(PointerRNA *ptr,
char *value)
2908 ViewLayerLightgroup *lightgroup =
static_cast<ViewLayerLightgroup *
>(ptr->data);
2909 strcpy(value, lightgroup->name);
2912static int rna_ViewLayerLightgroup_name_length(PointerRNA *ptr)
2914 ViewLayerLightgroup *lightgroup =
static_cast<ViewLayerLightgroup *
>(ptr->data);
2915 return strlen(lightgroup->name);
2918static void rna_ViewLayerLightgroup_name_set(PointerRNA *ptr,
const char *value)
2920 ViewLayerLightgroup *lightgroup =
static_cast<ViewLayerLightgroup *
>(ptr->data);
2921 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2928# define V3D_ORIENT_DEFAULT -1
2930static int rna_TransformOrientationSlot_type_get(PointerRNA *ptr)
2932 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2933 TransformOrientationSlot *orient_slot =
static_cast<TransformOrientationSlot *
>(ptr->data);
2934 if (orient_slot != &scene->orientation_slots[SCE_ORIENT_DEFAULT]) {
2935 if ((orient_slot->flag &
SELECT) == 0) {
2936 return V3D_ORIENT_DEFAULT;
2942void rna_TransformOrientationSlot_type_set(PointerRNA *ptr,
int value)
2944 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2945 TransformOrientationSlot *orient_slot =
static_cast<TransformOrientationSlot *
>(ptr->data);
2947 if (orient_slot != &scene->orientation_slots[SCE_ORIENT_DEFAULT]) {
2948 if (value == V3D_ORIENT_DEFAULT) {
2953 orient_slot->flag |=
SELECT;
2960static PointerRNA rna_TransformOrientationSlot_get(PointerRNA *ptr)
2962 Scene *scene = id_cast<Scene *>(ptr->owner_id);
2963 TransformOrientationSlot *orient_slot =
static_cast<TransformOrientationSlot *
>(ptr->data);
2964 TransformOrientation *orientation;
2965 if (orient_slot->type < V3D_ORIENT_CUSTOM) {
2966 orientation =
nullptr;
2974static const EnumPropertyItem *rna_TransformOrientation_impl_itemf(
Scene *scene,
2975 const bool include_default,
2978 EnumPropertyItem tmp = {0,
"", 0,
"",
""};
2979 EnumPropertyItem *item =
nullptr;
2982 if (include_default) {
2983 tmp.identifier =
"DEFAULT";
2984 tmp.name =
N_(
"Default");
2985 tmp.description =
N_(
"Use the scene orientation");
2986 tmp.value = V3D_ORIENT_DEFAULT;
2987 tmp.icon = ICON_OBJECT_ORIGIN;
2996 const ListBaseT<TransformOrientation> *transform_orientations = scene ?
2997 &scene->transform_spaces :
3000 if (transform_orientations && (transform_orientations->is_empty() ==
false)) {
3003 for (TransformOrientation &ts : *transform_orientations) {
3004 tmp.identifier = ts.name;
3026 if (ptr->owner_id && (
GS(ptr->owner_id->name) == ID_SCE)) {
3027 scene = id_cast<Scene *>(ptr->owner_id);
3032 return rna_TransformOrientation_impl_itemf(scene,
false, r_free);
3035const EnumPropertyItem *rna_TransformOrientation_with_scene_itemf(bContext *
C,
3044 Scene *scene = id_cast<Scene *>(ptr->owner_id);
3045 TransformOrientationSlot *orient_slot =
static_cast<TransformOrientationSlot *
>(ptr->data);
3046 bool include_default = (orient_slot != &scene->orientation_slots[
SCE_ORIENT_DEFAULT]);
3047 return rna_TransformOrientation_impl_itemf(scene, include_default, r_free);
3050# undef V3D_ORIENT_DEFAULT
3052static const EnumPropertyItem *rna_UnitSettings_itemf_wrapper(
const int system,
3060 EnumPropertyItem *items =
nullptr;
3063 EnumPropertyItem adaptive = {0};
3064 adaptive.identifier =
"ADAPTIVE";
3065 adaptive.name =
N_(
"Adaptive");
3069 for (
int i = 0; i <
len; i++) {
3071 EnumPropertyItem tmp = {0};
3085const EnumPropertyItem *rna_UnitSettings_length_unit_itemf(bContext * ,
3090 const UnitSettings *units =
static_cast<const UnitSettings *
>(ptr->data);
3091 return rna_UnitSettings_itemf_wrapper(units->system, B_UNIT_LENGTH, r_free);
3094const EnumPropertyItem *rna_UnitSettings_mass_unit_itemf(bContext * ,
3099 const UnitSettings *units =
static_cast<const UnitSettings *
>(ptr->data);
3100 return rna_UnitSettings_itemf_wrapper(units->system, B_UNIT_MASS, r_free);
3103const EnumPropertyItem *rna_UnitSettings_time_unit_itemf(bContext * ,
3108 const UnitSettings *units =
static_cast<const UnitSettings *
>(ptr->data);
3109 return rna_UnitSettings_itemf_wrapper(units->system, B_UNIT_TIME, r_free);
3112const EnumPropertyItem *rna_UnitSettings_temperature_unit_itemf(bContext * ,
3117 const UnitSettings *units =
static_cast<const UnitSettings *
>(ptr->data);
3118 return rna_UnitSettings_itemf_wrapper(units->system, B_UNIT_TEMPERATURE, r_free);
3121static void rna_UnitSettings_system_update(Main * ,
Scene *scene, PointerRNA * )
3123 UnitSettings *unit = &scene->unit;
3124 if (unit->system == USER_UNIT_NONE) {
3134static std::optional<std::string> rna_UnitSettings_path(
const PointerRNA * )
3136 return "unit_settings";
3139static std::optional<std::string> rna_FFmpegSettings_path(
const PointerRNA * )
3141 return "render.ffmpeg";
3146static void rna_FFmpegSettings_codec_update(Main * ,
Scene * , PointerRNA *ptr)
3148 FFMpegCodecData *codec_data = (FFMpegCodecData *)ptr->data;
3156 const ID *
id = ptr->owner_id;
3157 const bool is_render = (
id &&
GS(id->name) ==
ID_SCE);
3161 scene->r.im_format.imtype,
id);
3162 if ((scene->r.im_format.depth & valid_depths) == 0) {
3169static std::optional<std::string> rna_SceneCompositorEffect_path(
const PointerRNA *ptr)
3171 SceneCompositorEffect *effect = ptr->data_as<SceneCompositorEffect>();
3172 const std::string escaped_effect_name =
BLI_str_escape(effect->name);
3173 return fmt::format(
"compositor_effects[\"{}\"]", escaped_effect_name);
3176static void rna_SceneCompositorEffect_name_set(PointerRNA *ptr,
const char *value)
3178 Scene *scene = id_cast<Scene *>(ptr->owner_id);
3179 SceneCompositorEffect *effect = ptr->data_as<SceneCompositorEffect>();
3180 bke::compositor::rename_effect(*scene, *effect, value);
3184static void rna_SceneCompositorEffect_is_active_set(PointerRNA *ptr,
bool is_active)
3191 Scene *scene = id_cast<Scene *>(ptr->owner_id);
3192 SceneCompositorEffect *effect = ptr->data_as<SceneCompositorEffect>();
3193 bke::compositor::set_active_effect(*scene, *effect);
3198static bool rna_SceneCompositorEffect_node_group_poll(PointerRNA * , PointerRNA value)
3200 const bNodeTree *node_tree = value.data_as<bNodeTree>();
3201 if (node_tree->type != NTREE_COMPOSIT) {
3204 if (node_tree->compositor_node_asset_traits) {
3205 if ((node_tree->compositor_node_asset_traits->flag & COMPOSIT_NODE_ASSET_SCENE_EFFECT) == 0) {
3212static void rna_SceneCompositorEffect_node_group_update(Main *bmain,
3214 PointerRNA *effect_ptr)
3216 Scene *scene = id_cast<Scene *>(effect_ptr->owner_id);
3222 SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3223 bke::compositor::update_effect_node_group_interface(*bmain, *scene, *effect);
3226static SceneCompositorEffect *rna_SceneCompositorEffects_new(ID *scene_id,
const char *name)
3228 Scene *scene = id_cast<Scene *>(scene_id);
3229 SceneCompositorEffect &effect = bke::compositor::new_effect(*scene, name);
3234static void rna_SceneCompositorEffects_remove(ID *scene_id,
3236 ReportList *reports,
3237 PointerRNA *effect_ptr)
3239 Scene *scene = id_cast<Scene *>(scene_id);
3240 SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3241 if (
BLI_findindex(&scene->compositor_effects, effect) == -1) {
3242 BKE_report(reports, RPT_ERROR,
"Effect was not found in the stack");
3245 bke::compositor::remove_effect(*scene, *effect);
3246 effect_ptr->invalidate();
3253static void rna_SceneCompositorEffects_clear(ID *scene_id, Main *bmain)
3255 Scene *scene = id_cast<Scene *>(scene_id);
3256 bke::compositor::clear_effects(*scene);
3263static PointerRNA rna_SceneCompositorEffects_active_get(PointerRNA *ptr)
3266 SceneCompositorEffect *effect = bke::compositor::get_active_effect(*scene);
3270static void rna_SceneCompositorEffects_active_set(PointerRNA *ptr,
3275 SceneCompositorEffect *effect = value.data_as<SceneCompositorEffect>();
3276 bke::compositor::set_active_effect(*scene, *effect);
3278 if (bke::compositor::is_effect_enabled(*effect, bke::compositor::ExecutionMode::Preview)) {
3284static StructRNA *rna_SceneCompositorEffectProperties_refine(PointerRNA *effect_ptr)
3286 SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3287 if (!effect->node_group ||
ID_MISSING(effect->node_group)) {
3288 return RNA_SceneCompositorEffectPropertiesEmpty;
3290 if (!effect->node_group->runtime->scene_compositor_effect_srna_data) {
3291 return RNA_SceneCompositorEffectPropertiesEmpty;
3293 return effect->node_group->runtime->scene_compositor_effect_srna_data->properties_struct;
3296static std::optional<std::string> rna_SceneCompositorEffectProperties_path(
3297 const PointerRNA *effect_ptr)
3299 const SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3300 return fmt::format(
"compositor_effects[\"{}\"].properties",
BLI_str_escape(effect->name));
3303static IDProperty **rna_SceneCompositorEffect_idprops(PointerRNA *effect_ptr)
3305 SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3306 return &effect->system_properties;
3309static PointerRNA rna_SceneCompositorEffectProperties_get(PointerRNA *effect_ptr)
3311 SceneCompositorEffect *effect = effect_ptr->data_as<SceneCompositorEffect>();
3312 if (!effect->node_group) {
3330 srna =
RNA_def_struct(brna,
"GPencilInterpolateSettings",
nullptr);
3333 "Grease Pencil Interpolate Settings",
3334 "Settings for Grease Pencil interpolation tools");
3343 "Interpolation Curve",
3344 "Custom curve to control 'sequence' interpolation between Grease Pencil frames");
3370 srna =
RNA_def_struct(brna,
"TransformOrientationSlot",
nullptr);
3379 "rna_TransformOrientationSlot_type_get",
3380 "rna_TransformOrientationSlot_type_set",
3381 "rna_TransformOrientation_with_scene_itemf");
3388 prop,
"rna_TransformOrientationSlot_get",
nullptr,
nullptr,
nullptr);
3421 prop,
"Quaternion Rotation",
"Rotation in quaternions (keep normalized)");
3428 "rna_View3DCursor_rotation_axis_angle_get",
3429 "rna_View3DCursor_rotation_axis_angle_set",
3433 prop,
"Axis-Angle Rotation",
"Angle of Rotation for Axis-Angle rotation representation");
3452 "The kind of rotation to apply, values from other rotation modes are not used");
3460 prop,
"Transform Matrix",
"Matrix combining location and rotation of the cursor");
3462 prop,
"rna_View3DCursor_matrix_get",
"rna_View3DCursor_matrix_set",
nullptr);
3478 {0,
nullptr, 0,
nullptr,
nullptr},
3487 "Show vertices with no weights in the active group"},
3489 {0,
nullptr, 0,
nullptr,
nullptr},
3498 "Vertex Groups assigned to Deform Bones"},
3503 "Vertex Groups assigned to non Deform Bones"},
3504 {0,
nullptr, 0,
nullptr,
nullptr},
3512 "Draw stroke at Object origin"},
3517 "Draw stroke at 3D cursor location"},
3522 "Stick stroke to surfaces"},
3527 "Stick stroke to other strokes"},
3528 {0,
nullptr, 0,
nullptr,
nullptr},
3532 {0,
"NONE", 0,
"All Points",
"Snap to all points"},
3537 "Snap to first and last points and interpolate"},
3539 {0,
nullptr, 0,
nullptr,
nullptr},
3542 static const EnumPropertyItem annotation_stroke_placement_view2d_items[] = {
3547 "Stick stroke to the image"},
3549 {0,
"VIEW", ICON_RESTRICT_VIEW_ON,
"View",
"Stick stroke to the view"},
3550 {0,
nullptr, 0,
nullptr,
nullptr},
3553 static const EnumPropertyItem annotation_stroke_placement_view3d_items[] = {
3558 "Draw stroke at 3D cursor location"},
3560 {0,
"VIEW", ICON_RESTRICT_VIEW_ON,
"View",
"Stick stroke to the view"},
3565 "Stick stroke to surfaces"},
3566 {0,
nullptr, 0,
nullptr,
nullptr},
3572 ICON_STICKY_UVS_DISABLE,
3574 "Sticky vertex selection disabled"},
3577 ICON_STICKY_UVS_LOC,
3579 "Select UVs that are at the same location and share a mesh vertex"},
3582 ICON_STICKY_UVS_VERT,
3584 "Select UVs that share a mesh vertex, whether or not they are at the same location"},
3585 {0,
nullptr, 0,
nullptr,
nullptr},
3610 "Weight Paint Auto-Normalize",
3611 "Ensure all bone-deforming vertex groups add up "
3612 "to 1.0 while weight painting or assigning to vertices");
3619 "Weight Paint Lock-Relative",
3620 "Display bone-deforming groups as if all locked deform groups "
3621 "were deleted, and the remaining ones were re-normalized");
3628 "Weight Paint Multi-Paint",
3629 "Paint across the weights of all selected bones, "
3630 "maintaining their relative influence");
3702 "Lock Object Modes",
3703 "Restrict selection to objects using the same mode as the active "
3704 "object, to prevent accidental mode switch when selecting");
3710 {0,
nullptr, 0,
nullptr,
nullptr},
3732 prop,
"Proportional Editing Objects",
"Proportional editing object mode");
3740 prop,
"Projected from View",
"Proportional Editing using screen space locations");
3747 prop,
"Connected Only",
"Proportional Editing using connected geometry only");
3761 prop,
"Proportional Editing Actions",
"Proportional editing in action editor");
3769 prop,
"Proportional Editing F-Curves",
"Proportional editing in F-Curve editor");
3783 prop,
"Proportional Editing Falloff",
"Falloff type for proportional editing mode");
3792 prop,
"Proportional Size",
"Display size for proportional editing circle");
3799 prop,
"Proportional Size",
"Display size for proportional editing circle");
3823 "Only transform object locations, without affecting rotation or scaling");
3830 prop,
"Transform Origins",
"Transform object origins, while leaving the shape in place");
3837 prop,
"Transform Parents",
"Transform the parents, leaving the children in place");
3844 prop,
"Transform Pivot",
"Transform sculpt pivot, while leaving the shape in place");
3851 "Correct Face Attributes",
3852 "Correct data such as UVs and color attributes when transforming");
3862 "During the Face Attributes correction, merge attributes connected to the same vertex");
3869 prop,
"Auto Merge Vertices",
"Automatically merge vertices moved to the same location");
3912 prop,
"Align Rotation to Target",
"Align rotation with the snapping target");
3920 "Absolute Increment Snap",
3921 "Absolute grid alignment while translating (based on the pivot center)");
3927 prop,
"Rotation Increment",
"Angle used for rotation increments in 2D editors");
3935 "Rotation Precision Increment",
3936 "Precision angle used for rotation increments in 2D editors");
3944 prop,
"Rotation Increment",
"Angle used for rotation increments in 3D editors");
3952 "Rotation Precision Increment",
3953 "Precision angle used for rotation increments in 3D editors");
3963 prop,
"rna_ToolSettings_snap_mode_get",
"rna_ToolSettings_snap_mode_set",
nullptr);
3972 prop,
"rna_ToolSettings_snap_mode_get",
"rna_ToolSettings_snap_mode_set",
nullptr);
3974 prop,
"Snap Element",
"Type of element for the \"Snap Base\" to snap to");
3982 prop,
"rna_ToolSettings_snap_mode_get",
"rna_ToolSettings_snap_mode_set",
nullptr);
3984 prop,
"Project Mode",
"Type of element for individual transformed elements to snap to");
3993 "Face Nearest Steps",
3994 "Number of steps to break transformation into for face nearest snapping");
4001 "Snap to Same Target",
4002 "Snap only to target that source was initially near (\"Face Nearest\" only)");
4015 prop,
"Snap",
"Enable snapping when transforming keys in the Driver Editor");
4023 prop,
"Absolute Time Snap",
"Absolute time alignment when transforming keyframes");
4097 prop,
"Snap Peel Object",
"Consider objects as whole when finding volume center");
4112 prop,
"Snap onto Active",
"Snap onto itself only if enabled (edit mode only)");
4119 prop,
"Snap onto Edited",
"Snap onto non-active objects in edit mode (edit mode only)");
4126 prop,
"Snap onto Non-edited",
"Snap onto objects not in edit mode (edit mode only)");
4133 prop,
"Snap onto Selectable Only",
"Snap only onto objects that are selectable");
4141 prop,
"Use Snap for Translation",
"Move is affected by snapping settings");
4150 prop,
"Use Snap for Rotation",
"Rotate is affected by the snapping settings");
4174 "Select the closest axis when placing objects "
4175 "(surface overrides)");
4203 "Use Additive Drawing",
4204 "When creating new frames, the strokes from the previous/active frame "
4205 "are included as the basis for the new one");
4212 prop,
"Draw Strokes on Back",
"New strokes are drawn below of all strokes in the layer");
4220 prop,
"Compact List",
"Show compact list of colors instead of thumbnails");
4227 "Add weight data for new strokes",
4228 "Weight data for new strokes is added according to the current vertex "
4229 "group and weight. If no vertex group selected, weight is not added.");
4240 "Join the last drawn stroke with previous strokes in the active layer by distance");
4249 prop,
"Grease Pencil Sculpt",
"Settings for stroke sculpting tools and brushes");
4256 prop,
"Grease Pencil Interpolate",
"Settings for Grease Pencil interpolation tools");
4277 prop,
"Surface Offset",
"Offset along the normal when drawing on surfaces");
4287 prop,
"Project Onto Selected",
"Project the strokes only onto selected objects");
4326 prop,
"Selection Mask",
"Only sculpt selected stroke points between other strokes");
4360 prop,
"Selection Mask",
"Only paint selected stroke points between other strokes");
4393 "Annotation Stroke Placement (3D View)",
4394 "How annotation strokes are orientated in 3D space");
4402 prop,
"Only Endpoints",
"Only use the first and last parts of the stroke for snapping");
4410 prop,
"Project Onto Selected",
"Project the strokes only onto selected objects");
4426 prop,
"Auto Keying",
"Automatically insert keyframes on modified properties");
4437 "Can add additional constraints on when auto keying can insert keyframes");
4445 "Add a new NLA Track + Strip for every loop/pass made over the animation "
4446 "to allow non-destructive tweaking");
4452 "Auto Keyframe Insert Keying Set",
4453 "Automatic keyframe insertion using active Keying Set only");
4461 "Cycle-Aware Keying",
4462 "For channels with cyclic extrapolation, keyframe insertion is automatically "
4463 "remapped inside the cycle time range, and keeps ends in sync. Curves newly added to "
4464 "actions with a Manual Frame Range and Cyclic Animation are automatically made cyclic.");
4472 prop,
"New Keyframe Type",
"Type of keyframes to create when inserting keyframes");
4482 "Object to mirror over. Leave empty and name a bone to always mirror "
4483 "over that bone of the active armature");
4497 prop,
"Use Location for Camera Fix",
"Create location keys when fixing to the scene camera");
4502 prop,
"Use Rotation for Camera Fix",
"Create rotation keys when fixing to the scene camera");
4507 prop,
"Use Scale for Camera Fix",
"Create scale keys when fixing to the scene camera");
4529 prop,
"Sticky Selection Mode",
"Method for extending UV vertex selection");
4541 prop,
"UV Sync Selection",
"Keep UV and edit mode mesh selection in sync");
4560 prop,
"UV Local View",
"Display only faces with the currently displayed image assigned");
4628 {
V3D_AROUND_CURSOR,
"CURSOR", ICON_PIVOT_CURSOR,
"2D Cursor",
"Pivot around the 2D cursor"},
4630 "INDIVIDUAL_ORIGINS",
4631 ICON_PIVOT_INDIVIDUAL,
4632 "Individual Origins",
4633 "Pivot around each selected island's own median point"},
4634 {0,
nullptr, 0,
nullptr,
nullptr},
4657 "Snap to underlying strip content start and end in cases where the "
4658 "strip length extends beyond this range, producing holds");
4689 prop,
"Other Strips",
"Snap to borders and origins of deselected, visible strips");
4703 prop,
"Snap Current Frame to Strips",
"Snap current frame to strip start or end");
4709 "Allow snapping to any channel. If disabled, only snap to strips "
4710 "currently on the same channel as transformed strips");
4728 "Ripple strips on other channels too, else only strips on the same "
4729 "channels as the edited strips");
4740 "Delete strip contents inside the removed ranges on rippled channels so later strips "
4741 "close the full gap, else ripple later strips only as far as they can");
4747 "Split strips at the leftmost edited handle and push the remainder "
4748 "aside, else ripple only as far as needed to resolve the overlap");
4768 {
CU_POLY,
"POLY", 0,
"Poly",
""},
4769 {
CU_BEZIER,
"BEZIER", 0,
"Bézier",
""},
4770 {0,
nullptr, 0,
nullptr,
nullptr},
4799 prop,
"Absolute Offset",
"Apply a fixed offset (don't scale by the radius)");
4805 prop,
"Project Onto Selected",
"Project the strokes only onto selected objects");
4830 "Minimum radius when the minimum pressure is applied (also the minimum when tapering)");
4839 "Radius to use when the maximum pressure is applied (or when a tablet isn't used)");
4846 prop,
"Radius Min",
"Taper factor for the radius of each point along the curve");
4853 prop,
"Radius Max",
"Taper factor for the radius of each point along the curve");
4864 {0,
nullptr, 0,
nullptr,
nullptr},
4877 "Normal to Surface",
4878 "Draw in a plane perpendicular to the surface"},
4882 "Tangent to Surface",
4883 "Draw in the surface plane"},
4888 "Draw in a plane aligned to the viewport"},
4889 {0,
nullptr, 0,
nullptr,
nullptr},
4910 {0,
nullptr, 0,
nullptr,
nullptr},
5016 {0,
nullptr, 0,
nullptr,
nullptr},
5020 {0,
"DEGREES", 0,
"Degrees",
"Use degrees for measuring angles and rotations"},
5022 {0,
nullptr, 0,
nullptr,
nullptr},
5034 prop,
"Unit System",
"The unit system to use for user interface controls");
5040 prop,
"Rotation Units",
"Unit to use for displaying/editing rotation values");
5047 "Scale to use when converting between Blender units and dimensions."
5048 " When working at microscopic or astronomical scale, a small or large unit scale"
5049 " respectively can be used to avoid numerical precision problems");
5081 prop,
"Temperature Unit",
"Unit that will be used to display temperature values");
5110 prop,
"Transparent",
"Deliver alpha blended surfaces in a separate pass");
5117 prop,
"Distance",
"Distance of object that contribute to the ambient occlusion effect");
5131 "Denoising Pass Albedo Roughness Weighting",
5132 "Use roughness-based weighting of the albedo for the denoising feature passes");
5204 parm =
RNA_def_pointer(func,
"lightgroup",
"Lightgroup",
"",
"Newly created Lightgroup");
5207 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Name",
"Name of newly created lightgroup");
5209 func =
RNA_def_function(srna,
"remove",
"BKE_view_layer_remove_lightgroup");
5210 parm =
RNA_def_pointer(func,
"lightgroup",
"Lightgroup",
"",
"Lightgroup to remove");
5227 "rna_ViewLayerLightgroup_name_get",
5228 "rna_ViewLayerLightgroup_name_length",
5229 "rna_ViewLayerLightgroup_name_set");
5262 prop,
"Material Override",
"Material to override all other materials in this view layer");
5276 "Override number of render samples for this view layer, "
5277 "0 will use the scene setting");
5284 "Z, Index, normal, UV and vector passes are only affected by surfaces with "
5285 "alpha transparency equal to or higher than this threshold");
5306 "rna_ViewLayer_active_aov_index_get",
5307 "rna_ViewLayer_active_aov_index_set",
5308 "rna_ViewLayer_active_aov_index_range");
5325 "rna_ViewLayer_active_lightgroup_index_get",
5326 "rna_ViewLayer_active_lightgroup_index_set",
5327 "rna_ViewLayer_active_lightgroup_index_range");
5336 "Cryptomatte Object",
5337 "Render cryptomatte object pass, for isolating objects in compositing");
5345 "Cryptomatte Material",
5346 "Render cryptomatte material pass, for isolating materials in compositing");
5353 "Cryptomatte Asset",
5354 "Render cryptomatte asset pass, for isolating groups of objects with the same parent");
5361 prop,
"Cryptomatte Levels",
"Sets how many unique objects can be distinguished per pixel");
5369 prop,
"Cryptomatte Accurate",
"Generate a more accurate cryptomatte pass");
5425 prop,
"Motion Blur",
"Render motion blur in this Layer, if enabled in the scene");
5706 srna,
"Style Modules",
"A list of style modules (to be applied from top to bottom)");
5710 "Add a style module to scene render layer Freestyle settings");
5713 func,
"module",
"FreestyleModuleSettings",
"",
"Newly created style module");
5717 func =
RNA_def_function(srna,
"remove",
"rna_FreestyleSettings_module_remove");
5719 func,
"Remove a style module from scene render layer Freestyle settings");
5721 parm =
RNA_def_pointer(func,
"module",
"FreestyleModuleSettings",
"",
"Style module to remove");
5737 srna,
"Line Sets",
"Line sets for associating lines and style parameters");
5742 prop,
"rna_FreestyleSettings_active_lineset_get",
nullptr,
nullptr,
nullptr);
5748 "rna_FreestyleSettings_active_lineset_index_get",
5749 "rna_FreestyleSettings_active_lineset_index_set",
5750 "rna_FreestyleSettings_active_lineset_index_range");
5757 parm =
RNA_def_string(func,
"name",
"LineSet", 0,
"",
"New name for the line set (not unique)");
5759 parm =
RNA_def_pointer(func,
"lineset",
"FreestyleLineSet",
"",
"Newly created line set");
5763 func =
RNA_def_function(srna,
"remove",
"rna_FreestyleSettings_lineset_remove");
5765 "Remove a line set from scene render layer Freestyle settings");
5767 parm =
RNA_def_pointer(func,
"lineset",
"FreestyleLineSet",
"",
"Line set to remove");
5782 "Select feature edges satisfying the given edge type conditions"},
5787 "Select feature edges not satisfying the given edge type conditions"},
5788 {0,
nullptr, 0,
nullptr,
nullptr},
5796 "Select feature edges satisfying at least one of edge type conditions"},
5801 "Select feature edges satisfying all edge type conditions"},
5802 {0,
nullptr, 0,
nullptr,
nullptr},
5810 "Select feature edges belonging to some object in the group"},
5815 "Select feature edges not belonging to any object in the group"},
5816 {0,
nullptr, 0,
nullptr,
nullptr},
5824 "Select feature edges satisfying the given face mark conditions"},
5829 "Select feature edges not satisfying the given face mark conditions"},
5830 {0,
nullptr, 0,
nullptr,
nullptr},
5834 {0,
"ONE", 0,
"One Face",
"Select a feature edge if either of its adjacent faces is marked"},
5839 "Select a feature edge if both of its adjacent faces are marked"},
5840 {0,
nullptr, 0,
nullptr,
nullptr},
5848 "Advanced mode for using style modules written in Python"},
5853 "Basic mode for interactive style parameter editing"},
5854 {0,
nullptr, 0,
nullptr,
nullptr},
5863 "Quantitative Invisibility",
5864 "Select feature edges within a range of quantitative invisibility (QI) values"},
5865 {0,
nullptr, 0,
nullptr,
nullptr},
5872 srna,
"Freestyle Line Set",
"Line set for associating lines and style parameters");
5881 "rna_FreestyleLineSet_linestyle_get",
5882 "rna_FreestyleLineSet_linestyle_set",
5897 prop,
"Render",
"Enable or disable this line set during stroke rendering");
5903 prop,
"Selection by Visibility",
"Select feature edges based on visibility");
5909 prop,
"Selection by Edge Types",
"Select feature edges based on edge types");
5915 prop,
"Selection by Collection",
"Select feature edges based on a collection of objects");
5921 "Selection by Image Border",
5922 "Select feature edges by image border (less memory consumption)");
5935 "Edge Type Negation",
5936 "Specify either inclusion or exclusion of feature edges selected by edge types");
5944 "Edge Type Combination",
5945 "Specify a logical combination of selection conditions on feature edge types");
5953 prop,
"Collection",
"A collection of objects based on which feature edges are selected");
5960 "Collection Negation",
5961 "Specify either inclusion or exclusion of feature edges belonging to a "
5962 "collection of objects");
5970 "Face Mark Negation",
5971 "Specify either inclusion or exclusion of feature edges selected by face marks");
5978 "Face Mark Condition",
5979 "Specify a feature edge selection condition based on face marks");
5987 "Select silhouettes (edges at the boundary of visible and hidden faces)");
5999 "Select crease edges (those between two faces making an angle smaller "
6000 "than the Crease Angle)");
6008 "Select ridges and valleys (boundary lines between convex and concave areas of surface)");
6014 prop,
"Suggestive Contour",
"Select suggestive contours (almost silhouette/contour edges)");
6032 "Select external contours (outer silhouettes of occluding and occluded objects)");
6038 prop,
"Edge Mark",
"Select edge marks (edges annotated by Freestyle edge marks)");
6102 prop,
"Visibility",
"Determine how to use visibility for feature edge selection");
6122 srna,
"Freestyle Module",
"Style module configuration for specifying a style module");
6133 prop,
"Use",
"Enable or disable this style module during stroke rendering");
6142 srna,
"Freestyle Settings",
"Freestyle settings for a ViewLayer data-block");
6148 prop,
"Style Modules",
"A list of style modules (to be applied from top to bottom)");
6180 prop,
"Face Smoothness",
"Take face smoothness into account in view map calculation");
6188 "Keep the computed view map and avoid recalculating it if mesh geometry is unchanged");
6197 "Renders Freestyle output to a separate pass instead of overlaying it on the Combined pass");
6212 prop,
"Kr Derivative Epsilon",
"Kr derivative epsilon for computing suggestive contours");
6235 "VECTOR_DISPLACEMENT",
6237 "Vector Displacement",
6238 "Bake vector displacement"},
6239 {0,
nullptr, 0,
nullptr,
nullptr},
6245 {0,
nullptr, 0,
nullptr,
nullptr},
6266 "Object to use as cage "
6267 "instead of calculating the cage from the active object with cage extrusion");
6302 "The maximum ray distance for matching points between the active and "
6303 "selected objects. If zero, there is no limit.");
6312 "Inflate the active object by the specified distance for baking. This helps matching to "
6313 "points nearer to the outside of the selected object meshes.");
6366 "Selected to Active",
6367 "Bake shading on the surface of selected objects to the active object");
6378 prop,
"Split Materials",
"Split external images per material (external only)");
6386 "Automatically name the output file with the pass type (external only)");
6444 prop,
"Low Resolution Mesh",
"Calculate heights against unsubdivided low resolution mesh");
6469 func,
"name",
"ViewLayer", 0,
"",
"New name for the view layer (not unique)");
6471 parm =
RNA_def_pointer(func,
"result",
"ViewLayer",
"",
"Newly created view layer");
6478 parm =
RNA_def_pointer(func,
"layer",
"ViewLayer",
"",
"View layer to remove");
6486 func,
"from_index", -1, INT_MIN,
INT_MAX,
"From Index",
"Index to move", 0, 10000);
6488 parm =
RNA_def_int(func,
"to_index", -1, INT_MIN,
INT_MAX,
"To Index",
"Target index", 0, 10000);
6500 srna,
"Scene Render View",
"Render viewpoint for 3D stereo and multiview rendering");
6520 "Suffix to identify the cameras to use, and added to the render images for this view");
6547 "rna_RenderSettings_active_view_index_get",
6548 "rna_RenderSettings_active_view_index_set",
6549 "rna_RenderSettings_active_view_index_range");
6556 "rna_RenderSettings_active_view_get",
6557 "rna_RenderSettings_active_view_set",
6568 func,
"name",
"RenderView", 0,
"",
"New name for the render view (not unique)");
6570 parm =
RNA_def_pointer(func,
"result",
"SceneRenderView",
"",
"Newly created render view");
6577 parm =
RNA_def_pointer(func,
"view",
"SceneRenderView",
"",
"Render view to remove");
6593 "Render views for left and right eyes as two differently filtered colors in a single image "
6594 "(anaglyph glasses are required)"},
6599 "Render views for left and right eyes interlaced in a single image (3D-ready monitor is "
6605 "Render views for left and right eyes side-by-side"},
6610 "Render views for left and right eyes one above another"},
6611 {0,
nullptr, 0,
nullptr,
nullptr},
6657# ifdef WITH_IMAGE_OPENJPEG
6661 {0,
nullptr, 0,
nullptr,
nullptr},
6670 {0,
nullptr, 0,
nullptr,
nullptr},
6676 {0,
nullptr, 0,
nullptr,
nullptr},
6695 "rna_ImageFormatSettings_media_type_set",
6696 "rna_ImageFormatSettings_media_type_itemf");
6705 "rna_ImageFormatSettings_file_format_set",
6706 "rna_ImageFormatSettings_file_format_itemf");
6717 "Choose BW for saving grayscale images, RGB for saving red, green and blue channels, "
6718 "and RGBA for saving red, green, blue and alpha channels");
6733 prop,
"Quality",
"Quality for image formats that support lossy compression");
6742 "Amount of time to determine best compression: "
6743 "0 = no compression with fast file output, "
6744 "100 = maximum lossless compression with slow file output");
6750 prop,
"Preview",
"When rendering animations, save JPG preview images in same directory");
6768 "Use legacy interleaved storage of views, layers and passes for compatibility with "
6769 "applications that do not support more efficient multi-part OpenEXR files.");
6772# ifdef WITH_IMAGE_OPENJPEG
6777 prop,
"YCC",
"Save luminance-chrominance-chrominance channels instead of RGB colors");
6834 prop,
nullptr,
nullptr,
"rna_ImageFormatSettings_views_format_itemf");
6848 prop,
"Color Management",
"Which color management settings to use for file saving");
6850 prop,
nullptr,
"rna_ImageFormatSettings_color_management_set",
nullptr);
6856 prop,
"View Settings",
"Color management settings applied on image before saving");
6861 prop,
"Display Settings",
"Settings of device saved image would be displayed on");
6869 prop,
"rna_ImageFormatSettings_has_linear_colorspace_get",
nullptr);
6872 prop,
"Has Linear Color Space",
"File format expects linear color space");
6894 {
FFMPEG_MOV,
"QUICKTIME", 0,
"QuickTime",
""},
6895 {0,
nullptr, 0,
nullptr,
nullptr},
6903 "Disables video output, for audio-only renders"},
6922 {0,
nullptr, 0,
nullptr,
nullptr},
6933 "Recommended if you have lots of time and want the best compression efficiency"},
6934 {
FFM_PRESET_GOOD,
"GOOD", 0,
"Good",
"The default and recommended for most applications"},
6936 {0,
nullptr, 0,
nullptr,
nullptr},
6946 {0,
nullptr, 0,
nullptr,
nullptr},
6954 "Configure constant bit rate, rather than constant output quality"},
6962 {
FFM_CRF_CUSTOM,
"CUSTOM", 0,
"Custom Quality",
"Set a custom Constant Rate Factor (CRF)."},
6963 {0,
nullptr, 0,
nullptr,
nullptr},
6971 "Disables audio output, for video-only renders"},
6980 {0,
nullptr, 0,
nullptr,
nullptr},
6992 "Set audio channels to 5.1 surround sound"},
6997 "Set audio channels to 7.1 surround sound"},
6998 {0,
nullptr, 0,
nullptr,
nullptr},
7053 "Keyframe Interval",
7054 "Distance between key frames, also known as GOP size; "
7055 "influences file size and seekability");
7065 "Maximum number of B-frames between non-B-frames; influences file size and seekability");
7096 "Constant Rate Factor (CRF); tradeoff between video quality and file size");
7106 "A smaller Constant Rate Factor (CRF) results in better video quality but larger file size. "
7107 "The range of allowed CRF values is dependent on the codec.");
7116 prop,
"Encoding Speed",
"Tradeoff between encoding speed and compression ratio");
7185 {0,
"AUTO", 0,
"Automatic",
"Automatic pixel size, depends on the user interface scale"},
7190 {0,
nullptr, 0,
nullptr,
nullptr},
7194 {1,
"FILTER_0", 0,
"Off",
"Turn off anisotropic filtering"},
7199 "Use 2 samples for anisotropic filtering"},
7204 "Use 4 samples for anisotropic filtering"},
7209 "Use 8 samples for anisotropic filtering"},
7214 "Use 16 samples for anisotropic filtering"},
7215 {0,
nullptr, 0,
nullptr,
nullptr},
7223 "Automatically determine the number of threads, based on CPUs"},
7224 {
R_FIXED_THREADS,
"FIXED", 0,
"Fixed",
"Manually determine the number of threads"},
7225 {0,
nullptr, 0,
nullptr,
nullptr},
7229 {0,
"BLENDER_EEVEE", 0,
"EEVEE",
""},
7230 {0,
nullptr, 0,
nullptr,
nullptr},
7238 "Specify unit line thickness in pixels"},
7243 "Unit line thickness is scaled by the proportion of the present vertical image "
7244 "resolution to 480 pixels"},
7245 {0,
nullptr, 0,
nullptr,
nullptr},
7253 "Single stereo camera system, adjust the stereo settings in the camera panel"},
7258 "Multi camera system, adjust the cameras individually"},
7259 {0,
nullptr, 0,
nullptr,
nullptr},
7263 {
SCE_MB_START,
"START", 0,
"Start on Frame",
"The shutter opens at the current frame"},
7268 "The shutter is open during the current frame"},
7269 {
SCE_MB_END,
"END", 0,
"End on Frame",
"The shutter closes at the current frame"},
7270 {0,
nullptr, 0,
nullptr,
nullptr},
7277 {0,
nullptr, 0,
nullptr,
nullptr},
7281 {0,
"SCENE", 0,
"Scene",
"Use metadata from the current scene"},
7286 "Use metadata from the strips in the sequencer"},
7287 {0,
nullptr, 0,
nullptr,
nullptr},
7293 {0,
nullptr, 0,
nullptr,
nullptr},
7301 "Full precision for final renders, half precision otherwise"},
7303 {0,
nullptr, 0,
nullptr,
nullptr},
7311 "Use the same device used by the compositor to process the denoise node"},
7316 "Use the CPU to process the denoise node"},
7321 "Use the GPU to process the denoise node if available, otherwise fallback to CPU"},
7322 {0,
nullptr, 0,
nullptr,
nullptr},
7331 "Balanced between performance and quality"},
7333 {0,
nullptr, 0,
nullptr,
nullptr},
7357 prop,
"Resolution X",
"Number of horizontal pixels in the rendered image");
7366 prop,
"Resolution Y",
"Number of vertical pixels in the rendered image");
7390 "Horizontal aspect ratio - for anamorphic or non-square pixel output");
7399 prop,
"Pixel Aspect Y",
"Vertical aspect ratio - for anamorphic or non-square pixel output");
7410 "The pixel density meta-data written to supported image formats. "
7411 "This value is multiplied by the PPM-base which defines the unit "
7412 "(typically inches or meters)");
7467 "Amount of dithering noise added to the rendered image to break up banding");
7475 prop,
"Filter Size",
"Width over which the reconstruction filter combines samples");
7483 "World background is transparent, for compositing the render over another background");
7499 "Maximum number of CPU cores to use simultaneously while rendering "
7500 "(for multi-core/CPU systems)");
7526 "Motion Blur Position",
7527 "Offset for the shutter's time interval, "
7528 "allows to change the motion blur trails");
7536 prop,
"Shutter Curve",
"Curve defining the shutter's openness over time");
7548 prop,
"Additional Subdivision",
"Additional subdivision along the curves");
7555 "High Quality Normals",
7556 "Use high quality tangent space at the cost of lower performance");
7563 prop,
"Anisotropic Filtering",
"Quality of anisotropic filtering in materials");
7571 prop,
"Render Region",
"Render a user-defined render region, within the frame size");
7606 prop,
"Crop to Render Region",
"Crop the rendered frame to the defined render region size");
7615 "Create empty placeholder files while rendering frames (similar to Unix 'touch')");
7634 "Process the render result through the compositing pipeline, "
7635 "if a compositing node group is assigned to the scene");
7643 "Process the render (and composited) result through the video sequence "
7644 "editor pipeline, if sequencer strips exist");
7653 "Add the file format extensions to the rendered file name (eg: filename + .jpg)");
7667 prop,
"rna_SceneRender_file_ext_get",
"rna_SceneRender_file_ext_length",
nullptr);
7683 "Lock interface during rendering in favor of giving more memory to the renderer");
7693 "Directory/name to save animations, # characters define the position "
7694 "and padding of frame numbers");
7703 "Save render cache to EXR files (useful for heavy compositing, "
7704 "Note: affects indirectly rendered scenes)");
7712 prop,
"Stamp Time",
"Include the rendered frame timecode as HH:MM:SS.FF in image metadata");
7728 prop,
"Stamp Frame",
"Include the rendered frame range in image/video metadata");
7734 prop,
"Stamp Camera",
"Include the name of the active camera in image metadata");
7740 prop,
"Stamp Lens",
"Include the active camera's lens in image metadata");
7746 prop,
"Stamp Scene",
"Include the name of the active scene in image/video metadata");
7757 prop,
"Stamp Marker",
"Include the name of the last marker in image metadata");
7763 prop,
"Stamp Filename",
"Include the .blend filename in image/video metadata");
7769 "Stamp Sequence Strip",
7770 "Include the name of the foreground sequence strip in image metadata");
7786 prop,
"Stamp Output",
"Render the stamp info text in the rendered image");
7792 prop,
"Stamp Labels",
"Display stamp labels (\"Camera\" in front of camera name, etc.)");
7804 prop,
"Stamp Peak Memory",
"Include the peak memory usage in image metadata");
7810 prop,
"Stamp Hostname",
"Include the hostname of the machine that rendered the frame");
7839 prop,
"Sequencer Preview Shading",
"Display method used in the sequencer view");
7845 "Override Scene Settings",
7846 "Use Workbench render and world settings from the sequencer scene, "
7847 "instead of each strip's scene");
7853 "Render Single Layer",
7854 "Only render the active layer. Only affects rendering from the "
7855 "interface, ignored for rendering from command line.");
7868 "rna_RenderSettings_stereoViews_begin",
7869 "rna_iterator_listbase_next",
7870 "rna_iterator_listbase_end",
7871 "rna_iterator_listbase_get",
7895 "rna_RenderSettings_engine_get",
7896 "rna_RenderSettings_engine_set",
7897 "rna_RenderSettings_engine_itemf");
7906 prop,
"Multiple Engines",
"More than one rendering engine is available");
7912 prop,
"Use Spherical Stereo",
"Active render engine supports spherical stereo rendering");
7918 prop,
"Use Simplify",
"Enable simplification of scene for quicker preview renders");
7937 prop,
"Simplify Subdivision",
"Global maximum subdivision level during rendering");
7943 prop,
"Simplify Child Particles",
"Global child particles percentage during rendering");
7949 prop,
"Simplify Volumes",
"Resolution percentage of volume objects in viewport");
7957 "Skip computing custom normals and face corner normals for displaying "
7958 "meshes in the viewport");
7968 "Load texture tiles at appropriate resolution on demand to reduce memory usage. This avoids "
7969 "loading all textures into memory, at the cost of extra disk space and some performance");
7976 "Auto Generate Texture Cache",
7977 "Automatically create tx files from image files when rendering, if the "
7978 "files do not exist or are outdated. The path to store the texture "
7979 "cache files is configured in the preferences");
7991 prop,
"Playback Only",
"Simplify Grease Pencil only during animation playback");
8025 "Keep render data around for faster re-renders and animation renders, "
8026 "at the cost of increased memory usage");
8034 prop,
"Line Thickness Mode",
"Line thickness mode for Freestyle line drawing");
8061 "Compositor Frames Cache",
8062 "Cache the result of the interactive compositor across frames");
8069 prop,
"Compositor Precision",
"The precision of compositor intermediate result");
8077 "Compositor Denoise Node Device",
8078 "The device to use to process the denoise nodes in the compositor");
8086 "Compositor Preview Denoise Quality",
8087 "The quality used by denoise nodes during viewport and interactive "
8088 "compositing if the nodes' quality option is set to Follow Scene");
8096 "Compositor Final Denoise Quality",
8097 "The quality used by denoise nodes during the compositing of final "
8098 "renders if the nodes' quality option is set to Follow Scene");
8139 parm =
RNA_def_string(func,
"name",
"Marker", 0,
"",
"New name for the marker (not unique)");
8147 "The frame for the new marker",
8150 parm =
RNA_def_pointer(func,
"marker",
"TimelineMarker",
"",
"Newly created timeline marker");
8157 parm =
RNA_def_pointer(func,
"marker",
"TimelineMarker",
"",
"Timeline marker to remove");
8185 func,
"idname",
"KeyingSet",
MAX_NAME,
"IDName",
"Internal identifier of Keying Set");
8188 parm =
RNA_def_pointer(func,
"keyingset",
"KeyingSet",
"",
"Newly created Keying Set");
8196 "rna_Scene_active_keying_set_get",
8197 "rna_Scene_active_keying_set_set",
8201 prop,
"Active Keying Set",
"Active Keying Set used to insert/delete keyframes");
8207 "rna_Scene_active_keying_set_index_get",
8208 "rna_Scene_active_keying_set_index_set",
8212 "Active Keying Set Index",
8213 "Current Keying Set index (negative for 'builtin' and positive for 'absolute')");
8234 "rna_Scene_active_keying_set_get",
8235 "rna_Scene_active_keying_set_set",
8239 prop,
"Active Keying Set",
"Active Keying Set used to insert/delete keyframes");
8245 "rna_Scene_active_keying_set_index_get",
8246 "rna_Scene_active_keying_set_index_set",
8250 "Active Keying Set Index",
8251 "Current Keying Set index (negative for 'builtin' and positive for 'absolute')");
8262 srna =
RNA_def_struct(brna,
"SelectedUvElement",
"PropertyGroup");
8304 "Center Title Safe Margins",
8305 "Safe area for text and graphics in a different aspect ratio");
8313 "Center Action Safe Margins",
8314 "Safe area for general elements in a different aspect ratio");
8332 prop,
"Light Direction",
"Direction of the light for shadows and highlights");
8352 prop,
"Distance",
"Distance of object that contribute to the cavity/edge effect");
8368 prop,
"Render Anti-Aliasing",
"Method of anti-aliasing when rendering final image");
8374 prop,
"Viewport Anti-Aliasing",
"Method of anti-aliasing when rendering 3d viewport");
8390 srna,
"EEVEE Raytrace Options",
"Quality options for the raytracing pipeline");
8396 "Determines the number of rays per pixel. "
8397 "Higher resolution uses more memory.");
8409 "Backface Radiance Scale",
8410 "Amount of the front face lighting to reuse for backface "
8411 "lighting approximation");
8419 prop,
"Denoise",
"Enable noise reduction techniques for raytraced effects");
8432 prop,
"Temporal Accumulation",
"Accumulate samples by reprojecting last tracing results");
8439 prop,
"Bilateral Filter",
"Blur the resolved radiance using a bilateral filter");
8446 "Screen-Trace Thickness",
8447 "Surface thickness used to detect intersection when using screen-tracing");
8455 "Raytrace Max Roughness",
8456 "Maximum roughness to use the tracing pipeline for. Higher "
8457 "roughness surfaces will use fast GI approximation. A value of 1 will "
8458 "disable fast GI approximation.");
8465 prop,
"Screen-Trace Precision",
"Precision of the screen space ray-tracing");
8477 {128,
"128", 0,
"128 px",
""},
8478 {256,
"256", 0,
"256 px",
""},
8479 {512,
"512", 0,
"512 px",
""},
8480 {1024,
"1024", 0,
"1024 px",
""},
8481 {2048,
"2048", 0,
"2048 px",
""},
8482 {4096,
"4096", 0,
"4096 px",
""},
8483 {0,
nullptr, 0,
nullptr,
nullptr},
8487 {16,
"16", 0,
"16 MB",
""},
8488 {32,
"32", 0,
"32 MB",
""},
8489 {64,
"64", 0,
"64 MB",
""},
8490 {128,
"128", 0,
"128 MB",
""},
8491 {256,
"256", 0,
"256 MB",
""},
8492 {512,
"512", 0,
"512 MB",
""},
8493 {1024,
"1024", 0,
"1 GB",
""},
8494 {0,
nullptr, 0,
nullptr,
nullptr},
8498 {16,
"16", 0,
"16 MB",
""},
8499 {32,
"32", 0,
"32 MB",
""},
8500 {64,
"64", 0,
"64 MB",
""},
8501 {128,
"128", 0,
"128 MB",
""},
8502 {256,
"256", 0,
"256 MB",
""},
8503 {512,
"512", 0,
"512 MB",
""},
8504 {1024,
"1024", 0,
"1 GB",
""},
8505 {1536,
"1536", 0,
"1.5 GB",
""},
8506 {2048,
"2048", 0,
"2 GB",
""},
8507 {0,
nullptr, 0,
nullptr,
nullptr},
8511 {8,
"8", 0,
"8 px",
""},
8512 {16,
"16", 0,
"16 px",
""},
8513 {32,
"32", 0,
"32 px",
""},
8514 {64,
"64", 0,
"64 px",
""},
8515 {0,
nullptr, 0,
nullptr,
nullptr},
8523 "Use light probes to find scene intersection"},
8528 "Raytrace against the depth buffer. Fallback to light probes for invalid rays."},
8529 {0,
nullptr, 0,
nullptr,
nullptr},
8534 "AMBIENT_OCCLUSION_ONLY",
8536 "Ambient Occlusion",
8537 "Use ambient occlusion instead of full global illumination"},
8539 "GLOBAL_ILLUMINATION",
8541 "Global Illumination",
8542 "Compute global illumination taking into account light bouncing off surrounding objects"},
8543 {0,
nullptr, 0,
nullptr,
nullptr},
8554 "Number of times the light is reinjected inside light grids, "
8555 "0 disable indirect diffuse light");
8568 "Irradiance Visibility Size",
8569 "Size of the shadow map applied to each irradiance sample");
8575 "Clamp pixel intensity to reduce noise inside glossy reflections "
8576 "from reflection cubemaps (0 to disable)");
8583 "Irradiance Pool Size",
8584 "Size of the irradiance pool, "
8585 "a bigger pool size allows for more irradiance grid in the scene "
8586 "but might not fit into GPU memory and decrease performance");
8608 "Viewport Denoising",
8609 "Denoise image using temporal reprojection "
8610 "(can leave some ghosting)");
8618 prop,
"Tracing Method",
"Select the tracing method used to find scene-ray intersections");
8624 "Jittered Shadows (Viewport)",
8625 "Enable jittered shadows on the viewport. (Jittered shadows are always "
8626 "enabled for final renders).");
8638 "Clamp Surface Direct",
8639 "If non-zero, the maximum value for lights contribution on a surface. "
8640 "Higher values will be scaled down to avoid too "
8641 "much noise and slow convergence at the cost of accuracy. "
8642 "Used by light objects.");
8649 "Clamp Surface Indirect",
8650 "If non-zero, the maximum value for indirect lighting on surface. "
8651 "Higher values will be scaled down to avoid too "
8652 "much noise and slow convergence at the cost of accuracy. "
8653 "Used by ray-tracing and light-probes.");
8661 "Clamp Volume Direct",
8662 "If non-zero, the maximum value for lights contribution in volumes. "
8663 "Higher values will be scaled down to avoid too "
8664 "much noise and slow convergence at the cost of accuracy. "
8665 "Used by light objects.");
8672 "Clamp Volume Indirect",
8673 "If non-zero, the maximum value for indirect lighting in volumes. "
8674 "Higher values will be scaled down to avoid too "
8675 "much noise and slow convergence at the cost of accuracy. "
8676 "Used by light-probes.");
8683 prop,
"Direct Light Strength",
"Scale the contribution of direct lighting");
8692 prop,
"Indirect Light Strength",
"Scale the contribution of indirect lighting");
8718 "Control the quality of the volumetric effects. "
8719 "Higher resolution uses more memory.");
8726 "Number of steps to compute volumetric effects. "
8727 "Higher step count increase VRAM usage and quality.");
8734 prop,
"Exponential Sampling",
"Distribute more samples closer to the camera");
8740 "Volume Max Ray Depth",
8741 "Maximum surface intersection count used by the accurate volume "
8742 "intersection method. Will create artifact if it is exceeded. "
8743 "Higher count increases VRAM usage.");
8758 "Volumetric Shadows",
8759 "Cast shadows from volumetric materials onto volumetric materials (Very expensive)");
8766 prop,
"Volumetric Shadow Samples",
"Number of samples to compute volumetric shadowing");
8773 "Volume Custom Range",
8774 "Enable custom start and end clip distances for volume computation");
8782 "Fast GI Approximation",
8783 "Use faster global illumination technique for high roughness surfaces");
8793 "Geometric thickness of the surfaces when computing fast GI and ambient occlusion. "
8794 "Reduces light leaking and missing contact occlusion.");
8828 "If non-zero, the maximum distance at which other surfaces will "
8829 "contribute to the fast GI approximation");
8834 prop,
"Bias",
"Bias the shading normal to reduce self intersection artifacts");
8844 "Control the quality of the fast GI lighting. "
8845 "Higher resolution uses more memory.");
8853 prop,
"Max Size",
"Max size of the bokeh shape for the depth of field (lower is faster)");
8860 prop,
"Sprite Threshold",
"Brightness threshold for using sprite base depth of field");
8868 "Neighbor Rejection",
8869 "Maximum brightness to consider when rejecting bokeh sprites "
8870 "based on neighborhood (lower is faster)");
8880 "Jitter camera position to create accurate blurring "
8881 "using render samples (only for final render)");
8888 "Apply blur to each jittered sample to reduce "
8889 "under-sampling artifacts");
8898 "Lower values will reduce background"
8899 " bleeding onto foreground elements");
8915 "Controls accuracy of motion blur, "
8916 "more steps means longer render time");
8933 "Size of the shadow pool, "
8934 "a bigger pool size allows for more shadows in the scene "
8935 "but might not fit into GPU memory");
8942 prop,
"Shadow Ray Count",
"Amount of shadow ray to trace for each light");
8949 prop,
"Shadow Step Count",
"Amount of shadow map sample per shadow ray");
8956 "Minimum light intensity for a light to contribute to the lighting");
8967 "Internally render past the image border to avoid "
8968 "screen-space effects disappearing");
8975 "Percentage of render size to add as overscan to the "
8976 "internal render buffers");
8984 prop,
"Reflection Trace Options",
"EEVEE settings for tracing reflections");
8996 prop,
"Shadows Resolution Scale",
"Resolution percentage of shadow maps");
9015 "SMAA Threshold Viewport",
9016 "Threshold for edge detection algorithm (higher values might over-blur "
9017 "some part of the image)");
9025 "SMAA Threshold Render",
9026 "Threshold for edge detection algorithm (higher values might over-blur "
9027 "some part of the image). Only applies to final render");
9033 "Anti-Aliasing Samples",
9034 "Number of supersampling anti-aliasing samples per pixel for final render");
9043 "Motion Blur Steps",
9044 "Controls accuracy of motion blur, more steps result in longer render "
9045 "time. Only used when Motion Blur is enabled. Set to 0 to disable "
9046 "motion blur for Grease Pencil");
9061 srna =
RNA_def_struct(brna,
"SceneCompositorEffectProperties",
nullptr);
9067 srna =
RNA_def_struct(brna,
"SceneCompositorEffectPropertiesEmpty",
nullptr);
9133 prop,
nullptr,
nullptr,
nullptr,
"rna_SceneCompositorEffect_node_group_poll");
9144 prop,
"rna_SceneCompositorEffectProperties_get",
nullptr,
nullptr,
nullptr);
9164 parm =
RNA_def_string(func,
"name",
"Name", 0,
"",
"New name for the effect");
9167 parm =
RNA_def_pointer(func,
"effect",
"SceneCompositorEffect",
"",
"Newly created effect");
9172 func =
RNA_def_function(srna,
"remove",
"rna_SceneCompositorEffects_remove");
9176 parm =
RNA_def_pointer(func,
"effect",
"SceneCompositorEffect",
"",
"Effect to remove");
9181 func =
RNA_def_function(srna,
"clear",
"rna_SceneCompositorEffects_clear");
9189 "rna_SceneCompositorEffects_active_get",
9190 "rna_SceneCompositorEffects_active_set",
9208 "Fast interactive editing through native Hydra integration"},
9213 "Export scene through USD file, for accurate comparison with USD file export"},
9214 {0,
nullptr, 0,
nullptr,
nullptr},
9224 prop,
"Export Method",
"How to export the Blender scene to the Hydra render engine");
9237 {0,
"NONE", 0,
"None",
"No distance attenuation"},
9238 {1,
"INVERSE", 0,
"Inverse",
"Inverse distance model"},
9239 {2,
"INVERSE_CLAMPED", 0,
"Inverse Clamped",
"Inverse distance model with clamping"},
9240 {3,
"LINEAR", 0,
"Linear",
"Linear distance model"},
9241 {4,
"LINEAR_CLAMPED", 0,
"Linear Clamped",
"Linear distance model with clamping"},
9242 {5,
"EXPONENT", 0,
"Exponential",
"Exponential distance model"},
9246 "Exponential Clamped",
9247 "Exponential distance model with clamping"},
9248 {0,
nullptr, 0,
nullptr,
nullptr},
9252 {0,
"NONE", 0,
"Play Every Frame",
"Do not sync, play every frame"},
9253 {
SCE_FRAME_DROP,
"FRAME_DROP", 0,
"Frame Dropping",
"Drop frames if playback is too slow"},
9254 {
AUDIO_SYNC,
"AUDIO_SYNC", 0,
"Sync to Audio",
"Sync to audio playback, dropping frames"},
9255 {0,
nullptr, 0,
nullptr,
nullptr},
9263 "After the last frame, jump back to the first and keep playing, infinitely"},
9267 "Stop at End Frame",
9268 "Stop playback at the last frame, without looping"},
9272 "Stop at Start Frame",
9273 "After the last frame, jump back to the first and stop playback"},
9278 "After the last frame, stop at the frame the playback started from"},
9280 {0,
nullptr, 0,
nullptr,
nullptr},
9286 {0,
nullptr, 0,
nullptr,
nullptr},
9293 "Scene data-block, consisting in objects and "
9294 "defining time and render related settings");
9326 "rna_Scene_objects_begin",
9327 "rna_Scene_objects_next",
9328 "rna_Scene_objects_end",
9329 "rna_Scene_objects_get",
9345 "Current frame, to update animation data from Python frame_set() instead");
9363 prop,
"rna_Scene_frame_float_get",
"rna_Scene_frame_float_set",
nullptr);
9390 "Number of frames to skip forward while rendering/playing back each frame");
9398 prop,
"Time Jump Unit",
"Which unit to use for time jumps in the timeline");
9407 prop,
"Time Jump Delta",
"Number of frames or seconds to jump forward or backward");
9415 prop,
"Current Frame Final",
"Current frame with subframe and time remapping applied");
9421 "Lock Frame Selection",
9422 "Don't allow frame to be selected with mouse outside of frame range");
9429 prop,
"Allow Preroll",
"Allows playing back frames before the playback start frame");
9439 "Use Preview Range",
9440 "Use an alternative start/end frame range for animation playback and view renders");
9449 prop,
"Preview Range Start Frame",
"Alternative start frame for UI playback");
9457 prop,
"Preview Range End Frame",
"Alternative end frame for UI playback");
9467 "Display and allow setting fractional frame values for the current frame");
9474 prop,
"Only Show Selected",
"Only include channels relating to selected objects and data");
9483 "Wrap the playhead around the playback range when navigating the timeline");
9503 "Whether there is any action referenced by NLA being edited (strictly read-only)");
9511 prop,
"Frame Dropping",
"Play back dropping frames if frame display is too slow");
9518 "Custom Simulation Range",
9519 "Use a simulation range that is different from the scene range for "
9520 "simulation nodes that don't override the frame range themselves");
9559 "Returns and sets the node group of the active scene compositor "
9560 "effect. Creates a new effect if none exists");
9563 "rna_Scene_compositing_node_group_get",
9564 "rna_Scene_compositing_node_group_set",
9566 "rna_Scene_compositing_node_group_poll");
9577 "Unused but kept for compatibility reasons. Setting the property "
9578 "has no effect, and getting it always returns True. Use #scene.render.use_compositing to "
9579 "turn compositing to enable or disable compositing.",
9599 "rna_Scene_all_keyingsets_begin",
9600 "rna_Scene_all_keyingsets_next",
9601 "rna_iterator_listbase_end",
9602 "rna_iterator_listbase_get",
9611 "All Keying Sets available for use (Builtins and Absolute Keying Sets for this Scene)");
9669 prop,
"Timeline Markers",
"Markers used in all timelines for the current scene");
9675 "rna_Scene_transform_orientation_slots_begin",
9676 "rna_iterator_array_next",
9677 "rna_iterator_array_end",
9678 "rna_iterator_array_get",
9679 "rna_Scene_transform_orientation_slots_length",
9697 prop,
"Play Audio",
"Play back of audio from Sequence Editor, otherwise mute audio");
9706 "Play back and sync with audio clock, dropping frames if frame display is too slow");
9713 prop,
"Audio Scrubbing",
"Play audio from Sequence Editor while scrubbing");
9721 prop,
"Speed of Sound",
"Speed of sound for Doppler effect calculation");
9736 prop,
"Distance Model",
"Distance model for distance attenuation calculation");
9747 func =
RNA_def_function(srna,
"update_render_engine",
"rna_Scene_update_render_engine");
9752 func =
RNA_def_function(srna,
"statistics",
"rna_Scene_statistics_string_get");
9754 parm =
RNA_def_pointer(func,
"view_layer",
"ViewLayer",
"View Layer",
"");
9756 parm =
RNA_def_string(func,
"statistics",
nullptr, 0,
"Statistics",
"");
9764 prop,
nullptr,
nullptr,
nullptr,
"rna_GPencil_datablocks_annotations_poll");
9776 "Active Movie Clip",
9777 "Active Movie Clip that can be used by motion tracking constraints "
9778 "or as a camera's background image");
9786 prop,
"View Settings",
"Color management settings applied on image before saving");
9792 prop,
"Display Settings",
"Settings of device saved image would be displayed on");
9798 prop,
"Sequencer Color Space Settings",
"Settings of color space sequencer is working in");
9815 "Scene root collection that owns all the objects and other collections "
9816 "instantiated in the scene");
Functionality to interact with keying sets.
#define FOREACH_COLLECTION_OBJECT_RECURSIVE_END
#define FOREACH_SCENE_OBJECT_END
#define FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN(_collection, _object)
#define FOREACH_SCENE_OBJECT_BEGIN(scene, _instance)
#define CMP_NODE_OUTPUT_FILE
#define PTCACHE_RESET_DEPSGRAPH
#define SETLOOPER_SET_ONLY(_bmain, _sce_basis, _sce_iter, _base)
#define STRNCPY_UTF8(dst, src)
#define BLI_STR_UTF8_MULTIPLICATION_SIGN
#define BLENDER_MAX_THREADS
#define BLT_I18NCONTEXT_EDITOR_VIEW3D
#define BLT_I18NCONTEXT_ID_WORLD
#define BLT_I18NCONTEXT_ID_ACTION
#define BLT_I18NCONTEXT_ID_CURVES
#define BLT_I18NCONTEXT_ID_CURVE_LEGACY
#define BLT_I18NCONTEXT_ID_SOUND
#define BLT_I18NCONTEXT_UNIT
#define BLT_I18NCONTEXT_ID_SCENE
Object is a sort of wrapper for general info.
#define OB_TYPE_IS_GEOMETRY(_type)
#define SCE_SNAP_TO_VERTEX
#define STEREO_RIGHT_NAME
#define USER_UNIT_ADAPTIVE
#define FRAMENUMBER_MIN_CLAMP(cfra)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
Read Blender memory allocation and freeing.
#define RNA_ENUM_ITEM_SEPR
#define RNA_TRANSLATION_PREC_DEFAULT
#define ND_SPACE_SEQUENCER
#define ND_RENDER_OPTIONS
#define ND_SPACE_PROPERTIES
#define ND_DRAW_RENDER_VIEWPORT
#define BLI_assert_unreachable()
#define storage(slot, qualifiers)
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
ccl_device_inline void copy_v3_v3(ccl_private float *r, const float3 val)
KeyingSet * scene_get_active_keyingset(const Scene *scene)
void scene_simulation_states_reset(Scene &scene)
SceneCompositorEffect * get_active_effect(const Scene &scene)
SceneCompositorEffect & new_effect(Scene &scene, StringRef name)
void update_effect_node_group_interface(Main &main, Scene &scene, SceneCompositorEffect &effect)
bool ensure_selection_domain(ToolSettings *ts, Object *object)
void sync_active_scene_and_time_with_scene_strip(bContext &C)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
void relations_invalidate_scene_strips(const Main *bmain, const Scene *scene_target)
void sound_update_length(Main *bmain, Scene *scene)
const EnumPropertyItem rna_enum_image_color_mode_items[]
void WM_main_add_notifier(uint type, void *reference)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
const EnumPropertyItem rna_enum_normal_space_items[]
const char * ED_info_statistics_string(Main *bmain, Scene *scene, ViewLayer *view_layer)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
@ SCE_CUSTOM_SIMULATION_RANGE
void id_lib_extern(ID *id, bool enforce_fix=false)
static void rna_def_view_layer_lightgroups(BlenderRNA *brna, PropertyRNA *cprop)
@ UVCALC_TRANSFORM_CORRECT_KEEP_CONNECTED
@ UVCALC_TRANSFORM_CORRECT
static void rna_def_scene_render_data(BlenderRNA *brna)
@ UI_PANEL_DATA_EXPAND_ROOT
const EnumPropertyItem rna_enum_mesh_select_mode_items[]
void ED_uvedit_sticky_selectmode_update(bContext *C)
static void rna_def_view_layer_eevee(BlenderRNA *brna)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_deprecated(PropertyRNA *prop, const char *note, const short version, const short removal_version)
const EnumPropertyItem rna_enum_shading_type_items[]
void BKE_scene_objects_iterator_end(BLI_Iterator *iter)
bool BKE_scene_use_spherical_stereo(Scene *scene)
@ SCE_COMPOSITOR_DENOISE_FAST
@ SCE_COMPOSITOR_DENOISE_BALANCED
@ SCE_COMPOSITOR_DENOISE_HIGH
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void BKE_scene_objects_iterator_begin(BLI_Iterator *iter, void *data_in)
@ FREESTYLE_SEL_IMAGE_BORDER
@ FREESTYLE_SEL_EDGE_TYPES
@ FREESTYLE_SEL_VISIBILITY
@ FREESTYLE_SEL_FACE_MARK
void BKE_ntree_update(Main &bmain, std::optional< Span< bNodeTree * > > modified_trees=std::nullopt, const NodeTreeUpdateExtraParams ¶ms={})
Object * BKE_view_layer_active_object_get(const ViewLayer *view_layer)
static void rna_def_view_layers(BlenderRNA *brna, PropertyRNA *cprop)
static const EnumPropertyItem * rna_enum_snap_element_individual_items
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_bitset_array_sdna(PropertyRNA *prop, const char *structname, const char *propname, const int64_t booleanbit, const int length)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
const EnumPropertyItem rna_enum_transform_pivot_full_items[]
static const EnumPropertyItem snap_uv_element_items[]
const EnumPropertyItem rna_enum_bake_pass_filter_type_items[]
void BKE_image_format_set(ImageFormatData *imf, ID *owner_id, const char imtype)
static const EnumPropertyItem rna_enum_scene_display_aa_methods[]
@ RAYTRACE_EEVEE_USE_DENOISE
@ RAYTRACE_EEVEE_USE_BACKFACE
const char * BKE_unit_identifier_get(const void *usys_pt, int index)
void BKE_image_format_media_type_set(ImageFormatData *format, ID *owner_id, const MediaType media_type)
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
void rna_def_freestyle_settings(BlenderRNA *brna)
@ SCE_COMPOSITOR_DENOISE_DEVICE_CPU
@ SCE_COMPOSITOR_DENOISE_DEVICE_GPU
@ SCE_COMPOSITOR_DENOISE_DEVICE_AUTO
@ GP_SCULPT_MASK_SELECTMODE_POINT
@ GP_SCULPT_MASK_SELECTMODE_STROKE
@ GP_SCULPT_MASK_SELECTMODE_SEGMENT
void FRS_free_view_map_cache(void)
int BKE_ptcache_object_reset(struct Scene *scene, struct Object *ob, int mode)
int rna_ViewLayer_active_aov_index_get(PointerRNA *ptr)
static void rna_def_gpencil_interpolate(BlenderRNA *brna)
@ R_BAKE_PASS_FILTER_TRANSM
@ R_BAKE_PASS_FILTER_INDIRECT
@ R_BAKE_PASS_FILTER_DIFFUSE
@ R_BAKE_PASS_FILTER_EMIT
@ R_BAKE_PASS_FILTER_NONE
@ R_BAKE_PASS_FILTER_COLOR
@ R_BAKE_PASS_FILTER_GLOSSY
@ R_BAKE_PASS_FILTER_DIRECT
const EnumPropertyItem rna_enum_snap_source_items[]
void BKE_image_format_color_management_copy_from_scene(ImageFormatData *imf, const Scene *scene)
void BKE_ntree_update_tag_id_changed(Main *bmain, ID *id)
static void rna_def_timeline_markers(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_scene(BlenderRNA *brna)
@ SCE_XFORM_SKIP_CHILDREN
void rna_ViewLayer_active_lightgroup_index_set(PointerRNA *ptr, int value)
static void rna_def_render_views(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void ED_uvedit_selectmode_clean_multi(bContext *C)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void BKE_image_signal(Main *bmain, Image *ima, ImageUser *iuser, int signal)
PointerRNA RNA_id_pointer_create(ID *id)
static void rna_def_scene_gpencil(BlenderRNA *brna)
bool MOV_codec_supports_alpha(IMB_Ffmpeg_Codec_ID codec_id, int ffmpeg_profile)
@ MEDIA_TYPE_MULTI_LAYER_IMAGE
void RNA_def_struct_refine_func(StructRNA *srna, const char *refine)
static void rna_def_scene_image_format_data(BlenderRNA *brna)
void rna_def_view_layer_common(BlenderRNA *brna, StructRNA *srna, bool scene)
void rna_ViewLayer_active_lightgroup_index_range(PointerRNA *ptr, int *min, int *max, int *softmin, int *softmax)
@ SCE_SNAP_SOURCE_CLOSEST
void ED_uvedit_select_sync_multi(bContext *C)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
KeyingSet * BKE_keyingset_add(ListBaseT< KeyingSet > *list, const char idname[], const char name[], eKS_Settings flag, eInsertKeyFlags keyingflag)
ViewLayer * BKE_view_layer_find_with_lightgroup(Scene *scene, ViewLayerLightgroup *lightgroup)
bool BKE_scene_has_view_layer(const Scene *scene, const ViewLayer *layer)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
static void rna_def_selected_uv_element(BlenderRNA *brna)
ViewLayer * BKE_view_layer_find_with_aov(Scene *scene, ViewLayerAOV *aov)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
bool BKE_unit_is_suppressed(const void *usys_pt, int index)
const EnumPropertyItem rna_enum_image_color_depth_items[]
std::optional< std::string > rna_ColorManagedInputColorspaceSettings_path(const PointerRNA *ptr)
const EnumPropertyItem rna_enum_object_rotation_mode_items[]
float BKE_scene_frame_to_ctime(const Scene *scene, int frame)
void rna_FreestyleSettings_module_remove(ID *id, FreestyleSettings *config, ReportList *reports, PointerRNA *module_ptr)
static const EnumPropertyItem rna_enum_media_type_all_items[]
static const EnumPropertyItem eevee_resolution_scale_items[]
@ V3D_AROUND_CENTER_BOUNDS
@ V3D_AROUND_LOCAL_ORIGINS
@ V3D_AROUND_CENTER_MEDIAN
void rna_ViewLayer_active_aov_index_range(PointerRNA *ptr, int *min, int *max, int *softmin, int *softmax)
static const EnumPropertyItem plane_orientation_items[]
void rna_Scene_freestyle_update(Main *bmain, Scene *scene, PointerRNA *ptr)
void RNA_def_property_path_template_type(PropertyRNA *prop, PropertyPathTemplateType path_template_type)
static void rna_def_view_layer_aov(BlenderRNA *brna)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
@ FREESTYLE_RIDGES_AND_VALLEYS_FLAG
@ FREESTYLE_SUGGESTIVE_CONTOURS_FLAG
@ FREESTYLE_FACE_SMOOTHNESS_FLAG
@ FREESTYLE_VIEW_MAP_CACHE
@ FREESTYLE_MATERIAL_BOUNDARIES_FLAG
@ FREESTYLE_AS_RENDER_PASS
@ WT_VGROUP_BONE_DEFORM_OFF
@ FFM_CHANNELS_SURROUND51
@ FFM_CHANNELS_SURROUND71
static void rna_def_freestyle_linesets(BlenderRNA *brna, PropertyRNA *cprop)
@ R_IMF_COLOR_MANAGEMENT_OVERRIDE
@ R_IMF_COLOR_MANAGEMENT_FOLLOW_SCENE
static void rna_def_view3d_cursor(BlenderRNA *brna)
@ SCE_LOOP_MODE_STOP_START_FRAME
@ SCE_LOOP_MODE_STOP_END_FRAME
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
MINLINE int max_ii(int a, int b)
void RE_FreePersistentData(const Scene *scene)
const EnumPropertyItem rna_enum_curve_fit_method_items[]
short BKE_freestyle_lineset_get_active_index(struct FreestyleConfig *config)
void rna_ViewLayer_pass_update(Main *bmain, Scene *activescene, PointerRNA *ptr)
bool ED_scene_view_layer_delete(Main *bmain, Scene *scene, ViewLayer *layer, ReportList *reports) ATTR_NONNULL(1
int BKE_unit_base_of_type_get(int system, int type)
struct FreestyleLineSet * BKE_freestyle_lineset_add(struct Main *bmain, struct FreestyleConfig *config, const char *name)
static void rna_def_freestyle_modules(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_unit_settings(BlenderRNA *brna)
Strip * rna_strip_find_by_colorspace_settings(Editing *ed, const ColorManagedColorspaceSettings *colorspace_settings)
std::optional< std::string > rna_ColorManagedDisplaySettings_path(const PointerRNA *ptr)
ViewLayer * WM_window_get_active_view_layer(const wmWindow *win)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
const EnumPropertyItem rna_enum_bake_target_items[]
static void rna_def_transform_orientation(BlenderRNA *brna)
int rna_ViewLayer_active_lightgroup_index_get(PointerRNA *ptr)
void MEM_delete_void(void *vmemh)
void rna_ViewLayer_active_aov_index_set(PointerRNA *ptr, int value)
@ R_BAKE_VIEW_FROM_ABOVE_SURFACE
@ R_BAKE_VIEW_FROM_ACTIVE_CAMERA
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_animate_sdna(bool animate)
@ PROP_VARIABLES_RENDER_OUTPUT
ViewLayer * CTX_data_view_layer(const bContext *C)
void rna_FreestyleLineSet_linestyle_set(PointerRNA *ptr, PointerRNA value, ReportList *reports)
const float rna_default_axis_angle[4]
void RNA_def_property_float_array_default(PropertyRNA *prop, const float *array)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
@ SCE_COMPOSITOR_CACHE_FRAMES
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void rna_def_animdata_common(StructRNA *srna)
static const EnumPropertyItem curve_type_items[]
void RE_engine_free(RenderEngine *engine)
void BKE_view_layer_rename_lightgroup(Scene *scene, ViewLayer *view_layer, ViewLayerLightgroup *lightgroup, const char *name)
const EnumPropertyItem rna_enum_snap_playhead_element_items[]
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
@ SCE_EEVEE_FAST_GI_ENABLED
@ SCE_EEVEE_TAA_REPROJECTION
@ SCE_EEVEE_VOLUMETRIC_SHADOWS
@ SCE_EEVEE_SHADOW_JITTERED_VIEWPORT
@ SCE_EEVEE_VOLUME_CUSTOM_RANGE
@ SCE_EEVEE_SHADOW_ENABLED
@ SCE_PASS_SUBSURFACE_INDIRECT
@ SCE_PASS_GLOSSY_INDIRECT
@ SCE_PASS_TRANSM_INDIRECT
@ SCE_PASS_DIFFUSE_INDIRECT
@ SCE_PASS_DIFFUSE_DIRECT
@ SCE_PASS_SUBSURFACE_COLOR
@ SCE_PASS_SUBSURFACE_DIRECT
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
int BKE_render_num_threads(const RenderData *r)
PointerRNA rna_FreestyleLineSet_linestyle_get(PointerRNA *ptr)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
PointerRNA rna_FreestyleSettings_active_lineset_get(PointerRNA *ptr)
@ GP_TOOL_FLAG_CREATE_WEIGHTS
@ GP_TOOL_FLAG_PAINT_ONBACK
@ GP_TOOL_FLAG_RETAIN_LAST
@ GP_TOOL_FLAG_AUTOMERGE_STROKE
@ GP_TOOL_FLAG_THUMBNAIL_LIST
@ GP_USE_MULTI_FRAME_EDITING
@ CURVE_PAINT_PROJECT_SURFACE
@ CURVE_PAINT_PROJECT_CURSOR
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
const EnumPropertyItem rna_enum_exr_codec_items[]
@ GP_VERTEX_MASK_SELECTMODE_STROKE
@ GP_VERTEX_MASK_SELECTMODE_POINT
@ GP_VERTEX_MASK_SELECTMODE_SEGMENT
Scene * WM_window_get_active_scene(const wmWindow *win)
int ANIM_scene_get_keyingset_index(Scene *scene, KeyingSet *keyingset)
@ R_TEXTURE_CACHE_AUTO_GENERATE
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
@ CURVE_PAINT_SURFACE_PLANE_NORMAL_SURFACE
@ CURVE_PAINT_SURFACE_PLANE_NORMAL_VIEW
@ CURVE_PAINT_SURFACE_PLANE_VIEW
const EnumPropertyItem rna_enum_image_type_all_items[]
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void ED_render_engine_changed(Main *bmain, bool update_scene_data)
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
FreestyleModuleConfig * rna_FreestyleSettings_module_add(ID *id, FreestyleSettings *config)
bool BKE_image_is_stereo(const Image *ima)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
@ SCE_COMPOSITOR_DEVICE_CPU
@ SCE_COMPOSITOR_DEVICE_GPU
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void rna_FreestyleSettings_lineset_remove(ID *id, FreestyleSettings *config, ReportList *reports, PointerRNA *lineset_ptr)
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
const EnumPropertyItem rna_enum_bake_margin_type_items[]
void rna_ViewLayer_name_set(PointerRNA *ptr, const char *value)
Mesh * BKE_mesh_from_object(Object *ob)
void RNA_api_scene_render(StructRNA *srna)
T * DEG_get_evaluated(const Depsgraph *depsgraph, T *id)
@ FIX_TO_CAM_FLAG_USE_ROT
@ FIX_TO_CAM_FLAG_USE_LOC
@ FIX_TO_CAM_FLAG_USE_SCALE
struct FreestyleLineSet * BKE_freestyle_lineset_get_active(struct FreestyleConfig *config)
bool BKE_freestyle_module_delete(struct FreestyleConfig *config, struct FreestyleModuleConfig *module_conf)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
const EnumPropertyItem rna_enum_object_axis_items[]
bool BLI_listbase_move_index(ListBase *listbase, int from, int to) ATTR_NONNULL()
void BKE_view_layer_verify_aov(RenderEngine *engine, Scene *scene, ViewLayer *view_layer)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
FreestyleLineSet * rna_FreestyleSettings_lineset_add(ID *id, FreestyleSettings *config, Main *bmain, const char *name)
@ R_IMF_JP2_FLAG_CINE_PRESET
bool BKE_freestyle_lineset_delete(struct FreestyleConfig *config, struct FreestyleLineSet *lineset)
int rna_FreestyleSettings_active_lineset_index_get(PointerRNA *ptr)
void BKE_view_layer_rename(Main *bmain, Scene *scene, ViewLayer *view_layer, const char *newname)
@ SCE_SNAP_INDIVIDUAL_NEAREST
@ SCE_SNAP_INDIVIDUAL_PROJECT
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ SIMPLIFY_GPENCIL_MODIFIER
@ SIMPLIFY_GPENCIL_ON_PLAY
@ SIMPLIFY_GPENCIL_ENABLE
static void rna_def_tool_settings(BlenderRNA *brna)
const EnumPropertyItem rna_enum_stereo3d_display_items[]
const EnumPropertyItem rna_enum_beztriple_keyframe_type_items[]
@ S3D_INTERLACE_CHECKERBOARD
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void rna_Scene_render_update(Main *bmain, Scene *scene, PointerRNA *ptr)
@ S3D_SIDEBYSIDE_CROSSEYED
const EnumPropertyItem rna_enum_views_format_items[]
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
const EnumPropertyItem rna_enum_transform_orientation_items[]
static void rna_def_scene_render_view(BlenderRNA *brna)
static void rna_def_statvis(BlenderRNA *brna)
static void rna_def_scene_hydra(BlenderRNA *brna)
const EnumPropertyItem rna_enum_proportional_falloff_curve_only_items[]
@ CURVE_PAINT_FIT_METHOD_REFIT
@ CURVE_PAINT_FIT_METHOD_SPLIT
static void rna_def_image_format_stereo3d_format(BlenderRNA *brna)
@ RAYTRACE_EEVEE_METHOD_SCREEN
@ RAYTRACE_EEVEE_METHOD_PROBE
static void rna_def_bake_data(BlenderRNA *brna)
static void rna_def_view_layer_lightgroup(BlenderRNA *brna)
static const EnumPropertyItem rna_enum_snap_element_base_items[]
void RNA_def_struct_clear_flag(StructRNA *srna, StructFlag flag)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
const EnumPropertyItem rna_enum_strip_scale_method_items[]
void BKE_free_time_marker(TimeMarker &marker, bool do_id_user)
void BKE_unit_system_get(int system, int type, const void **r_usys_pt, int *r_len)
ListBaseT< RenderEngineType > R_engines
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
const EnumPropertyItem * rna_TransformOrientation_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
static void rna_def_scene_eevee(BlenderRNA *brna)
@ R_SEQ_OVERRIDE_SCENE_SETTINGS
static void rna_def_transform_orientation_slot(BlenderRNA *brna)
const EnumPropertyItem rna_enum_normal_swizzle_items[]
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_compositor_effect_nodes_properties(BlenderRNA *brna)
RenderEngineType * RE_engines_find(const char *idname)
bool MOV_codec_supports_crf(IMB_Ffmpeg_Codec_ID codec_id)
TransformOrientation * BKE_scene_transform_orientation_find(const Scene *scene, int index)
@ SEQ_RIPPLE_CLEAR_RANGES
@ SEQ_RIPPLE_ALL_CHANNELS
@ SCER_LOCK_FRAME_SELECTION
@ SCER_WRAP_TIMELINE_NAVIGATION
@ SEQ_SNAP_CURRENT_FRAME_TO_STRIPS
@ SEQ_SNAP_TO_ALL_CHANNEL_STRIPS
@ R_LINE_THICKNESS_RELATIVE
@ R_LINE_THICKNESS_ABSOLUTE
void BKE_scene_objects_iterator_next(BLI_Iterator *iter)
static void rna_def_compositor_effects(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
ListBaseT< KeyingSet > builtin_keyingsets
@ SCE_WORKSPACE_TOOL_DEFAULT
@ SCE_WORKSPACE_TOOL_FALLBACK
bool BKE_imtype_requires_linear_float(char imtype)
@ FREESTYLE_LINESET_FM_NOT
@ FREESTYLE_LINESET_GR_NOT
@ FREESTYLE_LINESET_FE_NOT
@ FREESTYLE_LINESET_FM_BOTH
@ FREESTYLE_LINESET_ENABLED
@ FREESTYLE_LINESET_FE_AND
static void rna_def_scene_keying_sets(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_sequencer_tool_settings(BlenderRNA *brna)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
BMEditMesh * BKE_editmesh_from_object(Object *ob)
Return the BMEditMesh for a given object.
bool BKE_imtype_is_movie(char imtype)
void rna_FreestyleSettings_active_lineset_index_range(PointerRNA *ptr, int *min, int *max, int *softmin, int *softmax)
void BKE_rotMode_change_values(float quat[4], float eul[3], float axis[3], float *angle, eRotationModes oldMode, eRotationModes newMode)
@ V3D_PLACE_DEPTH_SURFACE
@ V3D_PLACE_DEPTH_CURSOR_VIEW
@ V3D_PLACE_DEPTH_CURSOR_PLANE
ImBuf * BKE_image_acquire_ibuf(Image *ima, ImageUser *iuser, void **r_lock)
void WM_windows_scene_data_sync(const ListBaseT< wmWindow > *win_lb, Scene *scene)
static void rna_def_display_safe_areas(BlenderRNA *brna)
SceneRenderView * BKE_scene_add_render_view(Scene *sce, const char *name)
@ R_BAKE_VECTOR_DISPLACEMENT
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void rna_FreestyleSettings_active_lineset_index_set(PointerRNA *ptr, int value)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
static void rna_def_curve_paint_settings(BlenderRNA *brna)
const EnumPropertyItem rna_enum_grease_pencil_selectmode_items[]
eImageFormatDepth BKE_imtype_first_valid_depth(eImageFormatDepth valid_depths)
RenderEngine * RE_engine_create(RenderEngineType *type)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
const EnumPropertyItem rna_enum_stereo3d_interlace_type_items[]
static void rna_def_scene_keying_sets_all(BlenderRNA *brna, PropertyRNA *cprop)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
void RNA_enum_item_add_separator(EnumPropertyItem **items, int *totitem)
void BKE_scene_orientation_slot_set_index(TransformOrientationSlot *orient_slot, int orientation)
const EnumPropertyItem rna_enum_snap_animation_element_items[]
const EnumPropertyItem rna_enum_bake_save_mode_items[]
@ EEVEE_RENDER_PASS_VOLUME_LIGHT
@ EEVEE_RENDER_PASS_TRANSPARENT
int BLI_system_num_threads_override_get()
static void rna_def_scene_display(BlenderRNA *brna)
const EnumPropertyItem rna_enum_snap_element_items[]
void BKE_free_time_markers(ListBaseT< TimeMarker > &markers, bool do_id_user)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
const EnumPropertyItem rna_enum_stereo3d_anaglyph_type_items[]
@ FFMPEG_AUTOSPLIT_OUTPUT
@ FFMPEG_USE_MAX_B_FRAMES
@ S3D_ANAGLYPH_YELLOWBLUE
@ S3D_ANAGLYPH_GREENMAGENTA
@ ID_RECALC_AUDIO_LISTENER
@ ID_RECALC_SEQUENCER_STRIPS
ID_Type GS(const char *name)
@ PROP_PATH_SUPPORTS_TEMPLATES
@ PROP_PATH_SUPPORTS_BLEND_RELATIVE
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ SEQ_SNAP_TO_PREVIEW_BORDERS
@ SEQ_SNAP_TO_PREVIEW_CENTER
@ SEQ_SNAP_TO_STRIPS_PREVIEW
@ SEQ_SNAP_TO_CURRENT_FRAME
@ SEQ_SNAP_TO_FRAME_RANGE
@ VIEW_LAYER_CRYPTOMATTE_ASSET
@ VIEW_LAYER_CRYPTOMATTE_ACCURATE
@ VIEW_LAYER_CRYPTOMATTE_MATERIAL
@ VIEW_LAYER_CRYPTOMATTE_OBJECT
@ SCE_SNAP_TRANSFORM_MODE_TRANSLATE
@ SCE_SNAP_TRANSFORM_MODE_SCALE
@ SCE_SNAP_TRANSFORM_MODE_ROTATE
struct FreestyleModuleConfig * BKE_freestyle_module_add(struct FreestyleConfig *config)
bool BKE_scene_remove_render_view(Scene *scene, SceneRenderView *srv)
void BKE_freestyle_lineset_set_active_index(struct FreestyleConfig *config, short index)
static void rna_def_view_layer_aovs(BlenderRNA *brna, PropertyRNA *cprop)
Vector< Object * > BKE_view_layer_array_from_objects_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
void BKE_main_id_tag_listbase(ListBaseT< ID > *lb, int tag, bool value)
@ R_IMF_EXR_FLAG_MULTIPART
const EnumPropertyItem rna_enum_mesh_select_mode_uv_items[]
@ FFMPEG_CODEC_ID_PCM_S16LE
@ FFMPEG_CODEC_ID_MPEG1VIDEO
@ FFMPEG_CODEC_ID_DVVIDEO
@ FFMPEG_CODEC_ID_HUFFYUV
@ FFMPEG_CODEC_ID_MPEG2VIDEO
@ FREESTYLE_FE_SILHOUETTE
@ FREESTYLE_FE_EXTERNAL_CONTOUR
@ FREESTYLE_FE_RIDGE_VALLEY
@ FREESTYLE_FE_SUGGESTIVE_CONTOUR
@ FREESTYLE_FE_MATERIAL_BOUNDARY
void RNA_api_scene(StructRNA *srna)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
static const EnumPropertyItem plane_depth_items[]
ID * BKE_id_owner_get(ID *id, const bool debug_relationship_assert=true)
void DEG_relations_tag_update(Main *bmain)
static void rna_def_compositor_effect(BlenderRNA *brna)
ViewLayer * BKE_view_layer_add(const Main *bmain, Scene *scene, const char *name, ViewLayer *view_layer_source, int type)
bool BLI_remlink_safe(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
const EnumPropertyItem rna_enum_strip_overlap_mode_items[]
int BKE_scene_orientation_slot_get_index(const TransformOrientationSlot *orient_slot)
Scene * CTX_data_scene(const bContext *C)
@ SCE_VIEWS_FORMAT_MULTIVIEW
@ SCE_VIEWS_FORMAT_STEREO_3D
@ EEVEE_DENOISING_PASS_STORE
@ EEVEE_DENOISING_PASS_USE_ALBEDO_ROUGHNESS_WEIGHTING
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
@ GP_PROJECT_DEPTH_STROKE_ENDPOINTS
@ GP_PROJECT_DEPTH_STROKE
@ GP_PROJECT_DEPTH_STROKE_FIRST
@ GP_PROJECT_DEPTH_ONLY_SELECTED
@ SCE_SNAP_BACKFACE_CULLING
@ SCE_SNAP_TO_INCLUDE_EDITED
@ SCE_SNAP_KEEP_ON_SAME_OBJECT
@ SCE_SNAP_TO_INCLUDE_NONEDITED
@ SCE_SNAP_TO_ONLY_SELECTABLE
@ AUTOKEY_FLAG_ONLYKEYINGSET
@ AUTOKEY_FLAG_LAYERED_RECORD
@ SCE_DISPLAY_AA_SAMPLES_8
@ SCE_DISPLAY_AA_SAMPLES_32
@ SCE_DISPLAY_AA_SAMPLES_5
@ SCE_DISPLAY_AA_SAMPLES_16
@ SCE_DISPLAY_AA_SAMPLES_11
const EnumPropertyItem rna_enum_views_format_multiview_items[]
void copy_m4_m4(float m1[4][4], const float m2[4][4])
@ SCE_COMPOSITOR_PRECISION_AUTO
@ SCE_COMPOSITOR_PRECISION_FULL
@ CURVE_PAINT_FLAG_DEPTH_ONLY_SELECTED
@ CURVE_PAINT_FLAG_CORNERS_DETECT
@ CURVE_PAINT_FLAG_PRESSURE_RADIUS
@ CURVE_PAINT_FLAG_DEPTH_STROKE_ENDPOINTS
@ CURVE_PAINT_FLAG_DEPTH_STROKE_OFFSET_ABS
static void rna_def_scene_objects(BlenderRNA *brna, PropertyRNA *cprop)
@ SCE_HAIR_SHAPE_CYLINDER
char BKE_imtype_valid_channels(char imtype)
const EnumPropertyItem rna_enum_views_format_multilayer_items[]
const char * BKE_unit_display_name_get(const void *usys_pt, int index)
void normalize_m4_m4(float rmat[4][4], const float mat[4][4]) ATTR_NONNULL()
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void rna_ViewLayer_override_update(Main *bmain, Scene *activescene, PointerRNA *ptr)
@ R_BAKE_TARGET_VERTEX_COLORS
@ R_BAKE_TARGET_IMAGE_TEXTURES
static const EnumPropertyItem snap_to_items[]
static const EnumPropertyItem rna_enum_view_layer_aov_type_items[]
@ FFM_PRORES_PROFILE_422_HQ
@ FFM_PRORES_PROFILE_4444_XQ
@ FFM_PRORES_PROFILE_4444
@ FFM_PRORES_PROFILE_422_PROXY
@ FFM_PRORES_PROFILE_422_LT
@ FFM_PRORES_PROFILE_422_STD
@ OB_DRAW_GROUPUSER_ACTIVE
void RNA_def_property_int_default(PropertyRNA *prop, int value)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
static void rna_def_scene_ffmpeg_settings(BlenderRNA *brna)
static void rna_def_raytrace_eevee(BlenderRNA *brna)
size_t rna_ViewLayer_path_buffer_get(const ViewLayer *view_layer, char *r_rna_path, const size_t r_rna_path_maxncpy)
bool BKE_id_is_in_global_main(ID *id)
int BKE_image_path_ext_from_imformat(const ImageFormatData *im_format, const char *r_ext[BKE_IMAGE_PATH_EXT_MAX])
@ V3D_PLACE_ORIENT_DEFAULT
@ V3D_PLACE_ORIENT_SURFACE
Object * CTX_data_active_object(const bContext *C)
eImageFormatDepth BKE_imtype_valid_depths_with_video(char imtype, const ID *owner_id)
@ UV_FLAG_SHOW_SAME_IMAGE
void RNA_def_property_array(PropertyRNA *prop, int length)
const int rna_matrix_dimsize_4x4[]
@ RAYTRACE_EEVEE_DENOISE_SPATIAL
@ RAYTRACE_EEVEE_DENOISE_BILATERAL
@ RAYTRACE_EEVEE_DENOISE_TEMPORAL
std::optional< std::string > rna_ColorManagedViewSettings_path(const PointerRNA *ptr)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
void EDBM_selectmode_set(BMEditMesh *em, BMesh *bm, short selectmode)
const EnumPropertyItem rna_enum_proportional_falloff_items[]
View3D * CTX_wm_view3d(const bContext *C)
@ R_IMF_TIFF_CODEC_DEFLATE
@ R_IMF_TIFF_CODEC_PACKBITS
const EnumPropertyItem rna_enum_axis_xyz_items[]
void rna_Scene_use_view_map_cache_update(Main *bmain, Scene *scene, PointerRNA *ptr)
const int rna_matrix_dimsize_3x3[]
void BKE_image_release_ibuf(Image *ima, ImBuf *ibuf, void *lock)
static const EnumPropertyItem rna_enum_bake_view_from_items[]
@ FREESTYLE_CONTROL_EDITOR_MODE
@ FREESTYLE_CONTROL_SCRIPT_MODE
std::string format(const std::string &fmt, Args &&...args)
static struct PyModuleDef module
#define IMAGE_TYPE_ITEMS_IMAGE
#define MEDIA_TYPE_ENUM_VIDEO
#define IMAGE_TYPE_ITEMS_VIDEO
#define MEDIA_TYPE_ENUM_MULTI_LAYER_IMAGE
#define IMAGE_TYPE_ITEMS_MULTI_LAYER_IMAGE
#define R_IMF_VIEWS_ENUM_MV
#define MEDIA_TYPE_ENUM_IMAGE
#define R_IMF_VIEWS_ENUM_IND
#define R_IMF_VIEWS_ENUM_S3D
#define RNA_SNAP_ELEMENTS_BASE
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
const c_style_mat & ptr() const