POV-Ray : Newsgroups : povray.text.tutorials : tutorial: renaming each frame after render : tutorial: renaming each frame after render Server Time
13 Oct 2024 18:35:34 EDT (-0400)
  tutorial: renaming each frame after render  
From: Some Yahoo
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.