user: Describe Bpy.Types.Scene from the Blender manual or Python API, including usage steps and snippets.

assistant: frame ¶ Display and allow setting fractional frame values for the current frame Type : boolean, default False simulation_frame_end ¶ Frame at which simulations end Type : int in [-inf, inf], default 250 simulation_frame_start ¶ Frame at which simulations start Type : int in [-inf, inf], default 1 sync_mode ¶ How to sync playback NONE Play Every Frame – Do not sync, play every frame. FRAME_DROP Frame Dropping – Drop frames if playback is too slow. AUDIO_SYNC Sync to Audio – Sync to audio playback, dropping frames. Type : enum in [ 'NONE' , 'FRAME_DROP' , 'AUDIO_SYNC' ], default 'AUDIO_SYNC' time_jump_delta ¶ Number of frames or seconds to jump forward or backward Type : float in [0.1, inf], default 1.0 time_jump_unit ¶ Which unit to use for time jumps in the timeline FRAME Frame – Jump by frames. SECOND Second – Jump by seconds. Type : enum in [ 'FRAME' , 'SECOND' ], default 'SECOND' timeline_markers ¶ Markers used in all timelines for the current scene Type : TimelineMarkers bpy_prop_collection of TimelineMarker , (readonly) tool_settings ¶ Type : ToolSettings , (readonly, never None) transform_orientation_slots ¶ Type : bpy_prop_collection of TransformOrientationSlot , (readonly) unit_settings ¶ Unit editing settings Type : UnitSettings , (readonly, never None) use_audio ¶ Play back of audio from Sequence Editor, otherwise mute audio Type : boolean, default False use_audio_scrub ¶ Play audio from Sequence Editor while scrubbing Type : boolean, default False use_custom_simulation_range ¶ Use a simulation range that is different from the scene range for simulation nodes that don’t override the frame range themselves Type : boolean, default False use_gravity ¶ Use global gravity for all dynamics Type : boolean, default True use_nodes ¶ Enable the compositing node group. Deprecated since version 5.0: removal planned in version 6.0 Unused but kept for compatibility reasons. Setting the property has no effect, and getting it always returns True. Use #scene.render.use_compositing to turn compositing to enable or disable compositing. Type : boolean, default False use_preview_range ¶ Use an alternative start/end frame range for animation playback and view renders Type : boolean, default False use_stamp_note ¶ User defined note for the render stamping Type : string, default “”, (never None) view_layers ¶ Type : ViewLayers bpy_prop_collection of ViewLayer , (readonly) view_settings ¶ Color management settings applied on image before saving Type : ColorManagedViewSettings , (readonly) world ¶ World used for rendering the scene Type : World classmethod update_render_engine ( ) ¶ Trigger a render engine update statistics ( view_layer ) ¶ statistics Parameters : view_layer ( ViewLayer , (never None)) – View Layer Returns : Statistics Return type : string, (never None) frame_set ( frame , * , subframe = 0.0 ) ¶ Set scene frame updating all objects and view layers immediately Parameters : frame ( int in [ -1048574 , 1048574 ] ) – Frame number to set subframe ( float in [ 0 , 1 ] , ( optional ) ) – Subframe time, between 0.0 and 1.0 uvedit_aspect ( object ) ¶ Get uv aspect for current object Parameters : object ( Object , (never None)) – Object Returns : aspect Return type : mathutils.Vector of 2 items in [0, inf] ray_cast ( depsgraph , origin , direction , * , distance = 1.70141e+38 ) ¶ Cast a ray onto evaluated geometry in world-space Parameters : depsgraph ( Depsgraph , (never None)) – The current dependency graph distance ( float in [ 0 , inf ] , ( optional ) ) – Maximum distance Returns : result , boolean location , The hit location of this ray cast, mathutils.Vector of 3 items in [-inf, inf] normal , The face normal at the ray cast hit location, mathutils.Vector of 3 items in [-inf, inf] index , The face index, -1 when original data isn’t available, int in [-inf, inf] object , Ray cast object, Object matrix , Matrix, mathutils.Matrix of 4 * 4 items in [-inf, inf] Return type : (boolean, mathutils.Vector of 3 items in [-inf, inf], mathutils.Vector of 3 items in [-inf, inf], int in [-inf, inf], Object , mathutils.Matrix of 4 * 4 items in [-inf, inf]) sequence_editor_create ( ) ¶ Ensure sequence editor is valid in this scene Returns : New sequence editor data or nullptr Return type : SequenceEditor sequence_editor_clear ( ) ¶ Clear sequence editor in this scene classmethod bl_rna_get_subclass ( id , default = None , / ) ¶ Parameters : id ( str ) – The RNA type identifier. Returns : The RNA type or default when not found. Return type : bpy.types.Struct subclass classmethod bl_rna_get_subclass_py ( id , default = None , / ) ¶ Parameters : id ( str ) – The RNA type identifier. Returns : The class or default when not found. Return type : type Inherited Properties ¶ bpy_struct.id_data ID.name ID.name_full ID.id_type ID.session_uid ID.is_evaluated ID.original ID.users ID.use_fake_user ID.use_extra_user ID.is_embedded_data ID.is_linked_packed ID.is_missing ID.is_runtime_data ID.is_editable ID.tag ID.is_library_indirect ID.library ID.library_weak_reference ID.asset_data ID.override_library ID.preview Inherited Functions ¶ bpy_struct.as_pointer bpy_struct.driver_add bpy_struct.driver_remove bpy_struct.get bpy_struct.id_properties_clear bpy_struct.id_properties_ensure bpy_struct.id_properties_ui bpy_struct.is_property_hidden bpy_struct.is_property_overridable_library bpy_struct.is_property_readonly bpy_struct.is_property_set bpy_struct.items bpy_struct.keyframe_delete bpy_struct.keyframe_insert bpy_struct.keys bpy_struct.path_from_id bpy_struct.path_from_module bpy_struct.path_resolve bpy_struct.pop bpy_struct.property_overridable_library_set bpy_struct.property_unset bpy_struct.rna_ancestors bpy_struct.type_recast bpy_struct.values ID.bl_system_properties_get ID.rename ID.evaluated_get ID.copy ID.asset_mark ID.asset_clear ID.asset_generate_preview ID.override_create ID.override_hierarchy_create ID.user_clear ID.user_remap ID.make_local ID.user_of_id ID.animation_data_create ID.animation_data_clear ID.update_tag ID.preview_ensure ID.bl_rna_get_subclass ID.bl_rna_get_subclass_py References ¶ bpy.context.scene bpy.context.sequencer_scene BlendData.scenes BlendDataScenes.new BlendDataScenes.remove Camera.view_frame CompositorNodeCryptomatteV2.scene CompositorNodeDefocus.scene CompositorNodeRLayers.scene Context.scene Depsgraph.scene Depsgraph.scene_eval ID.override_hierarchy_create IDOverrideLibrary.resync Image.save_render Object.crazyspace_eval Object.is_deform_modified Object.is_modified RenderEngine.bind_display_space_shader RenderEngine.get_preview_pixel_size RenderEngine.register_pass RenderEngine.support_display_space_shader RenderEngine.update_render_passes Scene.background_set SceneStrip.scene StripsMeta.new_scene StripsTopLevel.new_scene Window.scene WorkSpace.sequencer_scene Next SceneDisplay(bpy_struct) Previous SPHFluidSettings(bpy_struct) Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Scene(ID) Scene Scene.active_clip Scene.animation_data Scene.annotation Scene.audio_distance_model Scene.audio_doppler_factor Scene.audio_doppler_speed Scene.audio_volume Scene.background_set Scene.camera Scene.collection Scene.compositing_node_group Scene.cursor Scene.cycles Scene.cycles_curves Scene.display Scene.display_settings Scene.eevee Scene.frame_current Scene.frame_current_final Scene.frame_end Scene.frame_float Scene.frame_preview_end Scene.frame_preview_start Scene.frame_start Scene.frame_step Scene.frame_subframe Scene.gravity Scene.grease_pencil_settings Scene.hydra Scene.is_nla_tweakmode Scene.keying_sets Scene.keying_sets_all Scene.lock_frame_selection_to_range Scene.objects Scene.render Scene.rigidbody_world Scene.safe_areas Scene.sequence_editor Scene.sequencer_colorspace_settings Scene.show_keys_from_selected_only Scene.show_subframe Scene.simulation_frame_end Scene.simulation_frame_start Scene.sync_mode Scene.time_jump_delta Scene.time_jump_unit Scene.timeline_markers Scene.tool_settings Scene.transform_orientation_slots Scene.unit_settings Scene.use_audio Scene.use_audio_scrub Scene.use_custom_simulation_range Scene.use_gravity Scene.use_nodes Scene.use_preview_range Scene.use_stamp_note Scene.view_layers Scene.view_settings Scene.world Scene.update_render_engine() Scene.statistics() Scene.frame_set() Scene.uvedit_aspect() Scene.ray_cast() Scene.sequence_editor_create() Scene.sequence_editor_clear() Scene.bl_rna_get_subclass() Scene.bl_rna_get_subclass_py() Inherited Properties Inherited Functions References