-
-
Save fereria/b1a48d79ea295d9342d6 to your computer and use it in GitHub Desktop.
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 | |
#FocalLength を10刻みで+する or ー する | |
selectCam = pm.ls(sl=True) | |
#増減する量をセット(マイナスにする時は -10)のように値を変更する | |
inDec = 10 | |
for sel in selectCam: | |
camNode = sel.getShape() | |
if pm.objectType(camNode) == "camera": | |
val = camNode.focalLength.get() | |
camNode.focalLength.set(val + inDec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment