No internet connection
  1. Home
  2. How to

How to activate preroll and go into record

By Duncan Campbell @duncancam
    2019-03-15 10:48:11.615Z

    Has anyone tried a script that will:
    activate pre-roll and go into record
    then when stop is pressed, pre roll is deactivated.
    I feel like this would be very useful when recording foley. I would use my streamdeck to trigger
    Thank you!

    Solved in post #2, click to view
    • 5 replies
    1. Hi @duncancam.

      Thank you for posting!

      Here's a script that will enable Pre-Roll, Record Enable and Start Playback (start recording):

      
      //Enable Pre Roll
      var preRollBtn = sf.ui.proTools.mainWindow.transportViewCluster.transportDisplay.preRollEnableButton;
      if (preRollBtn.value.invalidate().value != 'Selected') preRollBtn.elementClick();
      
      //Record Enable
      sf.ui.proTools.mainWindow.transportViewCluster.transportButtons.recordEnableButton.elementClick();
      
      //Play to start record
      sf.ui.proTools.mainWindow.transportViewCluster.transportButtons.playButton.elementClick();
      

      Here's a script to disable pre-roll and hit stop:

      
      //Stop
      sf.ui.proTools.mainWindow.transportViewCluster.transportButtons.stopButton.elementClick();
      
      //Disable Pre Roll
      var preRollBtn = sf.ui.proTools.mainWindow.transportViewCluster.transportDisplay.preRollEnableButton;
      if (preRollBtn.value.invalidate().value == 'Selected') preRollBtn.elementClick();
      
      
      Reply1 LikeSolution
      1. Another beauty is since this doesn't involve keyboard/mouse interaction it will work even if Pro Tools is not in focus.

        1. DDuncan Campbell @duncancam
            2019-03-16 09:57:27.367Z

            Guys this is so exciting - thank you so so much :)
            I wonder if with the Record command if it's possible that when pressed during recording it will stop and record from the same in point again - basically repeat the action. This would mimic the fairlight xynergi style recording of "record again". I am a pro tools user but have recorded a lot of foley on the Xynergis and love the Record section of that system.
            Currently when I press the button during recording it will do the same action but won't drop into record.
            But if this is something that isn't really possible on one command the two above that have been written work perfectly!
            Thank you so much for your time :)
            Peace
            Duncan

            1. Yay!
              Just to clarify what you mean - By repeating from the same point, would it then (when hitting record when still recording):

              1. Stop (Pro Tools automatically goes back to where you started)
              2. Start recording (Keeping pre roll settings)
              1. DDuncan Campbell @duncancam
                  2019-03-16 20:09:08.652Z

                  Yes that's right Christian :)