execute(“newMat.”+BSLMat[1][i]+”=”+”oldMat.”+BSLMat[2][i]) You know, execute works in global scope, not local scope. 90% of the cases you think ‘I kn…
You can use multiline string with no issues – put the quotes only on the very first and very last line. Or use , that’s the newline character. Or use …
Guess you just omitted the mzp.run file, in that case all the files inside are run and your paramblock file is not a valid script per se.
There’s a code tag, use it. For what you want to do, look up simpleMeshMod in the maxscript reference.
You can use dialogMonitorOps to get the rcmenu hwnd (or even get the last child hwnd) and then windows.getWindowPos to get its size and position.
Depending on the type of the modifier, there’s also the owningNode variable (in simpleMeshMod).
custAttributes.add <obj> CustomAttributesPresets
You kinda answered it yourself in the title of the post, edit_poly needs to be selected and active in the modify panel for most of its methods to work…
setVertSelection $ $.modifiers[Poly_Select] #{1..10}
The binary search one is pretty good, other ones will beat it in cases like a = #{1} a.count = 1000000 but for a general case and big array it’s a …
Just wanted to point out the same thing about non-continuous bitarrays, you’re too fast
Hah, that’s a good one, I’ll go with fn lastBit bA = ( bAA = bA as Array return bAA[bAA.count] ) Works fast (<5ms) even with cases like this: …
I don’t get a spinning icon (well, there’s a trailing bracket that I removed prior to running it but that still shouldn’t trigger sth like that), but …
Yes, tested in 2016, 2017 and 2018, it works in all of them.