Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How to ignore all script error in my .jsx

$
0
0

Hi,  I actually have an specific jsx that only works with an specific .aep. So when i run the script without the .aep open, the ExtendScript Toolkit send me to that window, and i want to ignore all errors or skip one error line and send an alert inside after effects. How can i do that? inside my .jsx.

 

My First Panel GUI Structure is the classic one that "David Torno" share online:

(I will not share all the code because is too much code lines)

 

{

    function myScript(thisObj){

        function myScript_buildUI(thisObj){

            var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette","Panel Estudio Voraz",[10, 10, 300, 300],undefined,undefined,{resizable:true},{borderless:true});

            myPanel.layout.resize();

           

            res = "group{orientation:'column',margins: 0,spacing: 0,\

                          myTabbedPanel: Panel{type:'tabbedpanel',\

                               myTab1: Panel{type:'tab', text:'OpenTag',\

                               topImgGrp: Panel{type:'panel',text:'',\

 

                            myIconButton: IconButton{text:'IconButton',},\

                      },\

                }";

                   

BLABLABLA   TOO MUCH CODE                       

       

            myPanel.grp = myPanel.add(res);

            myPanel.grp.spacing= 0

            myPanel.minimumSize.width = 400

 

            return myPanel;

       

        }

  

   

      

   

        var myScriptPal = myScript_buildUI(thisObj);

       

        if((myScriptPal != null) && (myScriptPal instanceof Window)){

            myScriptPal.center();

            myScriptPal.show();

    }

 

 

}

myScript(this);

}


Viewing all articles
Browse latest Browse all 2143


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>