I'm new to lua and struggling with the syntax a bit. How does one go about reading the response table from a vec3 in DU?
for example, I'd like to know the r value of a lights color...
I used this post to set the value of rgbColor and lua documentation said the vec3 is returned as vec3(x,y,z)
I am fairly familiar with C# and VB.net and automate CAD software for a living, my limited experience outside my hyper focused skillset is really showing, so I'm sorry if this seems like a dumb question.
example of code I've tried:
local rgbColor = vec3(light.getRGBColor())
local r = rgbColor[x]
system.print(r)