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

Issue with icon button title layout

$
0
0

Hi,

 

I am new to After Effects scripting and am struggling with this issue for quite some time. I need to display iconbuttons in a window where the the title of the button should appear below the icon. I am using the below code:

 

var myWin = new Window ("palette", "My Window", undefined, {resizeable: true});

var f = File ("./Assets/im.png");

var iconButton= myWin.add("iconbutton", undefined,  f, {style: 'toolbutton'});

iconButton.title = "Import";

iconButton.titleLayout = {alignment:['center', 'bottom']};

myWin.show();

 

This works fine when I test it in ESTK. But the moment I run the script from within After Effects, the title shifts to the left of the icon. I am not sure what am I missing here. Any help would be highly appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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