シーンオペレーター
参考:
Scene Operators (bpy.ops.scene) | Blender Python API [Official]
概要
参考:
Blender のデータベースとシーングラフについて | dskjal
コンテキストアクセス
参考:
Context Access (bpy.context) | Blender Python API [Official]
Context | Blender Python API [Official]
シーンを操作する
メソッド
- delete
- light_cache_bake
- light_cache_free
- new
- render_view_add
- render_view_remove
- view_layer_add
- view_layer_add_aov
- view_layer_remove
- view_layer_remove_aov
フリースタイルの操作
- freestyle_add_edge_marks_to_keying_set
- freestyle_add_face_marks_to_keying_set
- freestyle_alpha_modifier_add
- freestyle_color_modifier_add
- freestyle_fill_range_by_selection
- freestyle_geometry_modifier_add
- freestyle_lineset_add
- freestyle_lineset_copy
- freestyle_lineset_move
- freestyle_lineset_paste
- freestyle_lineset_remove
- freestyle_linestyle_new
- freestyle_modifier_copy
- freestyle_modifier_move
- freestyle_modifier_remove
- freestyle_module_add
- freestyle_module_move
- freestyle_module_open
- freestyle_module_remove
- freestyle_stroke_material_create
- freestyle_thickness_modifier_add
グリースペンシルの操作
- gpencil_brush_preset_add
- gpencil_material_preset_add
参考:
Scene Operators (bpy.ops.scene) | Blender Python API [Official]
Help adding new scene, collection, objects in 2.8 – Blender Artists Community
シーン (Scene)
プロパティ
- active_clip
- animation_data
- audio_distance_model
- audio_doppler_factor
- audio_doppler_speed
- audio_volume
- background_set
- camera
- collection
- cursor
- cycles
- cycles_curves
- display
- display_settings
- eevee
- frame_current
- frame_current_final
- frame_end
- frame_float
- frame_preview_end
- frame_preview_start
- frame_start
- frame_step
- frame_subframe
- gravity
- grease_pencil
- grease_pencil_settings
- is_nla_tweakmode
- keying_sets
- keying_sets_all
- lock_frame_selection_to_range
- node_tree
- objects
- render
- rigidbody_world
- safe_areas
- sequence_editor
- sequencer_colorspace_settings
- show_keys_from_selected_only
- show_subframe
- sync_mode
- timeline_markers
- tool_settings
- transform_orientation_slots
- unit_settings
- use_audio
- use_audio_scrub
- use_gravity
- use_nodes
- use_preview_range
- use_stamp_note
- view_layers
- view_settings
- world
メソッド
- statistics
- frame_set
- uvedit_aspect
- ray_cast
- sequence_editor_create
- sequence_editor_clear
参考:
Scene | Blender Python API [Official]
ビューレイヤー (ViewLayer)
プロパティ
- active_aov
- active_aov_index
- active_layer_collection
- aovs
- cycles
- depsgraph
- eevee
- freestyle_settings
- invert_zmask
- layer_collection
- material_override
- name
- objects
- pass_alpha_threshold
- pass_cryptomatte_depth
- samples
- use
- use_all_z
- use_ao
- use_edge_enhance
- use_freestyle
- use_halo
- use_pass_ambient_occlusion
- use_pass_combined
- use_pass_cryptomatte_accurate
- use_pass_cryptomatte_asset
- use_pass_cryptomatte_material
- use_pass_cryptomatte_object
- use_pass_diffuse_color
- use_pass_diffuse_direct
- use_pass_diffuse_indirect
- use_pass_emit
- use_pass_environment
- use_pass_glossy_color
- use_pass_glossy_direct
- use_pass_glossy_indirect
- use_pass_material_index
- use_pass_mist
- use_pass_normal
- use_pass_object_index
- use_pass_shadow
- use_pass_subsurface_color
- use_pass_subsurface_direct
- use_pass_subsurface_indirect
- use_pass_transmission_color
- use_pass_transmission_direct
- use_pass_transmission_indirect
- use_pass_uv
- use_pass_vector
- use_pass_z
- use_sky
- use_solid
- use_strand
- use_volumes
- use_zmask
- use_ztransp
メソッド
- update
クラスメソッド
- classmethodupdate_render_passes
参考:
ViewLayer | Blender Python API [Official]
シーンで使用されている回数を取得する
オブジェクトやデータがシーンで使用されている回数を取得するには、user_of_id
メソッドを用いる。
参考:
bpy.types.ID.user_of_id | Blender Python API [Official]
How to get all collections of the current scene? – Blender Stack Exchange