It's a bug. Workaround is to create the whole command as a variable  
and then execute it with

Script inline @x

Sent from my iPhone

On Oct 2, 2009, at 2:05 PM, Kirill Speranskiy <[email protected]> wrote:

> 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;
>
>
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register  
> now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to