EDIT; Seems like I found the solution already :) Just replace the "EditPolyMod.SetSelection ePoly_obj #Face face_savedSelection" with "Edit_Poly.select ePoly_obj #Face face_savedSelection"..need to test some more, hopefully it wont break anything else. Yeah, this weekend I really feel like wanted to learn some maxscript to…
So what's happening is you're, again, assigning to variables that do not exist. I'm thinking you do not understand the basic principles here and relying on the case of expression and code from the other threads. Here's what's happening: - Your case of in the function fnRevel_curClass is returning 'undefined' - The case of…
@miauu - awesome! thanks so much for helping me on writing this script, you know that my previous iteration of code somehow didn't work anymore, I no idea why -_-" but your edited version works very smooth! :) Hmmmm...about the array #{}, so you mean that max can only save 1 array? why does the vert_savedSelection array…
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…
There's nothing wrong with either of those methods from what I can see. They do the same thing so its what ever you prefer. Now as far as the actual code you're writing and what you're trying to accomplish? That can be improved upon but it of course takes time and experience. I'm still learning everyday. I'm sure this code…
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/…
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…
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?…
Thanks for posting that example Monster! I didn't know you could store the results of a 'case of' expression into a variable. I've just used them to execute code in my scripts. And of course now that I go back and check the documentation for the case expression it clearly shows it being used that way in their example...
Nice one!..I guess you can temporary use the max default selection sets when user want to quit max and restore it back when load it up and continue back using your code when doing the modeling, since the default selection sets get saved into the max file and there is no chance for max messed up the selection sets while…