Swordslayer
@swordslayer
New Member
Joined: Feb 14, 2024
Topics: 19 / Replies: 543
Reply
RE: help me understand this undefined error

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…

7 years ago
Forum
Reply
RE: Add new line to expression when defining an expression via maxscript?

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 …

7 years ago
Forum
Reply
RE: [MXS] Parameter Block error… WTF?

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.

7 years ago
Forum
Reply
RE: maxscript scripted plugin modifier

There’s a code tag, use it. For what you want to do, look up simpleMeshMod in the maxscript reference.

7 years ago
Forum
Topic
Forum
Replies: 1
Views: 12
Reply
RE: WebBrowser in Rcmenu,possible?

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.

7 years ago
Forum
Reply
RE: Scripted modifier – access to object transform

Depending on the type of the modifier, there’s also the owningNode variable (in simpleMeshMod).

7 years ago
Forum
Reply
RE: mxs exposure of custom attribute presets

custAttributes.add <obj> CustomAttributesPresets

8 years ago
Forum
Reply
RE: Edit_Poly accessing selection when object isn't selected

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…

8 years ago
Forum
Reply
RE: Ger/Set vertex selection for Poly Select?

setVertSelection $ $.modifiers[Poly_Select] #{1..10}

8 years ago
Forum
Reply
RE: Last bit?

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 …

8 years ago
Forum
Reply
RE: Last bit?

Just wanted to point out the same thing about non-continuous bitarrays, you’re too fast

8 years ago
Forum
Reply
RE: Last bit?

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

8 years ago
Forum
Reply
RE: Scipted Plugin works but I need to interupt MXS

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 …

8 years ago
Forum
Reply
RE: <Edit_Poly>.GetOperation() counterpart in Editable Poly?

Yes, tested in 2016, 2017 and 2018, it works in all of them.

8 years ago
Forum
Page 10 / 38