No internet connection
  1. Home
  2. Support

Toggle PreRoll preset not working

By Mark Mangini @Mark_Mangini
    2021-04-12 16:43:29.480Z

    Desired Workflow

    For it to work

    Question

    The Toggle Pre-Roll preset is not working in ProTools this morning. I get this error message: Toggle Pre-Roll failed System:Exception: Parents UIElement was null: at SoundFlow:Shortcuts.Ax.AxNodes.AxNode. RequireP.....

    Command Info

    ID: proTools.transport.preRoll.toggle
    Name: Toggle Pre-Roll
    

    Source

    undefined
    

    Links

    User UID: iG2OvCZJcWSvwDquWBZPmJT3vHc2

    Feedback Key: sffeedback:iG2OvCZJcWSvwDquWBZPmJT3vHc2:-MY5xrCqGIjUZxxgGzoY

    Feedback ZIP

    • 13 replies
    1. Hi Mark,

      I think there's a chance this could be related to your transport view not being visible. Can you share a screenshot of the session (potentially scrolled away from audio so it doesn't reveal any secret info)?

      1. M
        In reply toMark_Mangini:
        Mark Mangini @Mark_Mangini
          2021-04-12 17:17:12.128Z
          Doesn't seem to make a difference if I have the transport window open or not.
          1. It's the Expanded Transport in the top bar it's missing, IIRC:

          2. M
            In reply toMark_Mangini:
            Mark Mangini @Mark_Mangini
              2021-04-12 17:35:32.428Z

              What is IIRC? Does this command only work when the Expanded Transport is displayed? If so, it would be most convenient that not to matter. Is that possible?

              1. MMark Mangini @Mark_Mangini
                  2021-04-12 17:37:07.499Z

                  I turned on Expanded Transport in my PT header and the Macro still doesn't work.

                  1. In reply toMark_Mangini:

                    IIRC = if I recall correctly :)

                  2. M
                    In reply toMark_Mangini:
                    Mark Mangini @Mark_Mangini
                      2021-04-12 17:37:36.061Z
                      1. M
                        In reply toMark_Mangini:
                        Mark Mangini @Mark_Mangini
                          2021-04-12 18:43:53.890Z

                          I have the Expanded Transport showing and the Macro still doesn't work.

                          1. Hi Mark. I think this can happen due to SoundFlow's cache not being correctly invalidated in this case. Restarting SF after you've shown the Expanded Transport should make it work again.
                            I'll log a bug report for this.

                            1. MMark Mangini @Mark_Mangini
                                2021-04-12 19:57:54.495Z

                                Yes. That fixed it. Be great if this Macro did some IF/ELSE work so that if the session was not displaying the Expanded Transport, it simply entered CMND 1 to open the floating transport and enabled/disabled PreRoll. Just to take all the thinking out of whether your session is displaying the way the macro things it should.

                                1. Completely agree!

                                  1. In reply toMark_Mangini:
                                    Kitch Membery @Kitch2021-04-17 01:19:37.845Z

                                    @Mark_Mangini ,

                                    The following script will ensure that the "Expanded Transport" is visible before toggling the Pre-Roll.

                                    I hope that helps. This version is a little more robust than what we implemented the other day on our call.

                                    function openExpandedTransport() {
                                        //Activate Protools Main Window
                                        sf.ui.proTools.appActivateMainWindow();
                                    
                                        const transportViewCluster = sf.ui.proTools.mainWindow.groups.whoseTitle.is("Transport View Cluster").first;
                                        const transportViewDisplay = transportViewCluster.groups.whoseTitle.is("Transport Display").first;
                                    
                                        if (!transportViewDisplay.buttons.whoseTitle.is("Pre-roll enable").first.exists) {
                                            //Ensure Transport Cluster is visible
                                            sf.ui.proTools.transportEnsureCluster();
                                    
                                            //Open Expanded Transport
                                            sf.ui.proTools.mainWindow.buttons.whoseTitle.is("ToolbarOptionsMenu").first.popupMenuSelect({
                                                menuPath: ["Expanded Transport"],
                                            });
                                        }
                                    
                                        //Close Popup Menu
                                        sf.ui.proTools.appActivateMainWindow();
                                    }
                                    
                                    
                                    function main() {
                                        //Open Expanded Transport
                                        openExpandedTransport()
                                    
                                    
                                        const transportViewCluster = sf.ui.proTools.mainWindow.groups.whoseTitle.is("Transport View Cluster").first;
                                        const transportViewDisplay = transportViewCluster.groups.whoseTitle.is("Transport Display").first;
                                    
                                        //Toggle Pre-Roll
                                        transportViewDisplay.buttons.whoseTitle.is("Pre-roll enable").first.elementClick();
                                    }
                                    
                                    main();
                                    
                              • M
                                In reply toMark_Mangini:
                                Mark Mangini @Mark_Mangini
                                  2021-04-17 01:23:32.714Z

                                  Working nicely. Thanks!