Label text color doesn't appear to work

Forum for OctaneRender Lua scripting examples, discussion and support.
Post Reply
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

I'm trying to setup a label that is colored, but when I set the color Octane will not display the label. I'm passing textColour = { 10, 60, 255, 0 }, is this correct? Thanks,

Jason
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Hi Jason,

The label is fully transparent (i.e. the alpha is 0). Here's an example snippet:

Code: Select all

local label = octane.gui.create{ type = octane.gui.componentType.LABEL, textColour={255, 0, 0, 255 }}
local window = octane.gui.create{ type = octane.gui.componentType.WINDOW, width = label.width, height = label.height, children = { label } }
window:showWindow()
cheers,
Thomas
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

*Sigh* I knew it was something stupid, thanks. :D
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
Post Reply

Return to “Lua Scripting”