function snapCams label size:[320,240] frames: folder:"D:/新建文件夹/" =
(
for c in cameras do --- 如果有目标他把目标也进行一次的渲染
(
local fname = folder + label +"_"+ c.name
print fname
if frames == unsupplied then
render camera:c outputFile:(fname + ".jpg") outputsize:size
else
render camera:c frameRange:frames outputFile:(fname+".avi") outputSize:size
)
)
snapCams "mm" size:[640,480]