View Full Version : Garbage Cleaner Script?
CupOWonton 10-05-2005, 09:17 PM I dont know where I heard about this, but, someone said theres a script or function in/for Max that cleans a lot of the extra junk that acumulates in a max file after its been worked on many times.
Does ANYONE know what I'm referring to and how to get to and use it?
|
|
RyanT
10-05-2005, 10:26 PM
Your looking for gc() type that in the listener and it will do some clean up.
-RyanT
CupOWonton
10-06-2005, 09:19 PM
... it just responds with numbers. Does that mean It's done its job?
Equinoxx
10-06-2005, 09:40 PM
yes it does
JayCMiller
10-07-2005, 01:05 AM
drag this one into a toolbar for a one-click solution :)
-- GarbageCollecter.ms
------------------------------------------------------------------------------------
-- MAX File Size GC Cruncher Pre-SAVE Script written by Mike Owen, 3D Technical Animator, Burrows Nvisage 2005
-- Version 1.0
-- This script fixes the Discreet MAX file size increasing problem during the #prefilesave callback flag
------------------------------------------------------------------------------------
(
fn MAXFile_Crunched =
(
max file xref object -- open xref object dialog
xro_hwnd = windows.getChildHWND 0 "XRef Objects" parent:#max-- find xref object dialog
if xro_hwnd != undefined do windows.sendMessage xro_hwnd[1] 0x0010 0 0 -- if found, send close message
max file xref scene -- open xref sceen dialog
xrs_hwnd = windows.getChildHWND 0 "XRef Scenes" parent:#max-- find xref scene dialog
if xrs_hwnd != undefined do windows.sendMessage xrs_hwnd[1] 0x0010 0 0 -- if found, send close message
gc() -- garbage collection
)
)
Jhotun
10-07-2005, 08:10 AM
Thanks for that :)
CGTalk Moderation
10-07-2005, 08:10 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.