Frame Selection ("F" key) zoom out problem

Frame Selection ("F" key) zoom out problem

Anonymous
Not applicable
30,790 Views
19 Replies
Message 1 of 20

Frame Selection ("F" key) zoom out problem

Anonymous
Not applicable

Hello, guys! As shown below on the gif, when I try to focus an object with Frame Selection command ("F" key), it jumps out far enough so I need to zoom back to operate with.  It's pretty annoying and doesn't look like intended to be. Any advice?

7b580d2f28bd2b50b5747d5135549133

0 Likes
Accepted solutions (2)
30,791 Views
19 Replies
Replies (19)
Message 2 of 20

sean.heasley
Alumni
Alumni
Accepted solution

Hi @Anonymous 

 

Can you try the other commands like Frame All and then try Frame Selection again?

 

Also, if you scale up the cube a bit and then try it does it still not work?

 

If that doesn't help you may want to try deleting your settings/preferences.

 

 

0 Likes
Message 3 of 20

sean.heasley
Alumni
Alumni

Hi @Anonymous 

 

I'm just checking in again to see if you need more help with this. Did the suggestion I provided yesterday work for you?

If so, please click Accept as Solution on the posts that helped you so others in the community can find them easily.

 

 

0 Likes
Message 4 of 20

Anonymous
Not applicable

Hi, @sean.heasley 

Sorry for the late answer.

Frame All works the same way and Frame Selection still does after it.

And it still doesn't work after scaling the cube (

And deleting preferences too.

 

But I found someone with the same problem from the past 🙂

fitPanel -selected
This command does not seem to work good when I use it, it puts the object in the center of the panel (in perspective view), but it is to far away from the camera. 
It seems to work ok in the top, front and side view, but with the perspective view, the object is set to far from the camera . . . . is there an alternative way to do this?

https://simplymaya.com/forum/showthread.php?t=21989

 

...with no answer for his request, unfortunately 😞

And in my case not only the perspective camera flies away but all of them.

May it be a kind of scripted camera settings or something?

 

Thanx for trying to help me, I really appreciate it!

 

0 Likes
Message 5 of 20

Lindsey_Robbins
Advocate
Advocate

Easiest way to reset the wonky F viewport is to hit Alt-home, which should reset the viewport.  You can also select View>select camera and change the crazy-ass numbers to something more sane. Or you can make a new perspective camera.

 

All three ways basically reset the transforms of the viewport 'camera'. 

 

 

 

 

Message 6 of 20

Anonymous
Not applicable

Thank you, @Lindsey_Robbins!

But the hope of the F-hotkey working properly is still alive in my heart )

Until that moment, I'll use Alt+Home with your advice! 

Message 7 of 20

Anonymous
Not applicable

I swear I tried it earlier and it didn't work so I'm used to living with this pain, but today I tried to fix another Maya problem (it didn't save my preferences) with this trick and it helped for both problems. So I just reset my pref folder. Thanks for the help!

Message 8 of 20

Anonymous
Not applicable
Accepted solution

Easier fix

Go to settings. Camera category.  Set the Fit Factor to 1. 

That's it.

 

No idea why it changes.

Message 9 of 20

neuberl
Contributor
Contributor

Awesome, thanks for posting this. WOrks perfect again.

0 Likes
Message 10 of 20

Anonymous
Not applicable

Genius!!

Thanks!

 

0 Likes
Message 11 of 20

Anonymous
Not applicable

Oh my god thanks! This fixed it for me. I'm glad someone had a better answer than "Delete your preferences" in which case you may as well just say "unplug it and plug it back in" - just lazy.

Message 12 of 20

Anonymous
Not applicable

You are my saviour! Thank you! 

Message 13 of 20

rozaabd
Community Visitor
Community Visitor

you should close maya and go to document/maya/maya version/prefs, and than you find userPrefs, open it with notepad or whatever, Find "-fv "defaultFitFactor" 0" and replace with "-fv "defaultFitFactor" 0.1 - 0.95". 

 

your "F" key will be ok

0 Likes
Message 14 of 20

Anonymous
Not applicable
ankush,

 

Thank you so much! That fix solved it for me! For some reason, the fit factor just changed by itself. 

0 Likes
Message 15 of 20

dderbez
Explorer
Explorer

This is IT! thanks!

This is a Real solution, not just deleting preferences and reinstalling maya from scratch. 

 

Dude THANKS 

Message 16 of 20

nadiaalaskari
Observer
Observer

While the solution was posted. They recommended changing the fitFactor to a greater value >0 I think it was anything over 0.8. however this is to be changed in the userPref.mel file that is normally created when you install Maya which generally sits in the documents folder. 
However if you wanted to do this within maya rather than fuss with the userPref file then go to :
(
Windows > Settings/Preferences > Preferences), Settings sub-section, Cameras section. 

nadiaalaskari_0-1622821677537.png


Hope this helps 🙂 This solved my issue with the F key zoom out. 

 

 

Message 17 of 20

maximeneko
Participant
Participant

thank you a lot !

0 Likes
Message 18 of 20

dgeeQYWSW
Contributor
Contributor

My student is having the same issue none of the solutions above help. Here is their file.  I had them delete the preference and that still did not work.   I was not able to reproduce it on my machine so it might be something local to the school computer.

Message 19 of 20

nadiaalaskari
Observer
Observer

@dgeeQYWSW  did you try this? 
I guess message reply didn't work, scroll up to message 16,my post.

0 Likes
Message 20 of 20

dgeeQYWSW
Contributor
Contributor

Yes, I did that as well he was still having the same issue.