From purely selfish needs and from what I learned from talking with others, I decided to start a MaxScript knowledge and question thread, where we can post all the resources for MaxScript we got and post any scripting questions we have, without cluttering up the Tech Artist - What are you working on: FOREVER Edition!…
@monster You are right, the script kinda of evolved into that, because I couldn't get it to work, so I tried to work around it. My original script was actually exactly like yours, the only difference is that you used * and inverse, and I tried getting + and - to work with it. I guess that math with matrixs is different…
Sorry I should have clarified. The script is only for single objects. I picked Meshsmooth because that's a modifier that I never use and I didn't really know a better way to phrase that part of the script. All it's supposed to do is collapse the modifier with the highest index to the base node. so for example in this image…
Updated. Got a question as well, I got a dialog window with some spinners, and I got a custom helper object which contains some parameters which can animated. Got two example scripts below, which can be used to show the function I want to achive. At the moment, if I change the spinner, it does change the parameter in the…
Thanks Monster! I considered trying the principle behind your script but I had no idea how to actually write the script. Very interesting to see the way you solved it.
Does anyone know how to speed up this script? It's probably a pretty backwards way of doing it but it's the only way I could get it to work. The script is supposed to collapse the bottom modifier. It also seems to struggle with edit poly modifiers. (ModIndex = for m in $.modifiers where classof m != meshsmooth collect m…
This thread is a goldmine, thanks! I'm struggling with this simple script right now. I'd like to create a script that assigns a smoothing group to any face that has no smoothing groups assigned, in all selected objects, while ignoring any modifiers. I tried it with a for loop and a function but I can't figure out how to…
Joost, haiddasalami answer is 100% correct. I just wanted to show this alternate method. You can speed up the script significantly by avoiding updating the UI. For example on 4 default spheres your script runs at 740 ms, and the rewritten one below runs in 3 ms. ( t = timeStamp() mapped fn setUnassignedSmoothingGroupFaces…
McGreed, sourceNodes array is defined incorrectly. But other than that it works for me. However, to me it seems the script is too complex for what you are trying to do, and if sourceNodes[1] is scaled you get some odd behavior. The code below gives me the same result as your script when sourceNode[1] isn't scaled, but I…
Finally got it to work. Had to edit you're script a bit. Separated the point3 to separate floats (probably better way to do this) and then created controllers in script and attached them plugin Helper TestHelpername:"Test"classID:#(1084217646, -674216016)category:"Standard"extends:dummyversion:1invisible:false( local…