POV-Ray : Newsgroups : povray.text.tutorials : tutorial: renaming each frame after render Server Time: 14 Dec 2018 00:38:46 GMT
  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 16: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-2008 Persistence of Vision Raytracer Pty. Ltd.