-
The script does not work in new versions of AE
Hello.
I’m trying to figure out a little, in writing scripts.
Who can help figure out what the problem is?
I wanted to create a window with a button, by clicking on which,
A window for entering text and another button opens.
After entering the text and clicking on the second button,
the window should close and appear “alert”.
in EST, and in AE to CS6 it works.
And in new versions, the second window closes once,
and all subsequent clicks on the second button, it does not close.
Video:
https://www.youtube.com/watch?v=C02t-iOXsJsvar mw1 = new Window("palette", "Form1", undefined);
var mb1 = mw1.add ("button", undefined, "Button");
var mw2 = new Window("palette", "Form2", undefined);
var mtx = mw2.add ("edittext",undefined, " ", {multiline: true});
mtx.preferredSize=[300,300];
var mb2 = mw2.add ("button", undefined, "Button2");
mw1.show();
mb1.onClick = function myFun1(){
mw2.show();
}
mb2.onClick = function myFun2(){
mw2.close();
if(mtx.text==0){alert ("No text!")}
else
{alert(mtx.text)}
}Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.