Hi Vlado,
this is not the first time in my experience.
See this two files. In the first scene, empty scene with 3 animated camera, the file is 10 MB!!!
If I do “FILE → NEW → KEEP OBJECTS → OK” and save, the file now is 300 KB! But I loose all the animation.
It’s a VRayCamera BUG or Max BUG for you?
Also, if in the “animated” files, you delete all the camera (so the scene is empty) the file still 10 MB, after the saving!
Also, you can see some “strange” notes track in the Curve editor, under Max MotionClip Manager.
I use this script for to delete this boh… ghost tracks, as you can read on CGTalk thread. But without success.
while (numNoteTRacks TrackViewNodes.Max_MotionClip_Manager > 0) do deleteNoteTrack TrackViewNodes.Max_MotionClip_Manager (getNoteTrack TrackViewNodes.Max_MotionClip_Manager 1)
If I deleter all the VRayCam, run the script and save, the file stay at 10 MB!
Only if I run “FILE → NEW → KEEP OBJECTS → OK” the file go down in size.
certainly there is something in the file that require deleting, i could not get the behaviour if i create a new vray animated camera/s. i’ll keep looking for the solution.
In max 2011 we don’t have Reactor =)
And, also, this is not the first time I’ve some problem with VRayCamera. In one file, after ONLY deleted the VRay camera, the file size was less than half!
EDIT: Ok, I deleted all geometry/shape etc… Only VRaylights and VRaycameras: 260 MB! Compressed: 800K!
Incredible!
We get this error a lot lately at our office, some “infected” asset pollutes the scenes where it’s used.
Hoped that Adesk fixed it in 2012, but doesn’t seem so …
bardo: Mmm… I donìt know why I open the file without any freeze here.
Hi Codi, yes, I know, but after clean the scene (see the first post) the file size is the same. Only run
“FILE → NEW → KEEP OBJECTS → OK”
The file size go down. I know. I read a lot of thread on different forum with max 2009, 2010, 2011 and 2012. Crazy!
Also, real08121985 has written a little script to remove all this crap that looks quite cool:
The code to remove the note tracks has been discussed on a few forums, and this has been chosen as the best way to remove the data:
--MaxScript code
try while (numNoteTRacks TrackViewNodes.Max_MotionClip_Manager > 0) do
(
deleteNoteTrack TrackViewNodes.Max_MotionClip_Manager (getNoteTrack TrackViewNodes.Max_MotionClip_Manager 1)
)
catch()
--End MaxScript code
Does anyone know what these mysterious note tracks are?
I use a CODI script all the days! It’s so crazy! And I don’t have any old max file merged in this project. I’m sure…
But, in this files, only with FILE → NEW → KEEP OBJECTS → OK I can have a decent file size! and without any “notes” tracks!
The file compresses so much is because compressing algorithms summarize redundant info very well, and in your case you have the same note track repeated over and over.
I guess the reason that it only decreases in size when you make a new scene (keeping the objects) is because the note tracks are “attached” to the scene, not to a specific object.
Ok Codi, but I run your script, clean all the track note, but the file size is the same! But this could be one reason.
But, this is an architectural job. If I lose some camera’s animations it’s not a big problem.
But if we have some complex animation? character animation?
It’s impossible to think to use “FILE → NEW → KEEP OBJECTS” I lose all the groups and animations!
So does this mean that an ‘infected’ max 2012 file can potentially contain hundreds of megabytes of reactor data?
If so, because max 2012 doesn’t have reactor, does that mean that the only way to fix these files is to save them as 2010 files and then run this cleaning script?
Also max 2011 doesn’t have Reactor! I run this script in max 2011 and all is fine, now, without “FILE → NEW → KEEP OBJECTS”.
Open my 200 MB fil → run script → clean note tracks and Reactor collision → Save → 2 MB