Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not getting length of for whole sequence #52

Open
sanfx opened this issue Nov 7, 2019 · 0 comments
Open

not getting length of for whole sequence #52

sanfx opened this issue Nov 7, 2019 · 0 comments

Comments

@sanfx
Copy link

sanfx commented Nov 7, 2019

Hello Mark,

I am not getting IN-OUT length on the Sequnce Track although each individual tracks do have the range. This is what I am trying to do in aaf.

    aaf_file = aaf.open(path, 'w')
    timeline_start, timeline_end = cut_data.get_timeline_range()
    duration = timeline_end - timeline_start # 333
    frame_rate = 24
    timecode = factory.create.Timecode(duration, 0, frame_rate)
    timecode_slot = composition_mob.append_new_timeline_slot(
        frame_rate,
        timecode
    )

    timecode_id = 1  
    timecode_slot.name = 'TC 1'
    timecode_slot.slotID = timecodeid
    timeline_mob_slot = aaf_file.create.TimelineMobSlot()
    timeline_mob_slot.slotID = timecodeid
    timeline_mob_slot.mark_in = 0
    timeline_mob_slot.mark_out = duration
    timeline_mob_slot["PhysicalTrackNumber"].value = 1
    aaf_file.save(path)

But still I do not get in and out on the Sequnce Track

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant