Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Maya scene empty

Maya scene empty

Anonymous
Not applicable
19,980 Views
46 Replies
Message 1 of 47

Maya scene empty

Anonymous
Not applicable

Hey so i had some weird issues with cameras not focusing on objects so I restarted the scene in hopes that it would fix itself but instead the scene opens up empty and with nothing in the outliner, but the scene still has the same file size? I had not saved any backup and i fear that a lot of time animating has just been for nothing... I used a couple of references if that could have anything to do with it?

 

I'm using maya 2018.

0 Likes
Accepted solutions (1)
19,981 Views
46 Replies
Replies (46)
Message 2 of 47

mspeer
Consultant
Consultant
Accepted solution

Hi!

This file looks like it can be restored.

The file contains several invalid values ("nan"), correct this manual with a text editor.

Replace all "nan" or "nan(ind)" with "0".

Message 3 of 47

Anonymous
Not applicable

It helped! Thank you very much!

0 Likes
Message 4 of 47

Anonymous
Not applicable

This post by mspeer wins. Absolutely. Thank you for helping bail out a student who lost her scene.

 

Do we need to ask why this problem happens? No! Accept your fate as a Maya user. 🙂

0 Likes
Message 5 of 47

mspeer
Consultant
Consultant

Hi!

 

Most "nan" values are caused by values becoming too large, for example positioning something outside of the valid range of a scene or feeding an invalid output from one node into an other node.

While the second can easily happen, i don't know what people do to get the first "nan" value.

Message 6 of 47

Anonymous
Not applicable

Thanks a Lot !! Issue Solved and saved my 3 days Work!!

0 Likes
Message 7 of 47

Anonymous
Not applicable

is there a easier way to do this instead of reading through the whole thing looking for nan. Kinda dont have time for that.

0 Likes
Message 8 of 47

Anonymous
Not applicable

In notepad you can go to edit > replace which will let you replace all of them at once.

0 Likes
Message 9 of 47

Anonymous
Not applicable

@mspeer I could kiss you right now. I swear down.

 

I just spent all day doing corrective blendshapes on this high-poly character, and both my last two versions were having this problem when I opened them on my home machine.

 

I've never been so excited/happy to open an .ma file in Notepad.

 

 

0 Likes
Message 10 of 47

ptorrevillas
Participant
Participant

The main problem is that the defaultFitFactor in the prefs for some reason sometimes get set to 0.0 and this is what generates the NaN values.  What you can do is reset it so you don't have to blow away your current prefs or edit it manually risking corruption and then you should be able to fit your views in your existing scenes and on....

 

 

from maya import cmds
cmds.optionVar( floatValue=( "defaultFitFactor", 0.5 ) ) cmds.savePrefs( general=True )

 

 

Cheers!

 

PJ

0 Likes
Message 11 of 47

mspeer
Consultant
Consultant

Hi!

 

This thread has nothing to do with Fit Factor, also the Fit Factor problem is solved in newer Maya versions.

0 Likes
Message 12 of 47

creationasif
Contributor
Contributor

thank you so much 

0 Likes
Message 13 of 47

Matan_Shilo
Enthusiast
Enthusiast

Hello
I have a similar issue, I spend 3 days of work.

How can I actually put my hand on these invalid values ("nan"). I don't see in my scene any NAN values.

 

link to the scene (Drive) 

drive.google.com/file/d/1J7yA4hbyJWXDLzgdbbXI4saJHJ9CInuD/view?usp=sharing 

Thank you 

 

 

 

0 Likes
Message 14 of 47

mspeer
Consultant
Consultant

Hi!

 

Recovered scene attached.

 

0 Likes
Message 15 of 47

Matan_Shilo
Enthusiast
Enthusiast

Thank you 🙂
I managed to fix it, at first, I did not know I can actually get it to fix within the Notpad
Thank you 🙂

0 Likes
Message 16 of 47

Anonymous
Not applicable

Is there another reason this would happen. I went through my file and couldn't find "nan" or "nan(ind)".

I opened up one of the other files in the forum to check if I was doing it correct and I was able to find nan.

0 Likes
Message 17 of 47

mspeer
Consultant
Consultant

Hi!

 

Yes, other reasons are also possible.

0 Likes
Message 18 of 47

Anonymous
Not applicable
0 Likes
Message 19 of 47

mspeer
Consultant
Consultant

Hi!

This is simply an empty scene not sure what you expect to be inside.

0 Likes
Message 20 of 47

Anonymous
Not applicable

Hi there I'm a student working on a huge semester long senior project and I'm worried this corruption issue has happened to me. I am FREAKING out as there is not way I can redo my whole project at this point in the semester. The error reading file only seems to be happening with my newest files for now, but I'm scared my whole project is messed up as I worked from an older save file to redo all the stuff that got corrupted and it all just happened again. I attached the file.

 

Is there any way you could PLEASE take a look for me?

0 Likes