40static void rna_Scene_frame_set(
Scene *scene,
Main *bmain,
int frame,
float subframe)
42 double cfra = double(frame) + double(subframe);
52 view_layer !=
nullptr;
53 view_layer = view_layer->
next)
65 screen =
static_cast<bScreen *
>(screen->id.next))
73 if (!
G.is_rendering) {
83static void rna_Scene_uvedit_aspect(
Scene * ,
Object *ob,
float aspect[2])
94 aspect[0] = aspect[1] = 1.0f;
97static void rna_SceneRender_get_frame_path(
ID *
id,
129 (frame == INT_MIN) ? rd->
cfra : frame,
141static void rna_Scene_ray_cast(
Scene *scene,
143 const float origin[3],
144 const float direction[3],
153 float direction_unit[3];
172 (
float (*)[4])r_obmat);
176 if (r_ob !=
nullptr && *r_ob !=
nullptr) {
186 unit_m4((
float (*)[4])r_obmat);
192static void rna_Scene_sequencer_editing_free(
Scene *scene)
206 func,
"Set scene frame updating all objects and view layers immediately");
211 func,
"subframe", 0.0, 0.0, 1.0,
"",
"Subframe time, between 0.0 and 1.0", 0.0, 1.0);
219 func,
"result", 2,
nullptr, 0.0f,
FLT_MAX,
"",
"aspect", 0.0f,
FLT_MAX);
227 parm =
RNA_def_pointer(func,
"depsgraph",
"Depsgraph",
"",
"The current dependency graph");
253 "The hit location of this ray cast",
265 "The face normal at the ray cast hit location",
271 func,
"index", 0, 0, 0,
"",
"The face index, -1 when original data isn't available", 0, 0);
273 parm =
RNA_def_pointer(func,
"object",
"Object",
"",
"Ray cast object");
275 parm =
RNA_def_float_matrix(func,
"matrix", 4, 4,
nullptr, 0.0f, 0.0f,
"",
"Matrix", 0.0f, 0.0f);
279 func =
RNA_def_function(srna,
"sequence_editor_create",
"blender::seq::editing_ensure");
282 func,
"sequence_editor",
"SequenceEditor",
"",
"New sequence editor data or nullptr");
285 func =
RNA_def_function(srna,
"sequence_editor_clear",
"rna_Scene_sequencer_editing_free");
294 func =
RNA_def_function(srna,
"frame_path",
"rna_SceneRender_get_frame_path");
297 func,
"Return the absolute path to the filename to be written for a given frame");
304 "Frame number to use, if unset the current frame will be used",
307 RNA_def_boolean(func,
"preview",
false,
"Preview",
"Use preview range");
313 "The name of the view to use to replace the \"%\" chars");
319 "The resulting filepath from the scenes render settings");
BMEditMesh * BKE_editmesh_from_object(Object *ob)
Return the BMEditMesh for a given object.
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
void BKE_report_path_template_errors(ReportList *reports, eReportType report_type, blender::StringRef path, blender::Span< blender::bke::path_templates::Error > errors)
void BKE_add_template_variables_for_render_path(blender::bke::path_templates::VariableMap &variables, const Scene &scene)
void BKE_add_template_variables_general(blender::bke::path_templates::VariableMap &variables, const ID *path_owner_id)
void BKE_scene_frame_set(Scene *scene, float frame)
const char * BKE_scene_multiview_view_suffix_get(const RenderData *rd, const char *viewname)
bool BKE_scene_camera_switch_update(Scene *scene)
Depsgraph * BKE_scene_ensure_depsgraph(Main *bmain, Scene *scene, ViewLayer *view_layer)
void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph)
void BKE_screen_view3d_scene_sync(bScreen *screen, Scene *scene)
#define BVH_RAYCAST_DIST_MAX
void unit_m4(float m[4][4])
MINLINE float normalize_v3_v3(float r[3], const float a[3])
MINLINE void zero_v3(float r[3])
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
T * DEG_get_original(T *id)
bool EDBM_uv_check(BMEditMesh *em)
void ED_uvedit_get_aspect(Object *obedit, float *r_aspx, float *r_aspy)
BPy_StructRNA * depsgraph
void MOV_filepath_from_settings(char filepath[1024], const Scene *scene, const RenderData *rd, bool preview, const char *suffix, ReportList *reports)
void editing_free(Scene *scene, const bool do_id_user)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont_, const char *identifier, const int rows, const int columns, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_function_flag(FunctionRNA *func, int flag)
PropertyRNA * RNA_def_string_file_path(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
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)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_api_scene(StructRNA *srna)
void RNA_api_scene_render(StructRNA *srna)
struct ImageFormatData im_format
void WM_main_add_notifier(uint type, void *reference)