VE Lua Documentation

Press F to search!

getCurrentPath

Definition


-- @/lua/common/utils.lua:1092

path.getCurrentPath = function()
  local dirname, filename = path.split(debug.getinfo(2).short_src)
  return dirname
end

Callers

@/lua/ge/extensions/editor/rallyEditor/pacenotes.lua
function C:getRacePath()
  return editor_raceEditor.getCurrentPath()
end
@/lua/ge/extensions/editor/barriersEditor.lua
            if im.MenuItem1("Add Selection to Race Editor") then
              local path = editor_raceEditor.getCurrentPath()
              local contained = {}
            if im.MenuItem1("Set Selection exactly to Race Editor") then
              local path = editor_raceEditor.getCurrentPath()
              local contained = {}
            if im.MenuItem1("Copy Selection from Race Editor") then
              local path = editor_raceEditor.getCurrentPath()
              local contained = {}
@/lua/ge/extensions/gameplay/rally/tools/devTools.lua

--   local racePath = editor_raceEditor.getCurrentPath()
--   if not racePath then

--   local notebookPath = editor_rallyEditor.getCurrentPath()
--   if not notebookPath then
function C:calculateCorners()
  local currentPath = editor_rallyEditor.getCurrentPath()
  if not currentPath then
    if im.Button("Generate Pacenotes") then
      if editor_rallyEditor and editor_rallyEditor.getCurrentPath() then
        local currentPath = editor_rallyEditor.getCurrentPath()
      if editor_rallyEditor and editor_rallyEditor.getCurrentPath() then
        local currentPath = editor_rallyEditor.getCurrentPath()
        if currentPath and currentPath.generatePacenotes then
      if im.Button("Ok", im.ImVec2(120,0)) then
        local currentPath = editor_rallyEditor.getCurrentPath()
        if currentPath then
    if im.Button("Generate Elevation Profile") then
      if editor_rallyEditor and editor_rallyEditor.getCurrentPath() then
        local pacenotesWindow = editor_rallyEditor.getPacenotesWindow()