Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions List Box Extendscript question in AE CS5?

  • List Box Extendscript question in AE CS5?

    Posted by Billy Sides on October 19, 2011 at 3:55 am

    I need to know what item is selected in a list box, but I’m not sure what to ask for…
    For example if I want to know what the value of a slider is all I have to do is type something like:
    var myVar = my_palette.grp.mySlider.mySLD.value;
    Same goes for a text box I just ask for the info like this:
    var myVar = my_palette.grp.myTxtBx.myText.text;
    but I’m not sure how to ask the list box for it’s info…searched HIGH and low…
    This is what I’m trying:
    var myVar = my_palette.grp.myDD.selection;
    var myVar = my_palette.grp.myDD.myLst.value;
    var myVar = my_palette.grp.myDD.myLst.item;

    Tried several other variations but without any success.

    Appreciate your help!,

    -bsides

    Billy Sides replied 14 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 19, 2011 at 7:05 am

    I believe it’s like this:

    yourlistbox.selection.index

    Dan

  • Billy Sides

    October 19, 2011 at 2:36 pm

    Yes!!!…got something, it returns a number. I think I can use that and just set up an if statement. I was hoping for the actual text, but I think I can make due with that.

    Thanks Dan!

    -bsides

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