Try this: multiply each vector in the matrix by [-1,-1,1]. p = point() p.rotation = (random (quat -1 -1 -1 0) (quat 1 1 1 1)) p.pos = [(random 0.0 5…
rollout […] ( local cams = for i in cameras where superclassof i == Camera collect i.name [B]insertItem ” — Select Camera — ” cams 1[/B]…
Max’s Key arrays are frustrating to use (surprise!) s = sphere() animate on ( at time 0 ( s.pos = [0,0,0] ) at time 10 (s.pos = [10,0,0] ) at time…
I found this page: and according to the math here, a getBC() function would look like this: fn getBC ab ac b = ( sqrt( (ab*ab) + (ac*ac) – (2*ab*a…
You could make a temporary callback to grab it like this: fn skinUtilsWrapper o = ( callbacks.removeScripts id:#getSkinDataObj fn f_getSkinDataObj …
Skinops throws that error when you try to use it when the skin modifier isn’t currently active in the modifier panel (ugh…). Make sure the skin modifi…
I’ve tried this before, but just for fun… p = point name:”p1″ c = float_script() p[#transform][#position][#x_position].controller = c a = #((datapair…
Is there any advantage to using “do” instead of “then” for single-case if statements? For one thing, if you use “do”, then decide later to add an “el…
I’ve used it for a few UI’s here. There are a few peculiarities as compared to standard windows.forms stuff, but definitely usable in Maxscript. Stack…
XtraTreeList, which comes with Max, supports checkboxes for any level and additional columns. dotnetobject “DevExpress.XtraTreeList.treelist”
I did lots of Maxscript 1998-2002, but I can’t remember what I used back then. Then I did lots of MEL for a few years, where a procedure was a “proc”…
You can use the keyword “this” to reference internal struct variables and functions. struct foo ( a = “hi”, b = “there”, fn fooPrint = (form…
If you just want to unhide a single object, use $.isNodeHidden. as per the maxscript docs “General Node Properties” page. isHidden covers the followi…
Mambo4: given a set of point 3 values for position and rotation, and a new transform matrix, how do I convert them? given : …