Forum Replies Created

Page 3 of 3
  • If others are searching or you still need the reference:
    https://jongware.mit.edu/Sui/index_1.html

  • Hi

    I don’t have a full code, but maybe this will help you.
    I would create three different panels, within the one.
    Something like this. “pal” is the base of your panel, how you get that is depending on how your script is put together:


    //Subpanels:
    var panel1 = pal.add("panel", [x, y, x+width, y+height], "panel1");
    var panel2 = pal.add("panel", [x, y, x+width, y+height], "panel2");

    //Add dropdown:
    var dropdown = pal.add("dropDownList", [x, y, x+width, y+height], ["label1", "label2"]);

    //Add event handler for dropdown:
    dropdown.onChange = function()
    {
    switch(dropdown.selection.text)
    {
    case "label1":
    panel1.visible = true;
    panel2.visible = false;
    break;
    case "label2":
    panel1.visible = false;
    panel2.visible = true;
    break;
    }
    }

    Code is untested, but should be about right.

    – Jakob Wagner

  • The expressionist looks great, but I havn’t tried it yet. For longer expressions and scripts, I always use sublime text. It works really great with almost any kind of script.

  • Jakob Wagner

    April 2, 2016 at 9:56 am in reply to: Size of Ellipse

    Sooo.. Sometimes when you post after 2 hours frustration you figure it out 5 mins later. 🙂

    This is the solution:

    l("Contents")("Group 1")("Contents")("Ellipse Path 1")("Size").setValue([300,300]);

    I would still like to hear about that reference though.

  • Jakob Wagner

    June 17, 2015 at 7:58 am in reply to: Removing a effect with script

    That works. Thank you. 🙂

  • Jakob Wagner

    April 12, 2015 at 4:38 pm in reply to: Random seed on multiple layers

    Had the feeling, that would be the only way to do it. I was hoping for a more clean way to do it though.

    But thanks, again. You seem to be the one who answers all my questions no matter which forum. 🙂 I appreciate it.

    – Wagner

  • Jakob Wagner

    October 18, 2013 at 7:09 am in reply to: Accessing x position in a script

    It’s a script, not an expression.

Page 3 of 3

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