This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vector position = {0,0,0}; | |
addpoint(0,position); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymel.core as pm | |
import math | |
listLens = [8, 12, 24, 35, 50, 80, 135 ] | |
cam = pm.ls( pm.PyNode(pm.modelPanel(pm.getPanel(wf = True), q = True, cam = True)) )[0] # Getr current viewport as camera | |
#cam = pm.ls( pm.PyNode('camera1') )[0] # Getr current viewport as camera | |
camFL = cam.focalLength.get() | |
camCI = cam.centerOfInterest.get() | |
camHFA = round(25.4*cam.cameraAperture.horizontalFilmAperture.get()) # Camera Aperture (mm) | |
camA = round(cam.getHorizontalFieldOfView()) # Camera Angle of view |