How's this?
http://chemapps.stolaf.edu/jmol/docs/misc/jmol_transp.htm
using
*CAPTURE "jmol_transp.gif" transparent*
looks like dithering works!
Bob
On Tue, Oct 14, 2014 at 5:17 PM, Rolf Huehne <[email protected]> wrote:
> Am 14.10.14 21:02, schrieb Brenton Horne:
> > Hi Rolf
> >
> > I am a real noob when it comes to Jmol and scripting the only codes I've
> > ever implemented I've had to ask about on here, first, so I have
> > absolutely no idea as to how to implement this code, all I want is an
> > animated 3D GIF with a transparent background via whatever mechanism ya
> > can think of for me, provided it isn't like too tedious (which I define
> > as taking like >30 mins per GIF). I understand the size X and size Y, as
> > they're the width and height of the GIF files I want (or so I think,
> > correct me if I am wrong), respectively.
> >
> Yes, 'sizeX' and 'sizeY' set width and height of the image in pixel.
>
> Applying the script is quite easy:
>
> 1) Open the Jmol console from the popup menu ("Console")
>
> 2) Paste the function code into the lower part of the window. (The upper
> part displays results and messages.)
> Make sure that there are no extra line feeds introduced. Each script
> line should end either with a semicolon ';' or a brace '{','}'. You can
> edit the code after you pasted it in and before you run it. Combine any
> line that got split with the following one without deleting any space
> character.
>
> 3) Click the "Run" button and look for any error messages in the upper
> part of the console window. If it was succesful you can now use the
> command 'exportAnimation' like any other Jmol command until the applet
> is reloaded or the application is restarted.
>
> 4) Enter the command with the parameters you would like to use.
>
> The paramters in detail:
>
> 'baseFilename': the beginning part of the filename, identical to all
> files (e.g.: "jmol_movie")
>
> sizeX: width of the image in pixel (e.g.: "500")
>
> sizeY: height of the image in pixel (e.g.: "500")
>
> stepCount: the number of times the 'stepCommandSet' is run by the
> command ("animation steps"); this is also the number of images created
>
> stepCommandSet: Jmol commands used to animate the structure; multiple
> commands must be separated by semicolons; very often a rotation by a few
> degrees is wanted, but you could also do more sophisticated animations
>
> In my example the 'stepCommandSet' parameter
> "rotate axisangle {1 1 0} 5" does a rotation by 5 degrees. To get
> afull 360 degree rotation you need 72 steps. If you wanted to get a
> smoother rotation you could for example set it to 2 degrees and would
> need 180 steps ('stepCount' parameter) and get 180 images. But be
> careful, this will also make the resulting animated GIF much larger.
> Please look at the Jmol scripting documentation for more details on the
> 'rotate' command
> (http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#rotate).
>
> As you might have seen in my answer to Bob's surface test request, I
> would recommend now to do the conversion to 'indexed' mode manually
> (menu: "Image->Mode->Indexed", my translation of the german menu
> entries), setting the rastering option to one of the 'Flyd Steinberg'
> modes. The automatic conversion can give a quite poor result. But I
> would recommend to do the manual conversion after you have saved in XCF
> format. This way you still have the original full colors in there.
>
> Regards,
> Rolf
>
>
>
> ------------------------------------------------------------------------------
> 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
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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