Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Apple Final Cut Pro Using Automator and AppleScript to automatically change an angle of a multicam clip every n seconds – how?

  • Using Automator and AppleScript to automatically change an angle of a multicam clip every n seconds – how?

    Posted by Artur Babich on February 28, 2018 at 11:46 am

    I have 1 hour long multicam clip (2 cameras, 1 audio) that i’m not going to fully watch but i need to change camera every 15 and 30 seconds (first camera is on for 30 seconds, then second camera is on for 15 seconds – and so on till the end). How can i make a script to do this work automatically?

    Serj Kasparoff replied 7 years, 9 months ago 3 Members · 4 Replies
  • 4 Replies
  • Jeff Kirkland

    March 1, 2018 at 2:16 am

    FCPX isn’t scriptable so I don’t think there’s any way to automate this within FCPX.

    The only thing that comes to mind is that if you grab a keyboard macro app, you might be able to set up some keyboard macros to jump 15 seconds then switch to angle 1 and another to jump 30 seconds then switch to angle 2, then another macro to repeatedly alternate the first two until the end.

    —-
    Jeff Kirkland | Video Producer & Cinematographer
    Hobart, Tasmania | Twitter: @jeffkirkland

  • Serj Kasparoff

    July 26, 2018 at 11:19 pm

    Artur, tell us, please, how you’ve done it as a result?

  • Artur Babich

    July 27, 2018 at 5:11 am

    I wrote a script using AppleScript in Automator (Service gets no input data in Final Cut Pro).


    on run {input, parameters}

    tell application "System Events"
    tell process "Final Cut Pro"
    delay 3
    key code 123 using {control down, command down}
    repeat 80 times
    delay 1
    keystroke "+"
    set textToType to "30."
    keystroke textToType
    keystroke return
    keystroke "2"
    keystroke "+"
    set textToType to "15."
    keystroke textToType
    keystroke return
    keystroke "1"
    end repeat
    end tell
    end tell
    return input
    end run

    This script simulates my hotkeys: it chooses first cam, then after 30 seconds – second cam, then after 15 seconds – first cam and repeats for 80 times which equals 60 minutes.
    I run service in final cut services and then just wait for it to finish.

  • Serj Kasparoff

    July 27, 2018 at 5:17 pm

    Wow, it’s impressive. Didn’t know FCPX can be scriptable.
    Thanks for your example!

    Can you tell me, is it possible to do a script for a drop-down menu?
    I need to change multicam properties for a thousand clips, but the “Modify” button in the inspector disappears when selecting more than one clip.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy