GithubHelp home page GithubHelp logo

samons / premiere-auto-cut-ahk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tntmod54321/premiere-auto-cut-ahk

0.0 1.0 0.0 41 KB

Automatically cut video in Premiere Pro with a janky autohotkey script.

License: GNU General Public License v3.0

AutoHotkey 100.00%

premiere-auto-cut-ahk's Introduction

Premiere-auto-cut-AHK

The most important thing, and the biggest issue with this script (but I'm too lazy to fix it), is that you need to change the variable numberofclips at the start of the file otherwise the script will crash or otherwise behave unexpectedly.

This script requires TextFormat (An AHK library) it can be found Here, simply put tf.ahk in the same folder as this script.
Also you need to select all video and audio tracks or the unselected ones will be deleted.
select all audio tracks
You can exit the script at any time by pressing escape (ESC)

There are 3 shortcuts, Shift + F1, Shift + F2, and Shift + F3
Shift F1 will bring up a tooltip to give the current mouse position,
Shift F2 will automatically cut the video at the timestamps provided in the joblist
Shift F3 will remove every other clip (AKA the blocks of video that are outside of the cuts defined in the joblist)

To use the script

  1. Put TF.ahk in the same folder as this script
  2. Make a joblist.txt file in the same folder, an example joblist is in the repository.
    (E.G.):

1 (clip number)
00:00:10:00 (the starting timestamp that will be pasted into premiere)
00:00:20:00 (the ending timestamp that will be pasted into premiere)
2
00:00:40:00
00:00:50:00
etc...

Take the number of clips you have in your joblist (in the example above, 2)
and change "numberofclips = 0" to "numberofclips = 2"
3. use Shift + F1 to find where your mouse has to click on the screen to click the box with the timestamp
Timestamp box
Save the coordinates, and change "mousecutx" to the x value, do the same for the y value and "mousecuty"
4. Using the same Shift + F1 shortcut to figure out where you want the menu (tooltip) to show up with the values tooltipmouseposx and tooltipmouseposy
5. And lastly you need to bind the functions Close Gap to "Ctrl+Shift+F10" and Add Edit to All Tracks to "Ctrl+Shift+K", you can change these binds in Premiere and in the AHK script if you want though. Then you should just be able to use Shift + F2 then Shift + F3 in premiere pro and end up with some nicely cut clips.
(note that this script was designed for a slightly altered default keyboard shortcut setup so if you're a poweruser your binds might conflict with the ones in the script, for example d being the default "Select All Clips at Playhead" key is used here.

premiere-auto-cut-ahk's People

Contributors

tntmod54321 avatar

Watchers

James Cloos avatar

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.