Maya scene missing

joshwibberley
Enthusiast
Enthusiast

Maya scene missing

joshwibberley
Enthusiast
Enthusiast

Help! My whole maya scene is missing! Everything is still in the outliner though.

0 Likes
Reply
Accepted solutions (2)
16,851 Views
15 Replies
Replies (15)

mspeer
Consultant
Consultant

Hi

 

Please upload the scene-file.

0 Likes

joshwibberley
Enthusiast
Enthusiast

Hi, thanks for the reply! The file extention is messed up as well. I renamed it with the .ma extension but that didn't seem to fix anything.

 

https://drive.google.com/open?id=0By0EIbg0zHBNNEpNM2xtMURpZlE

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

The file extension should be ".ma".

 

You have extreme high values for Translate and other Attributes in your scene for some objects, this leads to invalid values. Correct this.

 

For every camera (non orthographic):

1. Select camera

2. Modify -> Reset Transformations

3. In Viewport Menu: View -> Default View

 

For other nodes/objects (start with "Scene"):

1. Select object

2. Set Translate values to "0".

joshwibberley
Enthusiast
Enthusiast

Thank you so much, you're a life saver!

0 Likes

joshwibberley
Enthusiast
Enthusiast

I cant see anything in the perspective? I'm getting nan values in the transform.

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

This happens when you try to focus on an object with invalid values, like infinite far away (better: out of range).

 

You can't correct this manual, you need to strict follow all 3 steps without interruption:

 

1. Select camera (in Outliner, or Viewport: View -> Select Camera)

2. Modify -> Reset Transformations (all options enabled "Translate, Rotate, Scale")

3. View -> Default View (In Viewport Menu)

 

 

 

 

alex.bannerman
Advocate
Advocate

The solution partially worked for me. Following the steps I could then see the wireframe....but as soon as I dollyed out everything disappeared again. I've created a camera to act as my perspective view for now but I've had this issue a couple of times so it would be nice to resolve it.

0 Likes

mspeer
Consultant
Consultant

Hi!

 

The steps i provided resolves the problem completely if it is caused by wrong (invalid) values for camera transformation.

It does not solve problems caused by wrong set Clipping Planes or other errors in the scene.

 

Please create a new thread and post a scene-file there, but i guess the problem is wrong set Clipping Planes (Near and Far).

0 Likes

alex.bannerman
Advocate
Advocate

Near and far clipping planes are ok. I have previous file versions working with the same settings.

0 Likes

mspeer
Consultant
Consultant

Hi!

 

Then upload a scene-file with the "bad" camera.

0 Likes

alex.bannerman
Advocate
Advocate

I've deleted all the objects and replaced them with a cube. Current view is a 'dummy' perspective view camera. Let me know what you think

0 Likes

mspeer
Consultant
Consultant

Hi!

 

Camera has invalid values (NaN).

Followed steps 1. - 3. and persp camera is back, working as expected.

You have to do follow all of these steps without interruption.

 

If invalid values come back, then because there are some invalid values in your original scene (which i can't test with your demo-scene)

alex.bannerman
Advocate
Advocate

It works now thank you. Strange i did follow those exact steps 3 or 4 times and in different scenes previously and it lost the object when dollying out. But it works now so great!

0 Likes

FlorianDubiel
Contributor
Contributor

I finally found the solution. You got to change the following value in you userPrefs.mel
search for:
-fv "defaultFitFactor" 0

and change it to default:
-fv "defaultFitFactor" 0.95

and it works again,hell yeah

ptorrevillas
Participant
Participant

Although the previous solution may work.  You will always get problems when trying to refit again.  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