Basically it is to circumvent LW keeping track of the radiosity cache in memory as it does with F10. With F9 one can get great results with a GI trick, F10 ruins it since it relies and reverting back to the base static cache per frame.
Would this be possible?
(saving of images would be done by one of the buffer savers in Image Filters I guess)
Well I sort of got it working, but there is a problem.
If you have 'Render Display' set to 'None' it asks you every frame if you want to turn on the 'Image Viewer'.
If you say no, it doesn't render the frame.
If you say yes, it jumps to the last frame and renders that only, I have no idea why it does this.
AutoConfirm(1) automatically closes the 'Preview' render display, which would work, if you set 'Render Display' to Render2Image, but I can't figure out why it's only rendering the last frame.
Here's the code if anyone can figure it out.
Code:
@name "F9 Frame Render"
@script generic
generic
{
// Get scene render range info
first_frame = Scene().renderstart.asNum();
last_frame = Scene().renderend.asNum();
frame_step = Scene().framestep.asNum();
// Turn on Auto Confirm (closes render preview window automatically)
AutoConfirm(1);
// Loop through frames
for(loop = first_frame; loop <= last_frame; loop+= frame_step)
{
// Go to frame
GoToFrame( loop );
// Show info
info("Rendering Frame: " + loop + " / " + last_frame + " Step: " + frame_step);
// Render frame
RenderFrame();
}
}
__________________ www.pixsim.co.uk - video tutorials, scripts 'n' stuff
Just a shot in a dark: but try using Master class scripts with the process callback looking for the RENDER_DONE event. This keeps track of the init and completion of the render.
__________________ "The hardness of God is kinder than the softness of men, and His compulsion is our liberation." - C.S. Lewis
Just a shot in a dark: but try using Master class scripts with the process callback looking for the RENDER_DONE event. This keeps track of the init and completion of the render.
Quote:
Originally Posted by walfridson
^ what he said
Look at RenderQ.ls Bit undocumented.
I did think of using a Master script, even looked at RenderQ.ls, I'm not very up on Master Scripts, but will take a look another look.
__________________ www.pixsim.co.uk - video tutorials, scripts 'n' stuff
Thanks for the script Matt! This is also really handy for the bug that exists in LW 9.6 (and in HC for sure) that buffers all frames if you're using a background image sequence.
very curious to see how this will turn out...
btw, tested the Render2ImageFP, got a crash the first time i used it, not after though...
might very well do the job.
edit: just tested, both Render2ImageFP and F9 Render Sequence runs great
urm,... eh,... Render2ImageFP doesn't actually preview anything, sorry... was sleeping.
so, i guess that one doesn't work...
edit: agh, i keep going back and forth here, using Render2ImageFP now to avoid pop-ups...
not really sure if i'm doing things right...
Render2ImageFP from what I can gather (not actually used it) does the same thing as NT's Render2Image, it renders into the Image Editor, but allows you (apparently) to save over the same image, rather than adding every frame you render.
So it's not so much about not having the Image Viewer popup, as using using NT's Render2Image would put you in the same boat (holding all Frames rendered in memory) it's about being able to render to the Image Editor and replace the last rendered Frame in there, thus saving memory.
__________________ www.pixsim.co.uk - video tutorials, scripts 'n' stuff
... that's great, cheers a bunch Matt works like a treat with the psd export.
As PSD's would be an extra pain I tried to use DPont's Node Pixel Filter to save out the images. Funny thing is if I press F9 it works, if I use your script however I can't get it to save the images ? Well it actually worked once but I have no idea why it worked in that instance ? Weird.
Here's the setup & scene if anyone is interested. Might need Denis's help.