Script timing

Currently playing around with writing greebling MEL scripts. Greebles are created through iterative extruding of polygon faces. I’ve found this can be ridiculously intensive for my computer (Q9550\4GB). Certainly turning off the undo queue helps, as does deleting the construction history for objects which are being greebled, but still I can easily create a script, which despite performing maybe 200 extrusion operations, takes 5 minutes to complete.

I figured the best way to produce optimised code was to begin timing different versions of the script. Took me a short while to track down, but there is a useful timerX function available within MEL, enabling you to time the execution of particular script areas.

Hopefully this should highlight any bottle necks in my greebling scripts!

Leave a Reply