Yesterday I learned that there is another way of executing scripts on start-up besides usersetup.py and usersetup.mel. If you create a Maya Module (for example “TestModule”) and add a mel file in the scripts folder caller “_load.mel” (so “TestModule_load.mel”) it will be execute as on start-up like a usersetup.mel. The Maya BonusTools work that way. I did not find any documentation on that, so I thought I’d share it here and see if anybody else has seen this or might have more info on that.
I already posted this in the Tech-Artist Slack channel and we found that this might be a potential security issue. So I’d thought to post it here as well so it gets some exposure.
PS: If that would be an official documented feature I would actually kinda like it, since it would not interfere with the usersetup.mel and would make more sense naming wise inside a Maya module.