From: Kirill S. <ksp...@as...> - 2009-10-02 20:53:30
|
Hi All, I have a problem writing Pov-ray for single snapshot when I use a variable in the script. Write IMAGE works fine with variables write image @width @height @fileName; but when I use it for "write POVRAY @fileNamePovray" I have no output at all, although it works in setup like: write POVRAY "somename.pov" Any help is greatly appreciated. Thanks a lot!!! The following is my script: load_array=Array(); load_array[1]= "snapshot_00000001.pdb" ; load_array[2]= "snapshot_00000002.pdb" ; name = "./frame0000.gif"; namePovray = "./povray0000.pov"; nFrames = 2 ; thisFrame = 0; width = 800; height = 800; message loop; thisFrame = thisFrame + 1; load_file=load_array[thisFrame]; load @load_file; fileName = name.replace("0000","" + ("0000" + thisFrame)[-4][0]); fileNamePovray = namePovray.replace("0000","" + ("0000" + thisFrame)[-4][0]); write image @width @height @fileName; write povray @fileNamePovray; if (thisFrame < nFrames);goto loop;endif; |