Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions question about slider in UI panel

  • question about slider in UI panel

    Posted by Shahrokh Jahanzadeh on August 25, 2013 at 4:06 am

    hello guys,

    I have another little question…
    As you know we can create a slider in UI panel with scripts
    But I want to know is it possible to connect an expression to the slider???
    for example if we create a panel with codes like this:

    var w = new Window ("dialog");
    var e = w.add ("edittext", undefined, 50);
    var slider = w.add ("slider", undefined, 50, 0, 100);
    var button = w.add("button", undefined, "Connect");
    slider.onChanging = function () {e.text = slider.value;}
    w.show ();

    and now if we want to connect an effect property like Blend with original in Invert effect to that slider, what we must to do???

    Shahrokh

    Shahrokh Jahanzadeh replied 13 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 25, 2013 at 5:06 am

    It the best you could do is have your onChanging event handler function update the property when the slider changes. You can’t connect an expression to it.

    Dan

  • Shahrokh Jahanzadeh

    August 25, 2013 at 7:02 am

    thanks for your reply Dan
    I`m trying to learn scripts and I`m an amateur.
    Can I ask for an example for this one??

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