Notifications
Clear all
[Closed] SDk C++ GetDir 3ds Max System Directories
Sep 22, 2018 4:56 am
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:
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
Sep 22, 2018 4:56 am
#include <IPathConfigMgr.h> IPathConfigMgr::GetPathConfigMgr()->GetDir(APP_RENDER_OUTPUT_DIR)
Sep 22, 2018 4:56 am
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.
Sep 22, 2018 4:56 am
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 )))