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

Killing windows (palettes)

$
0
0

Hi there,

Trying to figure out how to kill off a palette (entirely from memory).

Running the code below - first alert is null, the window object does not exist.

When it's run a second time it alerts [object] as the palette remains in memory etc.

So the close() method seems to just hide a palette, how to kill it completely?

 

What is the difference between .close() and .hide()  is essentially my question?

 

Thanks.!

Alan.

 

//=======================================================

var wName = "tester"

 

alert(Window.find(wName ))

var w = new Window("palette", wName , undefined, {name: wName });

 

w.preferredSize=[250,250];

 

var c = w.add("button",undefined,"kill window.");

c.onClick=function(){this.parent.close();}

w.show();

//=======================================================


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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