Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Maya scene missing

15 REPLIES 15
SOLVED
Reply
Message 1 of 16
joshwibberley
16850 Views, 15 Replies

Maya scene missing

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

15 REPLIES 15
Message 2 of 16
mspeer
in reply to: joshwibberley

Hi

 

Please upload the scene-file.

Message 3 of 16
joshwibberley
in reply to: mspeer

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

Message 4 of 16
mspeer
in reply to: joshwibberley

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".

Message 5 of 16
joshwibberley
in reply to: mspeer

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

Message 6 of 16
joshwibberley
in reply to: mspeer

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

Message 7 of 16
mspeer
in reply to: joshwibberley

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)

 

 

 

 

Message 8 of 16
alex.bannerman
in reply to: mspeer

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.

Message 9 of 16
mspeer
in reply to: alex.bannerman

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).

Message 10 of 16
alex.bannerman
in reply to: mspeer

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

Message 11 of 16
mspeer
in reply to: alex.bannerman

Hi!

 

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

Message 12 of 16
alex.bannerman
in reply to: mspeer

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

Message 13 of 16
mspeer
in reply to: alex.bannerman

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)

Message 14 of 16
alex.bannerman
in reply to: mspeer

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!

Message 15 of 16

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

Message 16 of 16

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report