getEndIdx
Definition
-- @/lua/ge/extensions/core/paths.lua:88
local function getEndIdx(path)
if path.looped then
return #path.markers
else
return #path.markers - 1
end
end
Callers
@/lua/ge/extensions/core/cameraModes/path.lua
local nextTime = self:getGlobalTime(path, n3, path.looped)
while self.camT > nextTime and self.ctrlPoint <= core_paths.getEndIdx(path) - 1 do
if self.customData and self.customData.onNextControlPoint then
-- restarting when reached the end
if self.ctrlPoint >= core_paths.getEndIdx(path) - 1 and self.camT >= nextTime then
self.ctrlPoint = 0
@/lua/ge/extensions/editor/camPathEditor.lua
local camPos = core_camera.getPosition()
for i = 1, core_paths.getEndIdx(path) do
local n1, n2, n3, n4 = core_paths.getMarkerIds(path, i)