How to change color of "value text color" via LUA ?

Home Forums General Programming How to change color of "value text color" via LUA ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6030
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      For modulators and combo ?

       

      SetValueTextColor ?

      • This topic was modified 11 years, 3 months ago by zeoka.
      • This topic was modified 11 years, 3 months ago by zeoka.
      #6034
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        All colors are property, so get the component from the panel and set it’s property, you can always peek at the properties in the Utils tab in the XML to see the names.

        #6035
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          Ok i’ve found the name of the parameter i want in utility ! all is here

          panel:getModulatorByName(“Sound Select 01”):getComponent():setPropertyInt(“uiComboTextColour”, ff000000)

          I’ve tried this but it seems the way i typed value is wrong

          Any idea ?

          #6036
          zeoka
          Participant
            • Topics: 73
            • Replies: 466
            • Total: 539
            • ★★★

            In same time 🙂 !

            #6042
            atom
            Keymaster
              • Topics: 159
              • Replies: 2945
              • Total: 3104
              • ★★★★★

              It’s not an int it’s a string, try setPropertyString and set the coulor as a string parameter, it makes a big difference otherwise you get a 32bit number as a property and it has to be a hex encoded string.

              • This reply was modified 11 years, 3 months ago by atom.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • The forum ‘Programming’ is closed to new topics and replies.
            There is currently 0 users and 105 guests online
            No users are currently active
            Forum Statistics
            Threads: 2,495, Posts: 17,374, Members: 77,605
            Most users ever online was 12 on January 22, 2019 3:47 pm
            Ctrlr