I am newbie to Povray. I have coordinates for all beads with time in .XYZ file. Now I want to generate .png snapshot for each time, so that I can make movie using ffmpeg. My problem is this: I wanted to know, what is the format for file extension as loop variable.
In other words, i can read and generate snapshot at any particular time using following code:
fopen MyFile "confs.txt" read
#while (defined(MyFile))
#read (MyFile,Vector1,Vector2)
.......
.......
#end
Now I want to use another time loop with file extension as confs%d.txt, so that I can open and read million files and generate snapshot corresponding to each time.
Please give me your suggestions for using file extension as loop variable in Povray. This idea came from my C programming, where we use file extension as loop variable. If you have any other way of reading multiple files, please let me know.