Hi
I have written a script for batch rendering in view just like 3dsmax and its also works well.
The Problem is if I want to Break the operation after some frames I can't able to stop the process
as it is using the For Loop. So is there any way to handle this problem. I have an idea of using a
Trigger to stop the process. But is there anything similar to kbhit() (or) getch() functions from C (or) C++
in Maya. I will appreciate if anybody suggest any good solution for this problem.This is my Script.
int $L;
int $E=getAttr defaultRenderGlobals.endFrame;
string $F;
int $S=getAttr defaultRenderGlobals.startFrame;
string $A=getAttr defaultRenderGlobals.imageFilePrefix;
string $EX=getAttr "defaultRenderGlobals.outFormatExt";
RenderViewWindow;
for($L=$S;$L<=$E;$L++)
{
currentTime $L;
$F="D:/_MayaProjects/images/"+$A+$L+$EX;
renderWindowRender redoPreviousRender renderView;
renderWindowSaveImageCallback "renderView" $F "Targa";
playButtonStepForward;
};