import maya.cmds as cmds 

selection = cmds.ls(sl=True)
ws = cmds.workspace(q = True, fullName = True)
wsp = ws + "/" + "images"
cmds.sysFile(wsp, makeDir=True)


for i in range(0,50):
    cmds.xform('Lamborginhi_Aventador',  ws =True,  relative=True, rotation=(45, 45, 45) )
    cmds.saveImage( currentView=True )
    imageSnapshot = wsp + "/" + "image" + str(i) +".jpg"
    cmds.refresh(cv=True, fe = "jpg", fn = imageSnapshot)

c15345799e4b5f5f65659eb7e10717feee19263f
<mask token>

<mask token>
cmds.sysFile(wsp, makeDir=True)
for i in range(0, 50):
    cmds.xform('Lamborginhi_Aventador', ws=True, relative=True, rotation=(
        45, 45, 45))
    cmds.saveImage(currentView=True)
    imageSnapshot = wsp + '/' + 'image' + str(i) + '.jpg'
    cmds.refresh(cv=True, fe='jpg', fn=imageSnapshot)

<mask token>
selection = cmds.ls(sl=True)
ws = cmds.workspace(q=True, fullName=True)
wsp = ws + '/' + 'images'
cmds.sysFile(wsp, makeDir=True)
for i in range(0, 50):
    cmds.xform('Lamborginhi_Aventador', ws=True, relative=True, rotation=(
        45, 45, 45))
    cmds.saveImage(currentView=True)
    imageSnapshot = wsp + '/' + 'image' + str(i) + '.jpg'
    cmds.refresh(cv=True, fe='jpg', fn=imageSnapshot)

import maya.cmds as cmds
selection = cmds.ls(sl=True)
ws = cmds.workspace(q=True, fullName=True)
wsp = ws + '/' + 'images'
cmds.sysFile(wsp, makeDir=True)
for i in range(0, 50):
    cmds.xform('Lamborginhi_Aventador', ws=True, relative=True, rotation=(
        45, 45, 45))
    cmds.saveImage(currentView=True)
    imageSnapshot = wsp + '/' + 'image' + str(i) + '.jpg'
    cmds.refresh(cv=True, fe='jpg', fn=imageSnapshot)

import maya.cmds as cmds 

selection = cmds.ls(sl=True)
ws = cmds.workspace(q = True, fullName = True)
wsp = ws + "/" + "images"
cmds.sysFile(wsp, makeDir=True)


for i in range(0,50):
    cmds.xform('Lamborginhi_Aventador',  ws =True,  relative=True, rotation=(45, 45, 45) )
    cmds.saveImage( currentView=True )
    imageSnapshot = wsp + "/" + "image" + str(i) +".jpg"
    cmds.refresh(cv=True, fe = "jpg", fn = imageSnapshot)
