Converts bitmaps to MaxScript using LZ compression and copies the resulting code to the clipboard (Max2010+) or listener window(Max9+). Works best on files with redundant colors like icons. Use it to add graphics to your scripts while minimizing file-size. Based on a script example found in the help files. In some scenarios this algorithm yields up to 800% smaller file sizes over the original script. I might add a GUI to this later on.
Enjoy. Instructions:
1. Run script
2. Select image to convert
3. Paste resulting code into your script
Note: See example file for usage. This script can be CPU intensive and could take some time to compile images larger than 200x200. It is recommended that you open the listener window before running the script to view progress in realtime.
By jaijinsunrise
JokerMartini · 2010-06-17