View Full Version : problem using batchHWR.mel??
sam3d 11-04-2002, 05:12 AM Hi all senior people,
I'm having problem using this script batchHWR.mel , the problem is keep render out perps camera instead of my cameraShape1?
How can I solve this problem ?? I need it urgently because I have almost 50 over passes to render??
Many thks??
cheer,
sam
|
|
dmcgrath
11-04-2002, 06:08 AM
make sure, if it is sourcing from your Render Globals, that you have the correct camera seleected in the pull-down menu.
sam3d
11-04-2002, 06:36 AM
Originally posted by sam3d
Hi all senior people,
I'm having problem using this script batchHWR.mel , the problem is keep render out perps camera instead of my cameraShape1?
How can I solve this problem ?? I need it urgently because I have almost 50 over passes to render??
Many thks??
cheer,
sam
Hello,
Thanks ..but I think that's for software render ..what about Hardware render buffer ??
dmcgrath
11-04-2002, 08:55 PM
My suggestion is maybe unclear. You are using a mel script, correct?
Can you read the MEL? Is there somwhere that you can easily change the hardware rendering camera to your camera name? Can you post the script for me to look at?
Maybe then I can help you, since I dont have the script.
sam3d
11-05-2002, 01:58 AM
Hi ,
Below is the mel ,and I 'm not familiar at this :scream:
// Alias|Wavefront Script File
// MODIFY THIS AT YOUR OWN RISK
//
// Creation Date: 22/03/1999
//
//
// author: Samy Ben Rabah sbrabah@aw.sgi.com
//
// Procedure Name: batchHWR
//
// Description:
// allows to batch render several scenes in one go
//
//
// Usage: batchHWR "scene1 scene2 scene3 ..."
//
//
// Note: to interrupt the all sequence, create an empty file called
// /usr/tmp/stopBatchRender (cf proc registerNextRender)
// That way, no subsequent rendering will be invoqued at the end of
// the current rendering.
//
//
global proc batchHWR(string $scenesSequence){
global string $scene[];
clear $scene;
global int $numberOfScenes, $nextRender, $stopRender;
$nextRender=0;
$stopRender=0;
tokenize($scenesSequence,$scene);
$numberOfScenes=size($scene);
executeRender();
}
global proc registerNextRender( string $image, int $fs, int $fe, int $fi, int $rate, string $path, string $filename )
{
global int $stopRender;
string $stopBatchRender="/usr/tmp/stopBatchRender";
if(!`filetest -r $stopBatchRender`)
executeRender();
else{
system("rm "+$stopBatchRender);
glRender -e -fc "flipbookRW";
}
}
global proc executeRender(){
global string $scene[];
global int $numberOfScenes, $nextRender;
if($nextRender<$numberOfScenes-1){
if (!catch(`file -f -o $scene[$nextRender]`)) {
glRenderWin;
glRender -e -fc registerNextRender;
$nextRender++;
glRender -rs hardwareRenderView;
}
else
glRender -e -fc "flipbookRW";
}
else{
file -f -o $scene[$nextRender];
glRender -e -fc "flipbookRW";
glRenderWin;
glRender -rs hardwareRenderView;
}
}
CGTalk Moderation
01-13-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.