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

Bug on a dockable GUI

$
0
0

Hi everyone,

 

I just created a dockable GUI for my designers.

 

It works perfectly well on my own computer, but on the others, when I run the script (with Run script... ou Window/myScript.jsx) I have this error : "unable to execute script at line 35. Bad argument - File or Folder does not exist."

 

my line 35 is : myPanel.grp = myPanel.add(res);

 

We have the same version of after effects, the same settings on Preferences/General... and the same computers. So, I really don't understand what it happens, why it works on my computer an not on the 4 others...

 

Here is my menu

 

{

function myScript(thisObj) {

     function myScript_buildUI(thisObj) {

          var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Menu Pitchy", undefined, {resizeable:true});

          res="group{orientation:'column',\

               myPanel1: Panel{text:'Mises à jour', orientation:'row',\

                    myButton01: IconButton{text:'Mise à jour complète', tooltipActive:'Mise à jour complète', image:'D:/PITCHY/Scripts/Images/All.png'},\

                    myButton02: IconButton{text:'Vidéo', image:'D:/PITCHY/Scripts/Images/Video.png'},\

                    myButton03: IconButton{text:'Lignes Text', image:'D:/PITCHY/Scripts/Images/Lignes.png'},\

                    myButton04: IconButton{text:'Info Séquence', image:'D:/PITCHY/Scripts/Images/Info.png'},\

               },\

               myPanel2: Panel{text:'Débug', orientation:'row',\

                    myButton05: IconButton{text:'Layer Style', image:'D:/PITCHY/Scripts/Images/Layer.png'},\

                    myButton06: IconButton{text:'Disable Null', image:'D:/PITCHY/Scripts/Images/Null.png'},\

                    myButton07: IconButton{text:'Code Camembert', image:'D:/PITCHY/Scripts/Images/Codecam.png'},\

                    myButton08: IconButton{text:'Code Position line1', image:'D:/PITCHY/Scripts/Images/Posline.png'},\

               },\

               myPanel3: Panel{text:'Réglages', orientation:'row',\

                    myButton09: IconButton{text:'Rescale Bloc', image:'D:/PITCHY/Scripts/Images/Rbloc.png'},\

                    myButton10: IconButton{text:'Rescale Ligne', image:'D:/PITCHY/Scripts/Images/Rligne.png'},\

                    myButton11: IconButton{text:'Polices', image:'D:/PITCHY/Scripts/Images/Polices.png'},\

               },\

               myPanel4: Panel{text:'Tests', orientation:'row',\

                    myButton12: IconButton{text:'Text 40 car.', image:'D:/PITCHY/Scripts/Images/T40.png'},\

                    myButton13: IconButton{text:'Text 120 car.', image:'D:/PITCHY/Scripts/Images/T120.png'},\

                    myButton14: IconButton{text:'Time Stretch', image:'D:/PITCHY/Scripts/Images/Time.png'},\

               },\

          }";

 

          myPanel.grp = myPanel.add(res);

         

          /*---- My buttons settings ----*/

          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

Trending Articles



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