How Can We Help?

Reset Perspective Camera

You are here:
< Back to Wiki
import pymel.core as pm

# Check to see if perspective camera exists
if pm.objExists("|persp"):
    # Gets the perspective camera and sets it to not be a startup camera then deletes it
    perspective_camera = pm.PyNode("|persp"), e=True, startupCamera = False)

# Creates a new camera renames it perspective, hides it, and sets it to be a startup camera
new_perspective_camera =
new_perspective_camera[0].hide()[0], e=True, startupCamera = True)
pm.reorder(new_perspective_camera[0], front=True)

Leave a Reply

Table of Contents