Notifications
Clear all

[Closed] [SDK] How to get Scene Name?

I can’t find in the 3ds Max 8 SDK how to retrieve the current active scene filename…

I found this IGame method:

virtual TCHAR* IGameScene::GetSceneFileName( ) [pure virtual]

    Returns:  The current filename

…but surely there is a standard SDK method?

2 Replies
 lo1
virtual MSTR& Interface::GetCurFileName  (    )  [pure virtual] 
 
   
Remarks:
Returns the name of the current MAX file (but not the path). For example, if the currently loaded file is "<b>D:\3DSMAX\SCENES\Expgears.max</b>" this method returns " Expgears.max".  


virtual MSTR& Interface::GetCurFilePath  (    )  [pure virtual] 
 
   
Remarks:
Returns the file and path of the current MAX file. For example, if the currently loaded file is "<b>D:\3DSMAX\SCENES\Expgears.max</b>" this method returns "<b>D:\3DSMAX\SCENES\Expgears.max</b> ".  

Thanks.