John Burnett's Bake found in http://www.scriptspot.com, seems like exactly what we were looking for, but it doesn't seem to want to install.

I know a little about MaxScript, but it seems not enough.
It needs 3 other scripts to work (Avguard Extensions, BFDToolsCore and jbFunctions) and I think I installed them all correctly, except avguard, but someone in scriptspot told me that its already implimented in Max 2008 and up. But If I try to make a button out of the bake script and push it, I get an error message saying "--No ""getPixels"" function for undefined".
Also, now Max is giving an error message saying "--Cannot assign to read-only variable: toUpper" every time it starts.

Sorry that I didn't see your reply in the other topic yesterday - I was unavailable all day.

I think that I have a solution for you that will resolve both errors:

1. The "Cannot assign to read-only variable: toUpper" error I believe is due to the use of the reserved keyword toUpper. Here's my fix:

a. In Max, edit the jbFunctions.ms script (Maxscript menu - Open Script).
b. Press Ctrl+F to open the Find utility and type toUpper in the Find what drop down list - then click Find Next.
c. For each "toUpper" in the script, change to "toUpper2". Since "toUpper2" is not a reserved keyword, there should be no conflict.
d. Save the script.
e. Restart Max.

2. No "getPixels" function for undefined - This error is due to the fact that the script cannot locate the BFDtools-Bake_Buttons.bmp image that contains the graphics for the Out-of-Range selections (most likely due to out-of-date script, version changes, etc.) To fix, do the following:

a. In Windows, navigate to the C:\Program Files\Autodesk\3ds Max 2009\ui\macroscripts directory.
b. Create a new directory "Bake"
c. Place the BFDtools-Bake.mcr and BFDtools-Bake_Buttons.bmp files from the downloaded .zip file into this new Bake folder.
d. In Max, edit the BFDtools-Bake.mcr macroscript that you just placed into the Bake folder (Maxscript menu - Open Script).
e. Change line 63 to:
local OORBitmap = try (openBitmap (bakePath + "\\Bake\\BFDtools-Bake_Buttons.bmp")) catch (bitmap 168 18 color:green)
f. Delete lines 57-62 (the if statement related to the Max directory)
g. Save the macroscript.
h. Restart Max and try the macroscript.

Both of these fixes worked for me and the Bake script worked successfully.
I will provide the final scripts below.

Featured Post

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough. To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.

This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory.
NOTE: For Outlook 2016 and 2013 perform the exact same steps.
Open a new email: Click the New email button in Outlook.
Start typing the address: …