|
Avid Pro Audio CommunityHow to Join & Post • Community Terms of Use • Help Us Help YouKnowledge Base Search • Community Search • Learn & Support |
#1
|
|||
|
|||
Python Transport Monitoring
Hey There,
I'm just starting out programming, so bear with me - I'm trying to build a little app that monitors the PT Transport, using JamieHards Python Implementation. currently I'm using a timer to call the Transport state every 100ms. but I notice the ProTools GUI becoming pretty sluggish, so that seems to not work well. Code:
self.timer = QTimer(self) self.timer.timeout.connect(self.get_ptstatus) self.timer.start(100) def get_ptstatus(self): with open_engine(os.getenv('PTSL_KEY')) as engine: self.lbl_ptstatus.setText(str(engine.transport_state())) (probably - the sound radix guys are getting it right in Muteomatic..) Thanks, Marcus |
#2
|
|||
|
|||
Re: Python Transport Monitoring
Got it!
|
#3
|
|||
|
|||
Re: Python Transport Monitoring
Nice, so how did you do it?
__________________
http://felixrost.de |
#4
|
|||
|
|||
Re: Python Transport Monitoring
You might experiment with the streaming RPC response and see how it behaves with this.
__________________
___ Jamie Hardt MPSE Pro Tools Ultimate 2022.12.0 Mac OS X 12.6.2 Mac Pro (Late 2013) |
#5
|
|||
|
|||
Re: Python Transport Monitoring
Quote:
but I managed to get my tool working ok for now - the problem was that it was always re-registering every cycle. now, only doing so at startup, and only polling the transport state every 100ms, it works ok. PT is greying out all the menus at the moment when polling occurs, but this is workable at the moment, and it might get fixed in PT. |
#6
|
||||
|
||||
Re: Python Transport Monitoring
Hi Marcus,
How did you figure this out in the end? I am currently doing this in the same way as Sound Radix in a plugin (through the AAX interface in C++). It's interesting to hear that it's possible through this new scripting interface in Python! |
#7
|
|||
|
|||
Re: Python Transport Monitoring
Quote:
apart from above mentioned disabling of menus, which I can live with for now. Sound Radix was able to circumvent my problem somehow, so Im curious to see what you will end up with regarding this.. |
#8
|
|||
|
|||
Re: Python Transport Monitoring
Quote:
However PT disables all menu commands when polling, so that's not optimal. also, on intel machines the GUI becomes a little sluggish (on Apple Silicon it's much better interestingly..) hopefully Avid will relax PT's behaviour for monitoring commands (=not "action" commands) at some point. also, sound radix managed to do this more elegantly without the above mentioned issues, so I'm hoping for info on how and if this can be done better. |
#9
|
|||
|
|||
Re: Python Transport Monitoring
Update:
Sound Radix just used the isRecording flag, which finally got added into the AAX SDK a few months ago. (hardly anyone noticed, it was kinda "sneaked" in) So that's the best and easiest way for their plugin. So this is no help for our PTSL based issues unfortunately. Avid needs to improve PTSLs behaviour for us to succeed. |
#10
|
|||
|
|||
Re: Python Transport Monitoring
The other way you do this is as an MMC slave, I believe this is what Kraken does.
__________________
___ Jamie Hardt MPSE Pro Tools Ultimate 2022.12.0 Mac OS X 12.6.2 Mac Pro (Late 2013) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python Support? | chibop | Pro Tools Scripting SDK Toolkit | 5 | 01-12-2023 04:08 AM |
Native Python Implementation | JamieHardt | Pro Tools Scripting SDK Toolkit | 3 | 01-08-2023 07:32 PM |
ARTIST TRANSPORT: Transport knobs do not light up when pushed | smallchamber | Artist Series | 0 | 02-26-2013 05:36 AM |
The official Monty Python quoting thread..... | graveleye | 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) | 168 | 08-27-2009 10:50 AM |
OT - Python on Broadway? | spkguitar | 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) | 1 | 07-08-2004 07:24 AM |