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.