POV-Ray : Newsgroups : povray.text.tutorials : tutorial: renaming each frame after render Server Time
21 Nov 2024 12:51:37 EST (-0500)
  tutorial: renaming each frame after render (Message 1 to 1 of 1)  
From: Some Yahoo
Subject: tutorial: renaming each frame after render
Date: 5 Jun 2009 12:48:16
Message: <4a294c50@news.povray.org>
I found this useful for creating an image name from a string created while rendering.

The string 'newname' is calculated during the parse.


//by Bryan Valencia
//POV-RAY v. 3.6
//Create and execute a DOS Batch command after each frame
//example


//works with the following line in the render ini file
//Post_Frame_Command=fix.bat %o

#declare cmd1=concat("del  \"",newname,"\"\n");
#declare cmd2=concat("ren %1  \"",newname,"\"\n");


#fopen myfile "fix.bat" write
#write(myfile, cmd1)
#write(myfile, cmd2)
#fclose myfile


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.