py-ptsl icon indicating copy to clipboard operation
py-ptsl copied to clipboard

[BUG] create_session_from_aaf creates a blank session

Open evanmang opened this issue 6 months ago • 4 comments

Thanks again for the great work on this. Having trouble using the create_session_from_aaf function, as described below:

Describe the bug When creating a session using the 'create_session_from_aaf' function, a blank session is created.

To Reproduce Please enter code here that demonstrates the bug:

#!/Users/heardstudio/.py-ptsl-600.0.0/bin/python3
import sys
import datetime
import math
import os

from ptsl import open_engine
from ptsl import PTSL_pb2 as pt

with open_engine(company_name="py-ptsl",
                      application_name=sys.argv[0]) as engine:

    aafPath = '/Users/heardstudio/Downloads/test.aaf'
    name = 'test'
    SessionPath = '/Users/heardstudio/Downloads/'
    builder = engine.create_session_from_aaf(aaf_path=aafPath, name=name, path=SessionPath)
    builder.create()

Platform:

  • Operating System: macOS 15.3
  • Pro Tools Version: 2025.6

Additional context Tried with AAFs from a variety of different places, including created from Pro Tools. None of them seem to create a PTX with the content of the AAF.

evanmang avatar Sep 22 '25 21:09 evanmang

Thank you for submitting this, I'll take a look at it and see.

iluvcapra avatar Sep 22 '25 23:09 iluvcapra

I can't get this to work either, but the client is sending all of the fields the right way; Avid hadn't implemented this feature last year when I tried to use it and I suspect it still isn't. Had it worked for you before?

iluvcapra avatar Sep 23 '25 19:09 iluvcapra

I have not had it work before, no. AAF import doesn't work with the import session data command either right?

evanmang avatar Sep 23 '25 21:09 evanmang

At this time, at least as far as I know, the Import command only works for sessions or audio. If you run "Import" with an AAF as the source I get ErrType 126: PT_InvalidParameter (Unable to complete the command due to an unknown error.)

iluvcapra avatar Sep 24 '25 01:09 iluvcapra