Giter Site home page Giter Site logo

Comments (4)

MartinSRimsbo avatar MartinSRimsbo commented on June 19, 2024 1

Thanks a lot!
Following your instructions I added:

tc_slot = mob.create_empty_sequence_slot(25, media_kind='timecode')
tc = f.create.Timecode(25, False)
tc.start = 90000
tc_slot.segment.components.append(tc)

And it Worked like a charm.
Best

from pyaaf2.

markreidvfx avatar markreidvfx commented on June 19, 2024

Add another slot with a single TimeCode component to the compositionMob. Timecode.start should be the set to the start time you want.

from pyaaf2.

markreidvfx avatar markreidvfx commented on June 19, 2024

πŸ‘ no problem.

from pyaaf2.

zozzancs avatar zozzancs commented on June 19, 2024

I just tried this above, I'm glad I found this discussion, however for some reason it doesn't seem to work for me.
Duration is set to 1 sec, but the 10 hour starttime doesn't seem to work, it defaults to 1 hour.

Any suggestions, please?
This is driving me crazy, I even asked chatgpt, no luck :)

comp_mob= f.create.CompositionMob()
comp_mob.usage = "Usage_TopLevel"
comp_mob.name = "whatever"

tc = f.create.Timecode(timecode_fps, True)
tc.start = 900000  # 10 hours
tc.length = timecode_fps  # 1 sec

timeline_slotV = comp_mob.create_timeline_slot(edit_rate)
timeline_slotV["PhysicalTrackNumber"].value = 1
sequenceV = f.create.Sequence(media_kind="picture")
timeline_slotV.segment = sequenceV
comp_fillV = f.create.Filler("picture", 0)
sequenceV.components.append(comp_fillV)
sequenceV.components.append(tc)

f.content.mobs.append(comp_mob)

Also when using only this code

tc_slot = mob.create_empty_sequence_slot(25, media_kind='timecode')
tc = f.create.Timecode(25, False)
tc.start = 90000
tc.length = 25
tc_slot.segment.components.append(tc)

I get a nice timeline starting at 10 hours with the duration of 1 sec, but when checking it in the bin, it says 0 dur and 0 start tc

from pyaaf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.