Instantly share code, notes, and snippets.

@fereria /changeOverScan.py Secret
Last active Aug 29, 2015

Embed
What would you like to do?
import pymel.core as pm
#0.1刻みで増やす(減らす)
selectCam = pm.ls(sl=True)
#増減する量をセット(マイナスにする時は -0.1)のように値を変更する
inDec = 0.1
for sel in selectCam:
camNode = sel.getShape()
if pm.objectType(camNode) == "camera":
val = camNode.overscan.get()
camNode.overscan.set(val + inDec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment