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

[idea] Scripting capabilities #4

Open
vjeux opened this issue May 12, 2024 · 0 comments
Open

[idea] Scripting capabilities #4

vjeux opened this issue May 12, 2024 · 0 comments

Comments

@vjeux
Copy link

vjeux commented May 12, 2024

Many video tasks are pretty repetitive and the GUI interface may not be the best. For example, I wanted to make a compilation of a video game tracks I built. I had a list of individual video files, their name, when they were played. I manually created the transition for how I wanted it to display. But then I had to copy paste it for the other 15. https://www.youtube.com/watch?v=3MgWAbPNeeI

Instead I wish I could have written a bit of JavaScript:

const myTracks = [{name: 'Clippy', date: 'December 13 2021'}, {name: 'Yeet', date: 'February 7 2022'}, /* ... */];

const referenceTransition = timeline.tracks[0 /* labels */][0];
for (let i = 1; i < myTracks.length; ++i) {
  const myTrack = myTracks[i];

  const myTransition = referenceTransition.clone();
  myTransition.elements[0].setText(myTrack.name);
  myTransition.elements[1].setText(myTrack.date);
  myTransition.setStart(timeline.tracks[1 /* videos */][i].start);

  timeline.tracks[0 /* labels */].push(myTransition);
}

I don't particularly care about how the API looks like but being able to script the timeline could really give super powers to the video editor.

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