5 Replies Latest reply on Dec 7, 2016 9:57 PM by n.abola

    How to access the Premiere Pro clipboard?

    TTTipsy Level 1

      I'm not sure if I need to use the SDK for this or not.

       

      Basically, I want to be able to COPY many different items from Premiere, like presets, transitions, and clips... into the clipboard, one at a time, and then SAVE all of that clipboard information somewhere where it won't get overwritten when the next thing is copied onto the clipboard.

       

      Then I'm going to program a system (probably using AutoHotKey) where any particular item can be recalled and placed back into the active clipboard, then pasted straight into Premiere like normal.

       

      This would allow me to use custom keyboard shortcuts to instantly apply any effect I want, any transition I want, and any group of clips that I want to the timeline... incredibly easily and flawlessly.

       

       

      I've tried using autohotkey's clipboardAll() function, (Clipboard and ClipboardAll) but it doesn't work for items copied in Premiere... only for text and pictures and things like that. It looks to me like Premiere has its own special clipboard that it uses for more complicated things like copying effects or clips off of the timeline.

       

      So again, my question is, how do I access the Premiere Pro clipboard? Where is that file located in Windows? I searched through all the Premiere AppData files and I didn't see anything that looked like clipboard information... I'm not even sure if that's the right place to look.

       

      I downloaded the SDK, but I don't see any information about the clipboard in the included help file, so I don't know if the SDK would be useful for this.

       

      I would be so, so grateful if anyone could help me with this. I'm a video editor, not a programmer, so this stuff is not very easy for me.

        • 1. Re: How to access the Premiere Pro clipboard?
          Bruce Bullis Adobe Employee

          There is no way to access the Premiere Pro clipboard, in the manner you described.

           

          What do you want to DO, with those items you'd like to copy? Perhaps there's another way.

          • 2. Re: How to access the Premiere Pro clipboard?
            TTTipsy Level 1

            Sorry, but I had to un-mark your answer as correct, because I did figure out how to access the clipboard. You can see exactly what I used it for, in the following video:

             

            Save any SELECTED CLIPS as a "PRESET" in Premiere Pro! - YouTube

             

            Technically speaking, I merely intercepted the data as it went on its way to Premiere's internal clipboard. (or however it works!)

             

            Now that I have your attention, though, I'd like to hear your opinion on this new, related question: Is there any way to save a transition as a preset, so that I can recall it later with a single keyboard shortcut?

             

            I know that the answer is "no, that feature does not exist, please file a feature request..." but as you can see from my video, I'm already finding ways to do things in Premiere that I've been told are impossible. Also, I already filed a request... more than a year ago.

             

            So is there any way you can think of that I can HACK Premiere so that I can save a transition preset? Perhaps using the clipboard, perhaps not? Or, hey! Is it possible to control Premiere actions from the command line? Or is it possible to VIEW all of the changes that Premiere is making to the computer as they happen? I'm just looking for anything I can use, here!

             

            Here is my latest post on the subject: UPDATE: I figured out how to access Premiere's clipboard... Now I'm trying to save and recall custom transitions.

            • 3. Re: How to access the Premiere Pro clipboard?
              Bruce Bullis Adobe Employee

              > Sorry, but I had to un-mark your answer as correct, because I did figure out how to access the clipboard.


              Sniffing the OS clipboard doesn't give you 'presets, transitions, and clips', which is what you requested, above. Glad your solution works, for you; seems very susceptible to any change to the data PPro puts on the OS clipboard.


              > Is there any way to save a transition as a preset, so that I can recall it later with a single keyboard shortcut?


              As you correctly surmised, still 'No'.


              > I know that the answer is "no, that feature does not exist, please file a feature request..."


              Actually, I wasn't going to ask you to do so, as I'm already familiar with the existing request. You're right, it's an old request.


              > So is there any way you can think of that I can HACK Premiere so that I can save a transition preset?


              No. Since such behavior would necessarily be unsupported and fragile, any public speculation on my part about doing so would be irresponsible, and might be misinterpreted as endorsing such hackery.

               

              > Is it possible to control Premiere actions from the command line?


              Premiere Pro can be configured to execute ExtendScripts, from the command line. What is it you want to make PPro DO, from the command line?


              > Or is it possible to VIEW all of the changes that Premiere is making to the computer as they happen?


              I'm not sure what 'changes to the computer' you mean...?

              • 4. Re: How to access the Premiere Pro clipboard?
                TTTipsy Level 1

                Unfortunately, I'm not sure what I mean, either. I am NOT a programmer by trade, and I DON'T know what I'm talking about half the time. I'm a video editor. To add these missing features to Premiere, I'm bodging and kludging together the best solutions I can come up with as I stumble about, using the limited knowledge that I have. So far it's actually worked pretty well - autohotkey makes it easy to do a lot of different things.

                 

                If Premiere was open source and I could see all the bare code and make modifications to it, I could also probably figure out how to add some of these features by myself -- the keyboard shortcut requests that I mention in this series of videos would be particularly easy to add, even for me. But of course, Premiere going open source will never, ever happen.

                 

                I didn't expect that you'd be willing to give me help on hacking Premiere to add things like transition presets, but hey, I figured I would ask anyway. at this point, I'm just running out of ideas!

                 

                Since you work at Adobe, the most helpful thing you could do would be to get this feature (among others) officially added to the program.

                • 5. Re: How to access the Premiere Pro clipboard?
                  n.abola

                  Autohotkey script: shift+1 - copy, ctrl+1 - paste.

                  If it will buggy increase sleep time in Paste(clipboardID) function.

                   

                  #WinActivateForce

                  SetBatchLines, -1

                  SetWinDelay, -1

                   

                  +1::Copy(1)

                  ^1::Paste(1)

                   

                  +2::Copy(2)

                  ^2::Paste(2)

                   

                  +3::Copy(3)

                  ^3::Paste(3)

                  return

                   

                   

                  Copy(clipboardID)

                  {

                     global

                     ClipBoard := ""

                     Send, ^{vk43} ; Ctrl + C

                     ClipWait, 1, 1

                     if ErrorLevel = 1

                     {

                        MsgBox, ClipBoard is empty

                        return

                     }

                     FileDelete, ClipBoard%clipboardID%

                     FileAppend, %ClipBoardAll%, ClipBoard%clipboardID%

                     return

                  }

                   

                  Paste(clipboardID)

                  {

                     loop 2

                     {

                        WinActivate, ahk_class Shell_TrayWnd          ; deactivate Premiere

                        WinWaitActive, ahk_class Shell_TrayWnd

                        sleep 50

                        If A_Index = 1

                           ClipBoard := ""

                        Else

                           FileRead, ClipBoard, *c ClipBoard%clipboardID%

                        WinActivate, ahk_class Premiere Pro           ; activate Premiere

                        WinWaitActive, ahk_class Premiere Pro

                        sleep 50

                        Send ^{vk56}   ; Ctrl + V

                     }

                     return

                  }