On 10/15/2014 04:00 PM, Brenton Horne wrote:
No rotation occurred, when I placed it into the console, when I placed
it into the editor and pressed "Run" it just caused a blank line to be
written in the console. No rotation of the molecule occurred.
Then the extra linefeeds visible in your screenshot might be a problem.
I have attached the function now in a text file attached to this email.
Since you are working with the application you can save it into the Jmol
directory and easily execute it from your harddrive using the 'script'
command, avoiding any copy/paste problems:
script "export_animation.txt"
I have added a print command to the function. So now for each image that
is written there should be written a message like this:
"Writing image file jmol_movie_001.png (1 of 180)..."
Regards,
Rolf
--
Rolf Huehne
Postdoc
Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany
Phone: +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail: [email protected]
Website: http://www.fli-leibniz.de
Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein
VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228
function exportAnimation(baseFilename, sizeX, sizeY, stepCount, stepCommandSet)
{
var printFormat = "" + baseFilename + "_%0" + stepCount.length + "d.png";
var savedBackgroundColor = backgroundColor;
background [x101010];
for (var i=1; i<=stepCount; i++) {
var filename = format(printFormat, i);
var writeCommand = "write IMAGE " + sizeX + " " + sizeY + " PNGT 9 " +
fileName;
print "Writing image file " + filename + " (" + i + " of " + stepCount +
")...";
var dummy = script(writeCommand);
dummy = script(stepCommandSet);
}
background @savedBackgroundColor;
}
exportAnimation("jmol_movie","500","500","180","rotate axisangle {1 1 0} 2");
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users