Scene.getFilename(), App.getSaveFilterMgr().getSavePath() returning empty strings
whitefrozenturkey
Posts: 0
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
It appears App.getLoadSavePath() works, but it would be nice to know how to get the full path of the open file.
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.