Focus on object

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  06 June 2018
Focus on object

I am writing a script in Python that will automate a number of parameters for all cameras in a scene. One of the things I want to do is to make all cameras focus on a selected object (like when you press F on the view panel). I've been looking around and also tried to echo all commands and still have no clue on how to do it. Anyone can help me on what commands to use?

EDIT. I'm sorry I was too anxious to ask here. The solution is to use the command viewFit.

Last edited by crisosie : 06 June 2018 at 09:22 AM.
  06 June 2018
I believe only one camera can be focus on an object at a point of time and not multiple camera can do it. Let's see if we get more thoughts on it.
Download Vehicle Rig
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:16 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.