Monday, 23 May 2011

monday the 23 may

today was not a good day for me.

first of all my maya leience run out, i rember dan sayin3g about changing the clocks would work but nope tha did happen, in the end after a few hours i sorted it and moved on rendering scene 1 shot 1

but due to how the file is cerupet we need to use a special code in maya script editor which alow u to render from the render view. this is the only wy we can render the shot out the only problem is that after 9 frame its would go like you see it all hightlighted red.

( this is the code) which keith found

// Batch rendering workaround - John Mather (NextDesign)
string $filename = "ContainmentSHOT1 2";
string $cameraName = "Test:SHOT1";

int $startFrame = 108;
int $endFrame = 234;

string $directory = (`workspace -q -rd` + "images/");

for ($i = $startFrame; $i <= $endFrame; $i++)
currentTime $i;

// Old version
// render -x `getAttr defaultResolution.width` -y `getAttr defaultResolution.height` $cameraName;

// New version - supports MR and other renderers!
renderWindowRender redoPreviousRender renderView;

string $concatFilename = $directory + $filename + "." + $i;

if (`getApplicationVersionAsFloat` >= 2011)
// Thanks to nowayfra on creativecrash for his workaround
catch(eval(renderWindowSaveImageCallback ("render view", $concatFilename, `getAttr defaultRenderGlobals.imageFormat`)));
renderWindowSaveImageCallback ("render view", $concatFilename, `getAttr defaultRenderGlobals.imageFormat`);

print ("Saved " + $concatFilename + "\n");

probs with maya

dans fault about date

render probles

got code rendders like 8 frames a ago

No comments:

Post a Comment