I would like to position the playhead in the center of a clip #3209
Replies: 2 comments
-
Owww... good question. I don't think there's any easy way to do this, however, this might point you in the right direction: I'll have a proper look at this when I get a chance. |
Beta Was this translation helpful? Give feedback.
-
great, I managed to get the ClipNavigation plugin working, I wrote the command to run the command: |
Beta Was this translation helpful? Give feedback.
-
cp.apple.finalcutpro:launch() --open FCPX
cp.apple.finalcutpro:selectMenu({"Window", "Go To", "Timeline"}) -- select timeline
cp.apple.finalcutpro:doShortcut("SelectClip"):Now() -- select clip
local selectedClip = cp.apple.finalcutpro.timeline.selectedClips[1] -- error: [string "--cp.apple.finalcutpro:doShortcut("GoToTimeli..."]:7: attempt to call a nil value (method 'selectedClips')
local clipStart = selectedClip:getStartingTime()
local clipDuration = selectedClip:duration()
local clipCenter = clipStart + (clipDuration / 2)
cp.apple.finalcutpro:movePlayhead(clipCenter)
Beta Was this translation helpful? Give feedback.
All reactions