Gui.get_perimeter_vertices() proper use?

As the title states attempting to access a gui pie node called "fuel"
I see I can manipulate vertices with gui.get_perimeter_vertices & gui.set_perimeter_vertices
But I am having a difficult time referencing the node , what is correct sytax use for these?

gui.get_perimeter_vertices(“fuel”) returns nothing.

I am in a gui_script file.

thanks

1 Like

Hm looks like the documentation is missing info on the argument list for that function, but I would guess the first argument is the node… So try calling gui.get_node(“fuel”) and using that as the argument.

This function might be of interest as well: gui.set_fill_angl()

self.fuel_node = gui.get_node(“fuel”)
local vertices = gui.get_perimeter_vertices(self.fuel_node)
if vertices ~= 0 then
pprint(vertices)
end

This gets me what I need.

But attempting to set…

What I am attempting is a fuel gauge, removing 1 vertices every minute