Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scripting interface question

  • Scripting interface question

    Posted by Filip Vandueren on February 12, 2007 at 3:45 am

    Hi guys,

    I’m working on a script that has a UI in a dialog window, with some radio controls, some buttons that flip to other ‘hidden’ prefpanes with more controls, and a text-entryfield.

    The final ‘OK’ button should be the default-button. It has it’s function attached to the onClick handler.

    win.defaultElement = win.stacker.main.b;
    win.defaultElement.onClick = storeScene;

    But when I hit enter, the dialog just closes without executing any code.
    Clicking the button does work just fine.

    Hitting Cancel also closes the window without executing code, which is to be expected.

    Even if I create no defaultElement (so the button doesn’t highlight / glow blue in os X) the window still closes when I hit Enter.
    As if it’s automatically also the cancelElement ?

    any thoughts ?

    Filip Vandueren replied 19 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy