Implementing for ptsl in progress

This commit is contained in:
2025-11-06 16:09:03 -08:00
parent 3cb9220ebd
commit b506fd83de
5 changed files with 69 additions and 117 deletions

22
intern/pro_tools.py Normal file
View File

@@ -0,0 +1,22 @@
import bpy
import ptsl
from ptsl import PTSL_pb2 as pt
def send_to_pro_tools(speakers: list[bpy.types.Object],
room_size: float) -> bool:
try:
client = ptsl.Client(company_name="Squad 51",
application_name="Send to Pro Tools Blender Extension")
for speaker in speakers:
assert speaker.data
result = client.run_command(pt.CId_CreateNewTracks, {
{'number_of_tracks': 1,
'track_name': speaker.data.name}
})
client.close()
return True
except:
return False