Creating placeholder frames in FXTree 2005-06-21 - By todd akita
Back This might work. Kind of dirty but you can try it. Don't know what it does for alpha though but you can modify pretty easy.
-T
Eric Lampi wrote:
>I need to render whole frame ranges, even those that >have nothing in them unti the last few frames. >Instead of sending them through Batchserve and wasting >a lot of time for blank frames, I would like to use >the FXtree to basically export a black frame sequence >for those empty ranges. > >Can anyone give me a clue how I might automate this >for each pass? My alternative is to manually copy the >frame range and image path, a bit tedious, but it >would work. > >Any help would be appreciated. > >E > >Freelance 3-D Animator, F/X Artist, Particle Man >--- >Unsubscribe? Mail Majordomo@(protected) with the following text in body: >unsubscribe xsi > > > ****************************************SNIP
//get the passes, and filter out anything that is not a pass
Psel = GetValue("SelectionList"); logmessage (Psel(0)); for (i=0; i<Psel.count - 1; i++){
if (Psel(i).type == "#Pass") { logmessage (Psel(i) + " is a pass"); } else { RemoveFromSelection (Psel(i).FullName); logmessage (Psel(i) + " removed"); }
}
//these are all passes
Psel = GetValue("SelectionList");
for (P=0; P<Psel.count; P++){
var oTree = CreateFxTree(null); logmessage (oTree);
StartFr = getvalue (Psel(P)+ ".RenderOptions.StartFrame"); logmessage (StartFr); EndFr = getvalue (Psel(P)+ ".RenderOptions.EndFrame"); logmessage (EndFr); Xres = getvalue (Psel(P)+ ".RenderOptions.CameraXRes"); logmessage (Xres); Yres = getvalue (Psel(P)+ ".RenderOptions.CameraYRes"); logmessage (Yres); Pratio = getvalue (Psel(P)+ ".RenderOptions.PixelRatio"); logmessage (Pratio); ImgForm = getvalue (Psel(P)+ ".RenderOptions.ImageFormat"); logmessage (ImgForm); Fname = getvalue (Psel(P)+ ".RenderOptions.ImageFileName"); logmessage (Fname);
mFO = AddFxOp("FxTree", "FileOutput", null); logmessage (mFO); mCF = AddFxOp("FxTree", "PaintClip", null); ConnectFxOp(mCF, mFO, "1");
SetValue(mCF + ".Width", Xres, null); SetValue(mCF + ".Height", Yres, null); SetValue(mCF + ".SourceStart", StartFr, null); SetValue(mCF + ".SourceEnd", EndFr, null);
//set up renderparams SetValue(mFO + ".StartFrame", StartFr, null); SetValue(mFO + ".EndFrame", EndFr, null); SetValue(mFO + ".PixelRatio", Pratio, null); SetValue(mFO + ".ImageParser", "sgi", null); SetValue(mFO + ".FileName", Fname, null);
RenderFxOp(mFO, null); }
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|