No internet connection
  1. Home
  2. Macro and Script Help

create / convert fades won't work after update to pt 22.6

By Daniel Perez @daniel_perez
    2022-07-08 03:20:39.649Z

    Title

    create / convert fades won't work after update to pt 22.6

    What do you expect to happen when you run the script/macro?

    create / convert fades

    Are you seeing an error?

    after update to pt 22.6 script stopped working

    What happens when you run this script?

    script won't work anymore after update to pt 22.6

    How were you running this script?

    I used a keyboard shortcut within the target app

    How important is this issue to you?

    5

    Details

    {
        "inputExpected": "create / convert fades",
        "inputIsError": true,
        "inputError": "after update to pt 22.6 script stopped working",
        "inputWhatHappens": "script won't work anymore after update to pt 22.6",
        "inputHowRun": {
            "key": "-Mpfwh4RkPLb2LPwjePT",
            "title": "I used a keyboard shortcut within the target app"
        },
        "inputImportance": 5,
        "inputTitle": "create / convert fades won't work after update to pt 22.6"
    }

    Source

    //Activate Pro Tools
    sf.ui.proTools.appActivate();
    sf.ui.proTools.invalidate();
    
    sf.ui.proTools.menuClick({
        menuPath: ["Edit","Fades","Create..."],
    });
    
    sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.is('Fade Preset Toggle').allItems[0].elementClick(); ///0-4 is presets 1-5
    
    sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.is("OK").first.elementClick();
    
    

    Links

    User UID: qxvuxIROjqhCgyum17n87NP7TKo2

    Feedback Key: sffeedback:qxvuxIROjqhCgyum17n87NP7TKo2:-N6Qoi3_DKH07FsnTR9d

    Feedback ZIP

    Solved in post #5, click to view
    • 6 replies
    1. Daniel Perez @daniel_perez
        2022-07-08 03:22:33.616Z
        1. I'm not updated so I can't test it, but I think this discuses a similar problem where all preset 1-5 buttons are affected.

          1. In reply todaniel_perez:

            i THINK someone on the forum said that in new PT the code for presets changed a bit.

            
            //Activate Pro Tools
            sf.ui.proTools.appActivate();
            sf.ui.proTools.invalidate();
            
            sf.ui.proTools.menuClick({
                menuPath: ["Edit","Fades","Create..."],
            });
            
            sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.is("Preset Toggle 1").first.elementClick();
            
            sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.is("OK").first.elementClick();
            

            I can't test it as I've not updated. But give this a whirl and see if it works? Or maybe you can check the code in that other forum post and tweak.

            Best of luck,
            Owen

            1. You can easily modify the old script by changing the is property to the contains property:

              //Activate Pro Tools
              sf.ui.proTools.appActivate();
              sf.ui.proTools.invalidate();
              
              sf.ui.proTools.menuClick({
                  menuPath: ["Edit","Fades","Create..."],
              });
              
              sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.contains('Fade Preset Toggle').allItems[0].elementClick(); ///0-4 is presets 1-5
              
              sf.ui.proTools.windows.whoseTitle.contains('Fade').first.buttons.whoseTitle.is("OK").first.elementClick();
              
              Reply2 LikesSolution
          2. In reply todaniel_perez:
            Daniel Perez @daniel_perez
              2022-07-09 13:46:00.672Z

              how often you just need to extend a crossfade across tracks?