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

Can't place button to needed position.

$
0
0

Hello! Please help with my little ui building trouble)

I have a tabbed panel and one little button. And i can't set correct position for this controls. I attach a picture with explanation and copy part of my definition panel code.

function buildUI(thisObject)

    {

        var myPanel = (thisObject instanceof Panel) ? thisObject : new Window("palette", "MyScript", undefined);

            myPanel.orientation = 'column'; // ?

            myPanel.alignChildren = ['fill', 'top'];

        var buttonAbout = myPanel.add('button', [0, 0, 20, 20], '?');

            buttonAbout.alignment = ['right', 'top']; //?

        var tabbedPanel = myPanel.add('tabbedpanel', undefined, '');

            tabbedPanel.orientation = 'column'; //?

            tabbedPanel.alignChildren = ['left', 'top'];

        ...           

scriptui trouble.png

How i can place my control in needed positions?

P.S.: Sorry for my bad english


Viewing all articles
Browse latest Browse all 2143

Trending Articles



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