Scene.getFilename(), App.getSaveFilterMgr().getSavePath() returning empty strings

I'm trying to get the path of the currently open scene file (which I have saved to disk so the file path should be known). Here's what I've tried:

function msg(m)
{
MessageBox.information(m, "", "&OK;");
}

msg("Scene.getFilename()="+Scene.getFilename());
msg("App.getSaveFilterMgr().getSavePath()="+App.getSaveFilterMgr().getSavePath());

These both print out empty strings. Is there some kind of initialization I have to do first to get these calls to work?

Post edited by whitefrozenturkey on

Comments

  • edited December 1969

    It appears App.getLoadSavePath() works, but it would be nice to know how to get the full path of the open file.

  • Richard HaseltineRichard Haseltine Posts: 96,867
    edited December 1969

    Should be working by the DS3 docs, and isn't for me either. It looks like a bug. Please report it in case I forget to.

Sign In or Register to comment.