Meaning of geo.x in osc.lua file #14915
Replies: 3 comments
-
Still interested if anyone knows about this or where I can find information about something like this. |
Beta Was this translation helpful? Give feedback.
-
If the OSC you're working with is following the usual standard, before that code you should find a local geo = {
x = 0,
y = 0,
an = 1,
w = 0,
h = 0,
}
That is correct. Think of them as measurements to assign where the element would be from all sides. If I may suggest something, to not re-invent the wheel, since you want it centered, I'd recommend checking the official It is essentially what you want, centered. You can then adjust, add or remove elements as you like, and it is well commented for you to understand what each variable or function does. For example, from -- Classic box layout
layouts["box"] = function ()
local osc_geo = {
w = 550, -- width
h = 138, -- height
r = 10, -- corner-radius
p = 15, -- padding
} |
Beta Was this translation helpful? Give feedback.
-
@Samillion
Confusing because of the "nil" values and the "an" values? not sure why done this way/what these mean? So all the items that say "geo" such as geo.x and geo.y are referring to this this "local osc_geo = " The question I have though is all the items that use these "geo" references all just say geo.x geo.y Anyways, again I apologize for all the replies, hard to explain all of this. |
Beta Was this translation helpful? Give feedback.
-
I have been trying to make some modifications to the “bottombar” layout in the osc.lua file.
I am trying to figure out how to center the default timecode + seekbar + timecode but I am having trouble doing so.
I was wondering does anyone know what / where the "geo." items originate from?
Such as geo.x & geo.y
I am assuming that geo = geometry and x & y are coordinates but I do not know where these originate from / what are they referencing?
Here are some code examples that use them......
Does anyone have any information they can share about these "geo" based items?
Thank You
Beta Was this translation helpful? Give feedback.
All reactions