I created a plane with 100×100 segments and run the above code. My memory went up to 17GB, but no crash. My heapSize was 74973184L (75MB) due to other…
Out of curiosity, how much is your Heap size? And is this in 32 or 64 bit?
Awesome, glad it works! Not sure why it would crash on the copying – what version of Max was that in?
Try this: undo off ( local startTime = timeStamp() disableSceneRedraw() progressStart “Chooping geometry…” local object =…
Here is an optimized and simplified version of your code that does the same and checks the MacroScript button itself: macroScript Toggle category:”Ra…
Here are some notes: The first 3 lines (global definitions and destroyDialog() call) can be inside the script’s body. It does not matter, but it mak…
Some of this is kind of covered in the Help, but here are my thoughts about it: Example 2 won’t work as designed, because the attempt to close the r…
Try getClassInstances() instead. Obviously, you will still have to call it once for each class you want (bitmapTexture is not necessarily the only map…
That line deals with the visibility of the viewport “button text” which was broken lately and stays visible when creating a preview. In earlier versio…
Just add – in front of the offending line as it is not needed in 2009, or delete it completely. Alternatively, you can add an IF test for Max version…
This is a really bad idea because for each name it has to perform a full loop through all the scene objects. Now imagine a scene with 10,000K objects …
The script you wrote does not express what you wrote in your post When you press the button, it grabs the objects, then loops from 1 to 6 and selects…
Bobo: Another approach would be to use IntersectRayEx to shoot rays at the mesh at any desired point, grab the value from the intersection which …
It is not too bad actually, but if you are going to assign a single color to all vertices, you could use barycentric coordinates instead and sample ON…
As the MAXScript Help explains, there are two types of bitmap values – open for input and open for output (load-only and save-only) If a bitmap is lo…