38 static void rna_Camera_angle_set(
PointerRNA *
ptr,
float value)
51 static void rna_Camera_angle_x_set(
PointerRNA *
ptr,
float value)
63 static void rna_Camera_angle_y_set(
PointerRNA *
ptr,
float value)
92 static void rna_Camera_background_images_remove(
Camera *cam,
107 static void rna_Camera_background_images_clear(
Camera *cam)
114 static char *rna_Camera_background_image_path(
const PointerRNA *
ptr)
121 if (bgpic_index >= 0) {
122 return BLI_sprintfN(
"background_images[%d]", bgpic_index);
134 if (bgpic_index >= 0) {
135 return BLI_sprintfN(
"background_images[%d].image_user", bgpic_index);
139 if (bgpic_index >= 0) {
140 return BLI_sprintfN(
"background_images[%d].clip_user", bgpic_index);
146 static bool rna_Camera_background_images_override_apply(
Main *bmain,
153 const int UNUSED(len_dst),
154 const int UNUSED(len_src),
155 const int UNUSED(len_storage),
162 "Unsupported RNA override operation on background images collection");
175 if (bgpic_src ==
NULL) {
210 static void rna_CameraDOFSettings_aperture_blades_set(
PointerRNA *
ptr,
const int value)
241 {0,
"STRETCH", 0,
"Stretch",
""},
248 {0,
"BACK", 0,
"Back",
""},
256 srna,
"Background Image",
"Image and settings for display in the 3D View background");
262 "Override Background Image",
263 "In a local override camera, whether this background image comes from "
264 "the linked reference camera, or is local to the override");
298 "Parameters defining which layer, pass and frame of the image is displayed");
306 prop,
"Clip User",
"Parameters defining which frame of the movie clip is displayed");
325 prop,
"Rotation",
"Rotation for the background image (ortho view only)");
341 prop,
"Opacity",
"Image opacity to blend the image against the background color");
364 prop,
"Show On Foreground",
"Show this image in front of objects in viewport");
398 func,
"image",
"CameraBackgroundImage",
"",
"Image displayed as viewport background");
401 func =
RNA_def_function(srna,
"remove",
"rna_Camera_background_images_remove");
405 func,
"image",
"CameraBackgroundImage",
"",
"Image displayed as viewport background");
409 func =
RNA_def_function(srna,
"clear",
"rna_Camera_background_images_clear");
419 {
CAM_S3D_OFFAXIS,
"OFFAXIS", 0,
"Off-Axis",
"Off-axis frustums converging in a plane"},
420 {
CAM_S3D_PARALLEL,
"PARALLEL", 0,
"Parallel",
"Parallel cameras with no convergence"},
421 {
CAM_S3D_TOE,
"TOE", 0,
"Toe-in",
"Rotated cameras, looking at the convergence distance"},
454 "Interocular Distance",
455 "Set the distance between the eyes - the stereo plane distance / 30 should be fine");
462 "Convergence Plane Distance",
463 "The converge point for the stereo cameras "
464 "(often the distance between a projector and the projection screen)");
471 "Render every pixel rotating the camera around the "
472 "middle of the interocular distance");
478 prop,
"Use Pole Merge",
"Fade interocular distance to 0 after the given cutoff angle");
484 prop,
"Pole Merge Start Angle",
"Angle at which interocular distance starts to fade to 0");
490 prop,
"Pole Merge End Angle",
"Angle at which interocular distance is 0");
519 prop,
"Focus Object",
"Use this object to define the depth of field focal point");
525 prop,
"Focus Bone",
"Use this armature bone to define the depth of field focal point");
533 prop,
"Focus Distance",
"Distance to the focus point for depth of field");
540 "F-Stop ratio (lower numbers give more defocus, higher numbers give a sharper image)");
547 prop,
"Blades",
"Number of blades in aperture for polygonal bokeh (at least 3)");
571 {
CAM_PERSP,
"PERSP", 0,
"Perspective",
""},
572 {
CAM_ORTHO,
"ORTHO", 0,
"Orthographic",
""},
573 {
CAM_PANO,
"PANO", 0,
"Panoramic",
""},
577 {0,
"MILLIMETERS", 0,
"Millimeters",
"Specify focal length of the lens in millimeters"},
582 "Specify the lens as the field of view's angle"},
590 "Fit to the sensor width or height depending on image resolution"},
612 prop,
"Sensor Fit",
"Method to fit image and field of view angle inside the sensor");
620 prop,
"Passepartout Alpha",
"Opacity (alpha) of the darkened overlay in Camera view");
661 prop,
"Focal Length",
"Perspective Camera focal length value in millimeters");
669 prop,
"Sensor Width",
"Horizontal size of the image sensor area in millimeters");
677 prop,
"Sensor Height",
"Vertical size of the image sensor area in millimeters");
685 prop,
"Orthographic Scale",
"Orthographic Camera scale (similar to zoom)");
693 prop,
"Display Size",
"Apparent size of the Camera object in the 3D View");
719 prop,
"Show Limits",
"Display the clipping range and focus point on the camera");
725 prop,
"Show Mist",
"Display a line from the Camera to indicate the mist area");
731 prop,
"Show Passepartout",
"Show a darkened overlay outside the image area in Camera view");
737 prop,
"Show Safe Areas",
"Show TV title safe and action safe areas in Camera view");
743 "Show Center-Cut Safe Areas",
744 "Show safe areas to fit content in a different aspect ratio");
755 prop,
"Show Sensor Size",
"Show sensor size (film gate) in Camera view");
761 prop,
"Display Background Images",
"Display reference images behind objects in the 3D View");
773 prop,
"Center",
"Display center composition guide inside the camera view");
779 prop,
"Center Diagonal",
"Display diagonal center composition guide inside the camera view");
785 prop,
"Thirds",
"Display rule of thirds composition guide inside the camera view");
791 prop,
"Golden Ratio",
"Display golden ratio composition guide inside the camera view");
798 "Display golden triangle A composition guide inside the camera view");
805 "Display golden triangle B composition guide inside the camera view");
811 prop,
"Harmonious Triangle A",
"Display harmony A composition guide inside the camera view");
817 prop,
"Harmonious Triangle B",
"Display harmony B composition guide inside the camera view");
Camera data-block and utility functions.
float BKE_camera_sensor_size(int sensor_fit, float sensor_x, float sensor_y)
void BKE_camera_background_image_clear(struct Camera *cam)
struct CameraBGImage * BKE_camera_background_image_copy(struct CameraBGImage *bgpic_src, const int copy_flag)
struct CameraBGImage * BKE_camera_background_image_new(struct Camera *cam)
void BKE_camera_background_image_remove(struct Camera *cam, struct CameraBGImage *bgpic)
General operations, lookup, etc. for blender objects.
void BKE_report(ReportList *reports, eReportType type, const char *message)
#define BLI_assert_msg(a, msg)
void BLI_insertlinkafter(struct ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
float focallength_to_fov(float focal_length, float sensor)
float fov_to_focallength(float fov, float sensor)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
void DEG_id_tag_update(struct ID *id, int flag)
void DEG_relations_tag_update(struct Main *bmain)
@ IDOVERRIDE_LIBRARY_OP_INSERT_AFTER
@ CAM_BGIMG_FLAG_CAMERA_CROP
@ CAM_BGIMG_FLAG_CAMERACLIP
@ CAM_BGIMG_FLAG_CAMERA_ASPECT
@ CAM_BGIMG_FLAG_DISABLED
@ CAM_BGIMG_FLAG_FOREGROUND
@ CAM_BGIMG_FLAG_OVERRIDE_LIBRARY_LOCAL
@ CAM_BGIMG_FLAG_EXPANDED
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between camera
#define RNA_POINTER_INVALIDATE(ptr)
#define RNA_TRANSLATION_PREC_DEFAULT
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_LIBRARY_INSERTION
@ PROPOVERRIDE_NO_PROP_NAME
#define ND_DRAW_RENDER_VIEWPORT
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
void rna_def_animdata_common(StructRNA *srna)
static void rna_def_camera_stereo_data(BlenderRNA *brna)
void RNA_def_camera(BlenderRNA *brna)
static void rna_def_camera_dof_settings_data(BlenderRNA *brna)
static void rna_def_camera_background_image(BlenderRNA *brna)
static void rna_def_camera_background_images(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_api_camera(StructRNA *srna)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_define_lib_overridable(const bool make_overridable)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_define_animate_sdna(bool animate)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_struct_nested(BlenderRNA *brna, StructRNA *srna, const char *structname)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
char * rna_CameraBackgroundImage_image_or_movieclip_user_path(const struct PointerRNA *ptr)
void SEQ_relations_invalidate_scene_strips(Main *bmain, Scene *scene_target)
struct ListBase bg_images
int subitem_reference_index
void WM_main_add_notifier(unsigned int type, void *reference)