Change this line: if $.selectedVerts[1].index == undefined then to this and see how it goes: if $.selectedVerts.count == 0 then
With a wrong description of a problem, you will always get a wrong solution, unless lucky is on your side.
( str = “spin Spinners spinning\n” str += “spin Spinners spinning\n” str += “spin Spinners spinning\n” regex = dotnetClass “System.Text.Regul…
No, it’s just a matter of design or organization. It’s up to you to decide it.
( global a if a != 1 do ( a = 1 — Evaluate your code here print “Hello World” ) ) From a function: ( global a fn EvaluateCode = if a…
You can approach this in many different ways, so there is no single answer. Based on your script and the screenshot, something like these could work: …
Nice catch. I’ve modified the script, but there might be other situations where it doesn’t work properly.
Another idea, not fully tested. It can fail if there are other scripts modifying the selection. ( global PreNodesCloned, PostNodesCloned SHIFT_PR…
Looks like it is gamma corrected.
Try: actionMan.executeAction 0 “16” — File: New Scene, Clear All or delete objects
Maxscript is a scripting language. You can’t compile it.
The obvious answer would be yes, .Net would be faster, but you can get a surprise. Value types are poorly implemented in the .Net API and so gatherin…
The simplest way, if you want to get the same result as what is printed in the MXS listener, would be: ManagedServices.MaxscriptSDK.ExecuteStringMaxs…
macroScript ViewportPresetSwitch category:”PolyTools3D” tooltip: “Viewport Preset Switch” ( viewSetting = NitrousGraphicsManager.GetActiveViewportSet…
denisT: @PolyTools3D try gettrimesh from my lib. It’s .mesh but with fixed bug ( format “GET MESH TEST\n” delete objects obj = geosphere s…