From 9f2e787158e48339164a52b3cc771a140394fe78 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 5 Nov 2025 22:09:20 -0800 Subject: [PATCH] Modernization, removing dead items --- README.md | 26 ------------------- intern/object_mix.py | 2 -- ...m_export.py => operator_protools_export.py | 11 ++++---- 3 files changed, 6 insertions(+), 33 deletions(-) rename operator_adm_export.py => operator_protools_export.py (80%) diff --git a/README.md b/README.md index 35c343b..706418a 100644 --- a/README.md +++ b/README.md @@ -17,32 +17,6 @@ Tools and then play them into a Dolby DAPS Renderer. ## Operators -### `import_test.wav_file_batch` - -**Import WAV Files:** This operator allows you to add multiple audio files to a -.blend file so they'll be available to the *Add Sounds to Meshes* operator. - -### `object.add_speakers_to_obj` - -**Add Sounds to Meshes:** This operator takes all the selected objects in the -current scene and attaches a new speaker locked to that object's location -throughout the animation. You provide the prefix for the name of a set of sound -files -added with the _Import WAV Files_ operator, and these are added to each -selected object randomly. The sounds can be timed to either begin playing at -the beginning of the sequence, at a random time, or when the respective object -is -closest to the scene's camera. - -### `export.adm_wave_file` - -**Export ADM Wave File:** This operator exports all of the speakers in a scene -as an ADM Broadcast-WAV file compartible with a Dolby Atmos rendering workflow. -This produces a multichannel WAV file with embedded ADM metadata the passes -panning information to the client. (Has been tested and works with Avid Pro -Tools 2020). - - ## Requirements This add-on requires that the [EBU Audio diff --git a/intern/object_mix.py b/intern/object_mix.py index ef11720..7cbab5b 100644 --- a/intern/object_mix.py +++ b/intern/object_mix.py @@ -34,8 +34,6 @@ class ObjectMix: self.intermediate_filename = None self.base_dir = base_dir self.scene = scene - # self._mixdown_file_handle = None - # self._mixdown_reader = None @property def frame_start(self): diff --git a/operator_adm_export.py b/operator_protools_export.py similarity index 80% rename from operator_adm_export.py rename to operator_protools_export.py index 4f0f676..6d14add 100644 --- a/operator_adm_export.py +++ b/operator_protools_export.py @@ -5,13 +5,12 @@ from bpy.types import Operator from .intern.generate_adm import generate_adm -class ADMWaveExport(Operator, ExportHelper): +class ProToolsExport(Operator, ExportHelper): """ - Export a Broadcast-WAV audio file with each speaker encoded as an ADM - object + Export audio objects to a Pro Tools session """ - bl_idname = "export.adm_wave_file" # important since its how - bl_label = "Export ADM Wave File" + bl_idname = "export.pro_tools_live" # important since its how + bl_label = "Send Audio Objects to Pro Tools" filepath: str filename_ext = ".wav" @@ -47,5 +46,7 @@ class ADMWaveExport(Operator, ExportHelper): ) def execute(self, context) -> set: + assert self.create_bed is False, "Create Bed is not supported" + return generate_adm(context, self.filepath, self.room_size, self.max_objects)