Notifications
Clear all

[Closed] path of the running script?

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

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()

Ooh that makes life much easier, thanks.