Hi guys

Hi guys,

I am changing some variables and properties of objects upon switching to another screen. Changing variables is easy, but I am missing something when it comes to editing the box object. Here are screenshots of the error I am getting and my script.

Another thing I dont seem to get right is accessing an object inside a panel through script. That’s no longer part of the script below though due to the same error. If I can resolve the one below, I might have a better chance of succeeding at getting both right.

Please help me out?

]]>

7 Commentsto Hi guys

  1. Anonymous says:

    < ![CDATA[

    Line 23 :


    var pnlCenter = d.getItemByName(‘varScreenColor’).getProperties().getBox(‘i.box’);

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I don’t get it…


    The name of the panel whose box I want to edit, is “pnlCenterScreen”. The variable in LLX containing the color that needs to be applied to the content element/property of that box, is ” varScreenColor”.


    Why would I use the variable containing the color to reference the name of the panel?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    I know somehow the “getProperties().edit()” also needs to be in that statement, but the following also gives an error stating “the name of the property should begin with a i, s, f or p”.



    var pnlCenter = d.getItemByName(“pnlCenterScreen”).getProperties().edit().getBox(“p.box”);

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Ok, I have managed to get this far without getting any errors…but the colours don’t change. I have been over the API reference dozens of times and I can’t see what is wrong. Is this a bug?


    https://lh3.googleusercontent.com/HK-9hFQ4tuFHTqnLqifre5CXrB50vZjRgZWas0LYTpmleiIqHz5RYfB3b4IRiryXX0ylk0fsbg

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Because you are not commited the editor



    d=LL.getCurrentDesktop();


    p=d.getItemByName(“Test”);


    e=p.getProperties().edit();


    b=e.getBox(“i.box“);


    b.setColor(“c”,”ns”,0xff666666);


    e.commit();

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Rudolph van Coppenhagen​ BTW did you in any way change the font size in the script editor or you are using a tablet?

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Gabriel Garcia​ no I didn’t change the font size. You can pinch ghe screen to zoom in or out to reduce the font size…like you would zoom in or out on a photo.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *