Ok guys.

Ok guys. I’ve been banging my head against the wall here. I want to use a script to set a dynamic text object to all capital letters. Seems simple enough, (as I’m sure it is), but after reading I’m still lost. I figured I would need the item ID, #000009. Any clue’s?

]]>

3 Commentsto Ok guys.

  1. Anonymous says:

    < ![CDATA[

    Modifying dynamic text label is not really supported because its value may change at any time. But you can do that with a normal shortcut:


    first you need to get the container for the item. Usually this is the current desktop:


    var container = LL.getCurrentDesktop()


    To get the item you need to replace # with 0x in the id (Javascript syntax):


    var item = container.getItemById(0x00000009);


    Then you can get the label or change it this way:


    var label = item.getLabel();


    var new_label=label.toUpperCase()


    item.setLabel(new_label);

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Couldn’t you change the font to an all caps font?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Pierre Hébert ok, that actually makes me feel a little better! I had seen the script for changing all labels in a container, and figured a “regular” item out, but could not figure out a dynamic text item. Olin James​, That’s a great idea, and it had crossed my mind, but the font I’m using has some unique attributes, and I honestly thought I was too ignorant to figure out something relatively basic. I can live with only the first letter capitalized. Thanks to both of you for your input!

    ]]>

Leave a Reply

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