[Closed] Script in scene file and run on scene open
Hey!
Im wondering how to get a script to execute when a scene file is opened. I had something like Maya’s scriptnode and “execute on open/close” in mind. Would be an easy way to set up custom rigging scripts in the background without the need to load the maxscript from a seperate file.
Thanks in advance,
Kerbox
Register your script as a filepreopen callback refer to maxscript reference topic General Event Callback Mechanism” for details.
Thanks
Mobeen
There used to be a script that would let you “attach” or “embade” a script to a file .
That ment that the machine that open the file does not have to get the script itself installed, because it would be embadded inside the file, and automatically (or upon request) be executed on demand.
I do not remember the name now, but you would find it on scriptspot for sure.
Ok
i found it
It is called autoexec v0.11 from Martin Breidt
Find it in this page, along with other VERY usefull scripts:
http://www.breidt.net/scripts/
i just used it on 5 and 6 , never tried with the 7 or 8 versions though …