You can save this animation as a GIF file using capture key word. You can see parts of the molecule disappear and appear again. Move 0 360 0 -30 0 20 0 0 5 delay 2 select hydrogen color yellow select carbon color green slab on slab 50 move 0 360 0 30 0 -20 0 0 5 slab off. Press up arrow key again and edit the previous command as shown on the console. Use select key words to change the color of the hydrogens and carbons.Īdd a slab command to make certain parts of the molecule to disappear and appear. Move 0 360 0 -30 0 20 0 0 5 delay 2 select hydrogen color yellow select carbon color green move 0 360 0 30 0 -20 0 0 5 Įdit the command as I have shown here on the console. We can also change the color of the atoms during this animation.Īgain press up arrow key to get the previous command. Then type another move command after this delay command.ĭon't forget to add semicolon at the end of each keyword command. Here the delay command pauses the script for 2 seconds, before executing the next command. Press up arrow key on the key board to get the previous command. We can create more interesting animation by adding more commands to the existing one. Parameter 9 is the amount of time, in seconds, taken in performing the move command. It removes atoms to a specified depth so that interior features may be easily observed. The next three parameters deal with translation along the three axes.Ĩth is the slab parameter. ![]() Positive for zoom in and negative for zoom out. The First three parameters are rotations around X, Y and Z axes.Ĥ th is the zoom modifier, expressed in positive or negative numbers. There are nine parameters in the move command. The command line starts with the word move.įollowed by numbers that quantify a set of animation parameters. Now we have a model of ethane on screen.Īt the prompt type the following command. I will begin with a simple move command using ethane as an example.Ĭreate a model of ethane using modelkit menu.Ĭlick on the modelkit icon, then click on hydrogen.Ĭlick on the modelkit icon, a model of methane appears on the screen.Ĭlick on the hydrogen. Let us open the Jmol window and demonstrate an animation using move command. Visit the web page for Jmol interactive script documentation Loop command causes the script to restartĬapture command captures animations as animated GIF files. Slab command is used to control the percentage of the molecule to be displayed on panel. Move command allows you to rotate, zoom and translate a model within a specified period of time.ĭelay command is used to pause a script for the specified number of seconds This slide shows the function of each animation command in detail. If not, for relevant tutorials, please visit our website. To follow this tutorial you should have knowledge of,Īnd familiar with operations from Jmol window. Jmol script commands with the following keywords will be used for animations. ![]() In this tutorial, we will learn to show animations using Jmol script commands. Welcome to this tutorial on Animation using Script Commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |