I think I've got the trick... the problems are generated by the variables scope, I've resolved declaring at the beggining of the script the variable that will hold the defaul table gotten from the label:
Code:
Local labColor = {}
Then after the label creation I've stored the Fill1 color into this variable liek we have said in the previous post
Code:
Local lab = scui.Get("myLabel")
labColor = lab.Bevel.Colors.Fill1
Finally you can set your color and the restore it using the labColor table
Code:
If a = 0
scui.Set("myLabel", { Bevel = { Colors = { Fill1 = { r = 250, g = 0, b = 0 } } } }, 1 )
Else
scui.Set("myLabel", { Bevel = { Colors = { Fill1 = labColor } }, 1 )
EndIf
Hope this help!
Good night to you, at week end I'm not on PC too

cya
Fabio
P.S.: about your code, you can't write
Code:
scui.Set("myLabel", { Bevel = { Colors = { Fill1 = { labColor } } } }, 1 )
because labColor is already a table, if you write the above code you are declaring a table within a table, it is equivalent to:
Code:
scui.Set("myLabel", { Bevel = { Colors = { Fill1[0] = labColor } } }, 1 )
