title: extendscript after effects 2022 resize the buttons
body: <p>I need to resize my buttons as it is taking up space.</p>
  <p>I draw a custom 6 button mock image onto the original image. I want all my buttons to be layed out like that 3 buttons on each line.</p>
  <p><a href="https://i.stack.imgur.com/rEAYE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rEAYE.png" alt="enter image description here" /></a></p>
  <pre><code>var w = new Window('dialog', &quot;ALL IN ONE TOOLBOX 2022&quot;, u);
      w.orientation = 'column';
      // w.margins = 5;
      // w.spacing = 10;
      w.alignChildren = ['fill', 'fill'];
  myButton =  w.add( &quot;button&quot;, undefined, &quot;Create Solid&quot;, { name: &quot;ok&quot; } );
  myButton0 =  w.add(&quot;button&quot;, undefined, &quot;Create Null&quot;, {name:&quot;ok&quot;});
  myButton1 =  w.add(&quot;button&quot;, undefined, &quot;Create shape&quot;, {name:&quot;ok&quot;});
  myButton2 =  w.add(&quot;button&quot;, undefined, &quot;Parallel light&quot;, {name:&quot;ok&quot;});
  myButton3 =  w.add(&quot;button&quot;, undefined, &quot;Spot Light&quot;, {name:&quot;ok&quot;});
  myButton4 =  w.add(&quot;button&quot;, undefined, &quot;Point Light&quot;, {name:&quot;ok&quot;});
  myButton5 =  w.add(&quot;button&quot;, undefined, &quot;Ambient Light&quot;, {name:&quot;ok&quot;});
  myButton6 =  w.add(&quot;button&quot;, undefined, &quot;Regular Light&quot;, {name:&quot;ok&quot;});
  myButton7 =  w.add(&quot;button&quot;, undefined, &quot;Create Camera&quot;, {name:&quot;ok&quot;});
  myButton8 =  w.add(&quot;button&quot;, undefined, &quot;Create Ajustment&quot;, {name:&quot;ok&quot;})
  </code></pre>
  <p>i even added this dont work still remains same</p>
  <pre><code>myButton =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Create Solid&quot;, {name:&quot;ok&quot;});
  myButton0 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Create Null&quot;, {name:&quot;ok&quot;});
  myButton1 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Create shape&quot;, {name:&quot;ok&quot;});
  myButton2 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Parallel light&quot;, {name:&quot;ok&quot;});
  myButton3 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Spot Light&quot;, {name:&quot;ok&quot;});
  myButton4 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Point Light&quot;, {name:&quot;ok&quot;});
  myButton5 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Ambient Light&quot;, {name:&quot;ok&quot;});
  myButton6 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Regular Light&quot;, {name:&quot;ok&quot;});
  myButton7 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Create Camera&quot;, {name:&quot;ok&quot;});
  myButton8 =  w.add(&quot;button&quot;, [50, 30, 150, 60], &quot;Create Ajustment&quot;, {name:&quot;ok&quot;});
  </code></pre>