Home Technical Talk

Maya Default Ortho Camera Issue

polycounter lvl 6
Offline / Send Message
jakemoyo polycounter lvl 6
I've tried googling and searching through the forums, and found a couple of temporary fixes. But nothing that actually solves the issue fully. The problem began when I went into my cameras attributes to alter the near and far clipping. But now whenever i go into the top or right view, essentially anything other than perspective mode, the camera is not viewing the object, pressing F to focus does nothing, and the only way to get it working is to select the camera in the outliner and then set its Translate values to 0,0,0. Also whenever i do mess with those value the camera is set to like x -13072, y-6600 z 452.6, some random value that i dont understand. Is it possible to reset the ortho cameras to their default orientation or reset the  camera settings?

Replies

  • sprunghunt
    Offline / Send Message
    sprunghunt polycounter
    I have a button that does this:

    <p>setAttr "perspShape.farClipPlane" 1000;</p><p><br></p><p>setAttr "perspShape.nearClipPlane" 0.01;</p><p><br></p><p>setAttr "persp.translateX" -60;</p><p><br></p><p>setAttr "persp.translateY" 60;</p><p><br></p><p>setAttr "persp.translateZ" 60;</p><p><br></p><p>setAttr "persp.translateY" 40;</p><p><br></p><p>setAttr "persp.rotateX" -30;</p><p><br></p><p>setAttr "persp.rotateY" -45;</p><p><br></p><p>setAttr "persp.rotateZ" 0;</p><p><br></p><p>setAttr "perspShape.centerOfInterest" 90;</p><p><br></p><p><br></p><p>setAttr "topShape.farClipPlane" 1000;</p><p><br></p><p>setAttr "topShape.nearClipPlane" 0.01;</p><p><br></p><p>move -a -ws 0 100 0 top;</p><p><br></p><p><br></p><p>setAttr "frontShape.farClipPlane" 1000;</p><p><br></p><p>setAttr "frontShape.nearClipPlane" 0.01;</p><p><br></p><p>move -a -ws 0 0 100 front;</p><p><br></p><p><br></p><p>setAttr "sideShape.farClipPlane" 1000;</p><p><br></p><p>setAttr "sideShape.nearClipPlane" 0.01;</p><p><br></p><p>move -a -ws 100 0 0 side;</p><p><br></p><p>hideShow -cameras -hide;</p><p><br></p>
    <p></p>


  • jakemoyo
    Offline / Send Message
    jakemoyo polycounter lvl 6
    @sprunghunt
     Heck Yes dude! I did have to mess with those near and far clip plane values because they were way to small for my scene. Is it possible i need to alter my units setting or something? I currently have them set to what i believed worked best for unreal. But the near clip you have set in the script turns every object flickering black and i could  only see like right what was in front of me. What would you recommend?
  • sprunghunt
    Offline / Send Message
    sprunghunt polycounter
    jakemoyo said:
    @sprunghunt
     Heck Yes dude! I did have to mess with those near and far clip plane values because they were way to small for my scene. Is it possible i need to alter my units setting or something? I currently have them set to what i believed worked best for unreal. But the near clip you have set in the script turns every object flickering black and i could  only see like right what was in front of me. What would you recommend?
    Oh those settings are specific to the scale of the project I'm currently working on. You'll need to adjust them yourself to a good clip value. 

    What scale are you using? 
  • jakemoyo
    Offline / Send Message
    jakemoyo polycounter lvl 6
    My working units are centimeters. Which i guess makes sense that would put my far clip at like 100m which is no good for the modular building set im working on. Haha. Good to know though and thanks again dude!
Sign In or Register to comment.