Skip to main content
Alan_AEDScripts
Inspiring
December 9, 2013
Question

Color Labels

  • December 9, 2013
  • 2 replies
  • 4957 views

What kind of data are label colors being saved as in prefs ?

I know this was discussed in a post but can't find the exact post....

Thanks

Alan.

"Label Color ID 2 # 1" = FFB60505

          "Label Color ID 2 # 10" = FF8E","9A

          "Label Color ID 2 # 11" = FFC8"~"0C

          "Label Color ID 2 # 12" = FF7F"E*"

This topic has been closed for replies.

2 replies

zsaaro
Inspiring
April 21, 2022
Legend
December 10, 2013

I would assume string given that prefs can be saved or retrieved via these methods:

app.preferences

     .deletePref()

     .getPrefAsBool()

     .getPrefAsFloat()

     .getPrefAsLong()

     .getPrefAsString()

     .havePref()

     .reload()

     .savePrefAsBool()

     .savePrefAsFloat()

     .savePrefAsLong()

     .savePrefAsString()

     .saveToDisk()

Alan_AEDScripts
Inspiring
December 11, 2013

Thanks David, but I am trying to figure out how the colours are represented in these strings, don't recognise the data format...

thanks.

Legend
December 11, 2013

Ah, gotcha. They look encoded somehow, instead of hex values. I was getting strange results retrieving them with getPrefAsString().