Notifications
Clear all

[Closed] Get path of a current script?

Ok, I need to get the path of a script which has been running.
For example.
Say a user drops my script into the viewport from say c:. Is there a way to get the location of this script?
As I have a config file that bellongs to the script, but the path can be anything…

2 Replies
1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

In Max 9 and 2008, you can call
getSourceFileName()

Doh, havent upgraded to max 2008 yet …
Anything for max 8?