Digital Art Zone

 
     
Scene.getFilename(), App.getSaveFilterMgr().getSavePath() returning empty strings
Posted: 23 May 2013 07:00 AM   [ Ignore ]
Member
Rank
Total Posts:  59
Joined  2013-05-11

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?

Profile
 
 
Posted: 23 May 2013 07:09 AM   [ Ignore ]   [ # 1 ]
Member
Rank
Total Posts:  59
Joined  2013-05-11

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

Profile
 
 
Posted: 23 May 2013 07:15 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  14256
Joined  2003-10-09

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.

 Signature 

DAZ Studio Frequently Asked Questions

Index of free DAZ Studio scripts and plugins list

Profile