統合オペレーター
公式サイト:
Wm Operators | Blender Python API [Official]
関数一覧
- bpy.ops.wm.alembic_export
- bpy.ops.wm.alembic_import
- bpy.ops.wm.append
- bpy.ops.wm.batch_rename
- bpy.ops.wm.blend_strings_utf8_validate
- bpy.ops.wm.call_menu
- bpy.ops.wm.call_menu_pie
- bpy.ops.wm.call_panel
- bpy.ops.wm.collada_export
- bpy.ops.wm.collada_import
- bpy.ops.wm.context_collection_boolean_set
- bpy.ops.wm.context_cycle_array
- bpy.ops.wm.context_cycle_enum
- bpy.ops.wm.context_cycle_int
- bpy.ops.wm.context_menu_enum
- bpy.ops.wm.context_modal_mouse
- bpy.ops.wm.context_pie_enum
- bpy.ops.wm.context_scale_float
- bpy.ops.wm.context_scale_int
- bpy.ops.wm.context_set_boolean
- bpy.ops.wm.context_set_enum
- bpy.ops.wm.context_set_float
- bpy.ops.wm.context_set_id
- bpy.ops.wm.context_set_int
- bpy.ops.wm.context_set_string
- bpy.ops.wm.context_set_value
- bpy.ops.wm.context_toggle
- bpy.ops.wm.context_toggle_enum
- bpy.ops.wm.debug_menu
- bpy.ops.wm.doc_view
- bpy.ops.wm.doc_view_manual
- bpy.ops.wm.doc_view_manual_ui_context
- bpy.ops.wm.drop_blend_file
- bpy.ops.wm.gpencil_export_pdf
- bpy.ops.wm.gpencil_export_svg
- bpy.ops.wm.gpencil_import_svg
- bpy.ops.wm.interface_theme_preset_add
- bpy.ops.wm.keyconfig_preset_add
- bpy.ops.wm.lib_reload
- bpy.ops.wm.lib_relocate
- bpy.ops.wm.link
- bpy.ops.wm.memory_statistics
- bpy.ops.wm.open_mainfile
- bpy.ops.wm.operator_cheat_sheet
- bpy.ops.wm.operator_defaults
- bpy.ops.wm.operator_pie_enum
- bpy.ops.wm.operator_preset_add
- bpy.ops.wm.owner_disable
- bpy.ops.wm.owner_enable
- bpy.ops.wm.path_open
- bpy.ops.wm.previews_batch_clear
- bpy.ops.wm.previews_batch_generate
- bpy.ops.wm.previews_clear
- bpy.ops.wm.previews_ensure
- bpy.ops.wm.properties_add
- bpy.ops.wm.properties_context_change
- bpy.ops.wm.properties_edit
- bpy.ops.wm.properties_edit_value
- bpy.ops.wm.properties_remove
- bpy.ops.wm.quit_blender:Blender を終了させる
- bpy.ops.wm.radial_control
- bpy.ops.wm.read_factory_settings
- bpy.ops.wm.read_factory_userpref
- bpy.ops.wm.read_history
- bpy.ops.wm.read_homefile
- bpy.ops.wm.read_userpref
- bpy.ops.wm.recover_auto_save
- bpy.ops.wm.recover_last_session
- bpy.ops.wm.redraw_timer
- bpy.ops.wm.revert_mainfile
- bpy.ops.wm.save_as_mainfile
- bpy.ops.wm.save_homefile
- bpy.ops.wm.save_mainfile
- bpy.ops.wm.save_userpref
- bpy.ops.wm.search_menu
- bpy.ops.wm.search_operator
- bpy.ops.wm.set_stereo_3d
- bpy.ops.wm.splash
- bpy.ops.wm.splash_about
- bpy.ops.wm.sysinfo
- bpy.ops.wm.tool_set_by_id
- bpy.ops.wm.tool_set_by_index
- bpy.ops.wm.toolbar
- bpy.ops.wm.toolbar_fallback_pie
- bpy.ops.wm.toolbar_prompt
- bpy.ops.wm.url_open
- bpy.ops.wm.url_open_preset
- bpy.ops.wm.usd_export
- bpy.ops.wm.usd_import
- bpy.ops.wm.window_close:現在アクティブなウィンドウを閉じる
- bpy.ops.wm.window_fullscreen_toggle
- bpy.ops.wm.window_new
- bpy.ops.wm.window_new_main
- bpy.ops.wm.xr_navigation_fly
- bpy.ops.wm.xr_navigation_grab
- bpy.ops.wm.xr_navigation_reset
- bpy.ops.wm.xr_navigation_teleport
- bpy.ops.wm.xr_session_toggle
ユーザー設定を保存する (save_userpref)
参考:
bpy.ops.wm.save_userpref | Blender Python API [Official]
quit_blender で保存ダイアログが表示されない
対処法:
'INVOKE_DEFAULT'
を引数として渡す。
bpy.ops.wm.quit_blender('INVOKE_DEFAULT')
Code language: Python (python)
参考:
Quit blender with dialog – Blender Stack Exchange
終了時にスクリプトを実行する
- 「atexit 」で終了時に実行するハンドラを登録する。
参考:
atexit – Exit handlers | Python 3.x Documentation [Official]