Quantcast
Channel: Adobe Community : Unanswered Discussions - After Effects
Viewing all articles
Browse latest Browse all 30854

preferredSize() doesn't work!

$
0
0

Hi everyone,

I'm writing a scriptUI, and I need to set a preferredSize for my UI elements.

If I set win.layout.layout(true), then set a preferredSize for a panel or group, it won't work.

I know that the AutoLayoutManager resize the container, but how can I make the preferredSize work without set win.layout.layout(false)?

 

And another thing, if I set win.layout.layout(true), then set a preferredSize for an element which is not a container, then run the script from ExtendScript Tollkit, the preferredSize works fine, but if I save the script to After Effects' scripts folder, run it from After Effects, the preferredSize doesn't work anymore.

Does anyone ever met the same problem?

Any idea why this is happening?

 

Thanks

Zhiqiang Li


Viewing all articles
Browse latest Browse all 30854

Trending Articles



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