You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locallog=require"hs.logger".new"matchframe"localfcp=require"cp.apple.finalcutpro"localjust=require"cp.just"localwait=just.waitfcp:selectMenu({"Mark", "Go to", "Range Start"})
wait(0.5)
---------------------------------------------------------------------------------- Store the originally-selected clips:--------------------------------------------------------------------------------localcontents=fcp.timeline.contentslocaloriginalSelection=contents:selectedClipsUI()
localmenuBar=fcp.menu---------------------------------------------------------------------------------- If nothing is selected, select the top clip under the playhead:--------------------------------------------------------------------------------ifnotoriginalSelectionor#originalSelection==0thenlocalplayheadClips=contents:playheadClipsUI(true)
contents:selectClip(playheadClips[1])
elseif#originalSelection>1thenlog.ef("Commit Multicam: More than one clip is selected. Please select a single clip and try again.")
playErrorSound()
returnend---------------------------------------------------------------------------------- Get Multicam Angle:--------------------------------------------------------------------------------localmulticamAngle=cp.plugins("finalcutpro.timeline.matchframe").getMulticamAngleFromSelectedClip()
ifnotmulticamAnglethenlog.ef("Commit Multicam: The selected clip is not a multicam clip.")
playErrorSound()
contents:selectClips(originalSelection)
returnend---------------------------------------------------------------------------------- Open in Angle Editor:--------------------------------------------------------------------------------ifmenuBar:isEnabled({"Clip", "Open in Angle Editor"}) thenmenuBar:selectMenu({"Clip", "Open in Angle Editor"})
elselog.ef("Commit Multicam: Failed to open clip in Angle Editor.\n\nAre you sure the clip you have selected is a Multicam?")
playErrorSound()
returnfalseend---------------------------------------------------------------------------------- Put focus back on the timeline:--------------------------------------------------------------------------------ifmenuBar:isEnabled({"Window", "Go To", "Timeline"}) thenmenuBar:selectMenu({"Window", "Go To", "Timeline"})
elselog.ef("Commit Multicam: Unable to return to timeline.")
playErrorSound()
returnfalseend---------------------------------------------------------------------------------- Ensure the playhead is visible:--------------------------------------------------------------------------------contents.playhead:show()
---------------------------------------------------------------------------------- Select the correct angle:--------------------------------------------------------------------------------contents:selectClipInAngle(multicamAngle)
---------------------------------------------------------------------------------- Fire off a bunch of menu items:--------------------------------------------------------------------------------wait(0.7)
fcp:selectMenu({"File", "Reveal in Browser"})
wait(0.7)
fcp:selectMenu({"Mark", "Set Range Start"})
wait(1.5)
fcp:selectMenu({"View", "Timeline History Back"})
wait(1.5)
fcp:selectMenu({"Window", "Go To", "Timeline"})
wait(0.5)
fcp:selectMenu({"Mark", "Set Range Start"})
wait(0.5)
fcp:selectMenu({"Edit", "Connect to Primary Storyline"})
It would be great if there was a second option of commit multi-cam that attaches the clip with audio.
It would also be cool if the attached clip would be attached at the first video frame even if the playhead is not parked there.
The text was updated successfully, but these errors were encountered: