"""SE Palette - ワンタッチで効果音をVSEへ追加するBlenderアドオン。""" # Legacy add-on metadata. Blender Extensions uses blender_manifest.toml, # while this keeps the same source installable through the legacy add-on path. bl_info = { "name": "SE Palette", "author": "Hare", "version": (1, 3, 0), "blender": (5, 0, 0), "location": "Video Sequencer > Sidebar > SE Palette", "description": "Preview and insert sound effects into the Video Sequencer", "category": "Sequencer", } from . import operators, panels, properties classes = ( properties.SEPaletteItem, properties.SEPaletteProperties, operators.SEPALETTE_OT_scan, operators.SEPALETTE_OT_insert, operators.SEPALETTE_OT_preview, operators.SEPALETTE_OT_stop_preview, operators.SEPALETTE_OT_edit_item, panels.SEPALETTE_PT_main, ) def register(): import bpy for cls in classes: bpy.utils.register_class(cls) bpy.types.Scene.se_palette = bpy.props.PointerProperty( type=properties.SEPaletteProperties ) def unregister(): import bpy operators.stop_preview(release_device=True) panels.clear_previews() if hasattr(bpy.types.Scene, "se_palette"): del bpy.types.Scene.se_palette for cls in reversed(classes): bpy.utils.unregister_class(cls) if __name__ == "__main__": register()