This works though: fn createMesh2 baseLength cornerRadius = ( baseLength *= 2 baseLine = createBaseLine baseLength baseLine.pivot = [baseLeng…
I have only tested Ephere’s Lab but I assume mcg is in the same ballpark, so here are my experience from using a visual programming approach. As Denis…
asDotnetObject:on Neat! Wish I had seen this gem sooner
The ManagedServices.dll has to be loaded by an instance of max before you can use it. Calling ExecuteMaxscriptCommand from a main method, won’t work. …
PolyTools3D: Images are flipped in Y axis. Haha, did not notice since all my materials were gray anyway
I’m not following you here. I am using the lockbits-method. It is where I defined the format of the image as well.
You’re right, denisT, thanks! This works: ( fn MtlPreview mtlIndex size = ( glob = (dotnetClass “Autodesk.Max.GlobalInterface”).Instance if gl…
I tried to follow Klvnk’s lead and Im almost there. The PStamp object has an Image property which is a byte array with size of 3 * Height * Width of t…
oncire: but is my code working perfectly in your system? yup. Something is wrong if your .Instance variable always is null.
That is the same version I got here at work. You should not have to load the assembly, it is loaded at startup. Try pasting this into the listener: s…
I’m guessing your max version is too old. This is just a shot in the dark, but the Autodesk.Max.dll was called Interfaces.dll in older versions of max…
Put the it under the createDialog line: createdialog test width:250 height:60 pos:[35,120] style: #(#style_toolwindow) g = (dotnetclass “Autodesk.Ma…
Adding this to the script seems to work for me, no? g = (dotnetclass “Autodesk.Max.GlobalInterface”).Instance g.Coreinterface8.RegisterModelessRender…