Notifications
Clear all
[Closed] path of the running script?
Aug 27, 2008 1:04 am
Is it possible to get the path of the running script? for instance, if i’m running a script from say… C:\random_directory\script.ms is there any way for that script.ms to know that its in/from C:\random_directory\ ?
2 Replies
Aug 27, 2008 1:04 am
In 3ds Max 9 / 2008 / 2009, yes; [b]MAXScript Source Filename Access
[/b]
getSourceFileName()
Or for older 3ds Max versions with the AVG extensions (also valid in 9+):
getThisScriptFilename()