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: 

Use the hotkey or marking menu to lookThru to the camera in the scene.

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
amaterasu-qbb
804 Views, 3 Replies

Use the hotkey or marking menu to lookThru to the camera in the scene.

  1. How to lookThru with hotkey?
  2. How to lookThru with the marking menu?
How to lookThru the camera in a scene in Maya is
  • MMB dragging a camera from the Outliner to Perspective View
  • View panel to Perspective>camera1
In blender 2.8, I can use the shortcut key 0 to look through to a camera in a scene.
If there is more than one camera in a scene, you can change to the selected camera with Ctrl+0.
and can select camera from resolution gate edge
 
So I will customize Maya.
In python and MEL's Help, the command lookThru would apply to this, but
If I run it on a camera named camera1, I'll get the
Error: RuntimeError: file <maya console> line 9: Too few arguments given.

I get an error like this.

This means that the name of the camera created by Ctrl+Shift+C can be persp1 in some cases, and
It may not run properly.

What can I do?

Other references.
Tags (2)
Labels (1)
3 REPLIES 3
Message 2 of 4

Sorry for putting up the wrong video.

The purpose of the wrong video was to show that you can select it by clicking on the border of the Resolution gate.
If you can figure out how to do this, please let me know.

Here is the correct one.

The right video.

 

Message 3 of 4

Hi Amaterasu

this MEL script may help:

 

string $lookAt_01[]=`ls -sl`;
if (size($lookAt_01)==0){
warning "pleas select a light or a camera or a compatable object";
}else {lookThroughModelPanelClipped $lookAt_01[0] modelPanel4 0.001 1000;}

 

 

watch the video attachment "lookAtSelection.mp4":

 

Message 4 of 4

Hi! @Abdulla-Qaladzay .

Sorry for the very late reply 😭 you are a genius.
Your command is exactly what I needed! It would be great to register this as a hotkey. Thank you so much!!!

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

Post to forums  

Autodesk Design & Make Report