Help with some of the functions / example code? #47
-
First off THANK YOU. I've been able to do SO MUCH with this tool already that would have never been possible with Applescript and the methods I was previously using. My python is mediocre at best, and I'm having trouble with some of the functions that take multiple parameters. For example, i'm able to run |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi Evan- Thanks for checking out the library! A lot of python code has inline documentation, and a lot of more modern python code has type annotations for things like function parameters. If you look at the https://github.com/iluvcapra/py-ptsl/blob/master/ptsl/engine.py#L359
|
Beta Was this translation helpful? Give feedback.
-
Steve, Thanks for your reply. I'm running the latest py-ptsl, and Pro Tools 2024.6. I'm indeed getting the same error!
I added that line to the cliient.py file and the function now works, -Evan |
Beta Was this translation helpful? Give feedback.
-
I've made a small change in client.py that fixes this, it's presently on master can you give it a try and let me know if it works for you? |
Beta Was this translation helpful? Give feedback.
Hi Evan,
i can't reproduce the Problem. Do you get any error? Something like:
"ptsl.errors.CommandError: ErrType 100: PT_UnknownError (zoom_settings)"
Do you have the latest Version of py-ptsl installed? (401)
What Version of PT do you use?
Your code is fine, the syntax is correct. But you should get the error i mentioned above, because of an unresolved bug. The error should also be the Reason the Marker isnt placed correctly. If i run your code, i get the error and a marker at current timecode position with number 100 and name test.
To fix your problem temporarily (please be aware that this is only a workaround and comes with some other issues for some features of the library):
You can g…