Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # timeLaps.py
- # Script to take the picture
- # Place in ~/Documents/
- # cwisbg.com
- from pymel.core import *
- import shutil as s
- import os
- def takePicture(fileNumber):
- fileName = "timeLaps" + fileNumber
- rotate("rotate_grp", 0,1,0,os=1,r=1)
- tmpDirectory = (os.path.expanduser("~/Documents/maya/projects/default/images/tmp/timeLaps.iff"))
- filePath = (os.path.expanduser("~/Desktop/productionFarm_projects/timeLaps/"+fileName+".iff"))
- hwRender(cam="camera1", cf=1, fnp = 1, d=1)
- s.copy2(tmpDirectory, filePath)
- print "picture taken", fileName + ".iff"
Advertisement
Add Comment
Please, Sign In to add comment