PolyTools3D
@polytools3d
New Member
Joined: Feb 14, 2024
Topics: 17 / Replies: 1674
Reply
RE: Array for Loop index error

Change this line: if $.selectedVerts[1].index == undefined then to this and see how it goes: if $.selectedVerts.count == 0 then

3 years ago
Forum
Reply
RE: substituteString Ignore Case or Regex Replace?

With a wrong description of a problem, you will always get a wrong solution, unless lucky is on your side.

3 years ago
Forum
Reply
RE: substituteString Ignore Case or Regex Replace?

( str = “spin Spinners spinning\n” str += “spin Spinners spinning\n” str += “spin Spinners spinning\n” regex = dotnetClass “System.Text.Regul…

3 years ago
Forum
Reply
RE: How to exit if condition is met

No, it’s just a matter of design or organization. It’s up to you to decide it.

3 years ago
Forum
Reply
RE: How to exit if condition is met

( global a if a != 1 do ( a = 1 — Evaluate your code here print “Hello World” ) ) From a function: ( global a fn EvaluateCode = if a…

3 years ago
Forum
Reply
RE: Instance selection 4 times and align to specific node

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: …

3 years ago
Forum
Reply
RE: Scripted Plugin Clone Event, detect type?

Nice catch. I’ve modified the script, but there might be other situations where it doesn’t work properly.

3 years ago
Forum
Reply
RE: Scripted Plugin Clone Event, detect type?

Another idea, not fully tested. It can fail if there are other scripts modifying the selection. ( global PreNodesCloned, PostNodesCloned SHIFT_PR…

3 years ago
Forum
Reply
3 years ago
Forum
Reply
RE: 'File->New-> New All'

Try: actionMan.executeAction 0 “16” — File: New Scene, Clear All or delete objects

3 years ago
Forum
Reply
RE: Is it possible to compile maxscript online?

Maxscript is a scripting language. You can’t compile it.

3 years ago
Forum
Reply
RE: Convert data to string (C#)

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…

3 years ago
Forum
Reply
RE: Convert data to string (C#)

The simplest way, if you want to get the same result as what is printed in the MXS listener, would be: ManagedServices.MaxscriptSDK.ExecuteStringMaxs…

3 years ago
Forum
Reply
RE: Viewport preset toggle for the 3dsMax 2022

macroScript ViewportPresetSwitch category:”PolyTools3D” tooltip: “Viewport Preset Switch” ( viewSetting = NitrousGraphicsManager.GetActiveViewportSet…

4 years ago
Forum
Reply
RE: How to fast search material ID from objects

denisT: @PolyTools3D try gettrimesh from my lib. It’s .mesh but with fixed bug ( format “GET MESH TEST\n” delete objects obj = geosphere s…

4 years ago
Forum
Page 2 / 113