Notifications
Clear all

[Closed] SDk C++ GetDir 3ds Max System Directories

I’m new to SDK, but I started to learn it. We all know that in Maxscript we have:

getdir #maxroot
getdir #Scripts
getdir #UserScripts

etc.

I found in SDK help

virtual const MCHAR * GetDir (int i)=0
virtual const MCHAR *GetDir(int which)=0;

where 0 might be numbers according to this table:

Max MAX Directory IDs

For example

APP_SCRIPTS_DIR   15
APP_MAX_SYS_ROOT_DIR   20
APP_RENDER_OUTPUT_DIR   21

Please tell me how can I use this function in SDK.

I need a variable

char *b = getdir #APP_RENDER_OUTPUT_DIR

Thank you in advance.

4 Replies

#include <IPathConfigMgr.h> IPathConfigMgr::GetPathConfigMgr()->GetDir(APP_RENDER_OUTPUT_DIR)

are you sure that you know c++?
sorry, but it will very hard for you to develop on c++ max sdk with your current level.

I agree with you, Denis. It will be difficult, but once I understand something well, I can use it. Who knows, may be one day I will know C++ as well )))

Thank you, guruware! It’s working great!