That's because the start up scripts are evaluated after macroscripts as described in the link Monster provided. You should put your start up scripts in a local folder on your computer and then add that path to the Customize > Configure System Paths > 3rd party tab dialog and restart max. Your start up script will then load…
You can add macros into that directory if you would like to but be careful if your doing this for a team of artists and the folder is on a shared network. If another artist right clicks the macroscript in the customize dialog and chooses "Edit Macrosript File" they could potentially change the one on the network and not…
Hello Bryan, thanks so much for your advice and time reading and answering my question :) Yeah, I know I'm probably won't creating script that will be used by many people, mostly my script will be just to support my personal modeling need and workflow, so it will be revolve around editable poly/edit poly/ unwrap uv/…
Revel: Miauu is saying that you are resetting the global values to empty bitarrays every time you run the script, thus losing the previously save selection set. If you just define the global at the top of the script instead of assigning values to it then it wont be overridden every time you run it. The "BA" at the end…
Alright, thanks Bryan, you are a genius! :) Found something that doesn't work with the previous code and manage to make it to work properly, but thought I'd like ask the other experienced maxscripter of what's actually going on here; The problem is on the keyPressed, if I use the code;ctrl: (keyboard.controlPressed and not…
EDIT: Hmmm..found out that actually the "default: genericMode" that cause a problem..somehow....using the "default:" on the individual script works. Oh man, maxscript just keep on refuse to be friend with me T_T Here's the situation; I got the following code on my startup script based on Bryan suggestion and organize stuff…
Inspired from this thread and the problems that default Named Selection Sets and Storage Selections have(preserving the proper selection after some operations) I've created a script that can save and load sub-objects selections with no problems. Video of the script.
Revel: I would suggest going through the help file tutorials, they are good at explaining the basics of scope and local/global variables. If you want to use globals then try to give them a more personal variable name to prevent other scripts from overriding them. What if you installed another script that used xCurMod?…
Unintuitively, the "Startup" folder is evaluated after all other script folders, just after the default scene is loaded. You need to place your global.ms file in a user-defined plugin folder. Please read this article on the script evaluation order.…
Hi Bryan, that's too complex for me to understand for now O_O Haven't really read anything about defining a function though, so might come back here in the future after I more familiar with function :) Anyway, is it a good idea to define these codes below as a global on 1 file for other scripts use? So I don't have to type…