PDA

View Full Version : unremovable data trash in maya files


MarioC
11-16-2005, 07:59 PM
does anybody have experience with the reference editor? today i loaded a model into some of my big scenes, but maya always renames the "object" to "object1". i exported the files to ascii and found some old entries of a reference already named "object", so its clear why maya renames the new imported reference. the problem is: in the scene is no reference "object", not in the reference editor or somewhere else, so i can't remove/unload it. deleting in the ascii file just corrupts the whole file.

using the renamed reference is not an option, because it is used for a game engine.

if anybody has an idea i and the team would be very thankfull

john_homer
11-16-2005, 08:48 PM
You should be able to remove it with mel...

have a look at the mel commands "file" and "reference"

.j

MarioC
11-17-2005, 10:28 AM
thanks, but this doesn't work. problem is that maya thinks there is no "object", so you can't remove/delete/clean/.. this reference, neither with a the reference editor by clicking nor with a mel command :cry:

just to test compatibility i saved a binary as asci and re-imported it (without changing anything!) and than saved it as a binary again. loading this new binary causes many error messages ("found 5 bad data blocks" and so on) and the scene is completely ruined. great! maya can't import its own file format, yeah :banghead:

john_homer
11-17-2005, 06:08 PM
have you tried "export all" or select everything you want and "export selection"?

.j

Marcel
11-18-2005, 07:53 AM
Can you perhaps see the object when you deactivate 'DAG objects only' in the outliner?

j00ey
11-18-2005, 11:53 AM
try typing

select -r object

in the command line, then hit delete

_vine_
11-18-2005, 01:35 PM
Alrighty now, when I have a problem like this the first thing I do is open my trusty Outliner, turn off DAG Objects Only under Display, and look for the offending node. From here you realize just how much crap a Maya scene file contains.

Not seeing your file, "object" could easily be anything from a group to a shader. Optimally, every time you create something in Maya you should give it a unique name.

One scenario that I find quite common is a person extracting faces from a piece of geometry which creates a group node (with the original object's name) and series of polySurface nodes for each piece of geometry that was extracted. If you then combine all the geometry again, you will still be left with the now empty group node. If you try to name the new object with the original name you will end up with the "1" at the end.

I'm wondering if something similar happened to you. Perhaps you have an empty group, or some other kind of node in your scene named "object".

Try running ins your command line "objectType object". It will give you a vague idea of what your looking at. Let us know what you get when running the command and we can help out further.

Hope this helps ya.

MarioC
11-18-2005, 06:10 PM
:thumbsup:

thanks to all your ideas! i switched on DAG objects in the outliner and whooaa, there were about 8000 entries, some more than one year old. it needed about 20 minutes to delete them all (selecting all at once and press delete let maya crash), and filesize dropped by more than 60%. also some data heavy operations seem to work again :bounce:

may the triangles be with all of you :applause:

CGTalk Moderation
11-18-2005, 06:10 PM
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.