image resize
http://tech-artists.org/forum/showthread.php?t=1673
# Python code: import maya.OpenMaya as om def resizeImage(sourceImage, outputImage, width, height): image = om.MImage() image.readFromFile(sourceImage) image.resize( width, height ) image.writeToFile( outputImage, 'png') resizeImage('<sourceImage.png>','<outputImage.png>', 800, 600)
0개의 덧글:
댓글 쓰기
에 가입 댓글 [Atom]
<< 홈