[Closed] Super simple Question… i think
How can i access the name of the file i’m working Via maxscript?
I need to know the name so i can identify it on the manager after is sent to net render.
I appreciate if anyone knows this, i have been looking through the maxscript help and i cant seem to find such a simple thing.
Thanks in advance.
M.
Do you mean the MAX Scene file name?
The system global variable containing it is maxFileName, and the path is in maxFilePath.
There is even a Frequently Asked Questions entry for this in the Help, because it comes up often – see “How do I get the file name of the current scene?”
Thanks Bobo,
It seems like so simple, but i had never used it/needed it until now, i could not find it on the maxscript help to save my life. I knew there had to be a simple answer to it. now i can move forward with my script.
(i did a Google search while waiting for help and realize im not the first to be looking for it)
Best,
M.
I can see how it can be tricky to locate. Will try to improve it for the next release.
It’s a little offtopic, but Bobo, can I just say a big thank you for pointing out the FAQ in the help? I hadn’t read those for some reason, and I thought I’d just flick through them to see if there was anything I had missed over the years.
Turns out, there totally is: don’t use the return statement! I adjusted one of my many functions that used return, and it became 6 times faster just like that! I am definitely gonna go over all my performance critical functions tomorrow and get rid of those time wasters!