<div dir="ltr">Hi Elaine,<div><br></div><div>Thanks for your quick reply. The method you suggested is nice but I actually want to change the coordinates of the atom. In the present case, there is only one atom. In my next step, I will have to work with molecules and will have to make just a few atoms to move. And moreover, my project work uses chimera python for everything, so I would be glad if you can suggest me a python command.</div>
<div><br></div><div>Thanks.</div><div><br><div class="gmail_quote">On Tue, Jul 10, 2012 at 6:17 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu" target="_blank">meng@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Raju,<br>
It sounds like you are trying to do some programming, but instead you could just use Chimera commands, e.g. "move" to translate atom(s). Chimera commands can be entered into the Command Line (show using Favorites menu), or you can put them into a plain text file named *.cmd -- then opening the file in Chimera will execute the commands in the file.<br>
<br>
< <a href="http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/movies.html#moviecommands" target="_blank">http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/movies.html#moviecommands</a>><br>
<<a href="http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/indexcommand.html#cmdfile" target="_blank">http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/indexcommand.html#cmdfile</a>><br>
<br>
Example command: move x .1 50<br>
<br>
... to move along laboratory X axis 0.1 angstroms for each of 50 frames. I hope this helps,<br>
Elaine<br>
----------<br>
Elaine C. Meng, Ph.D.<br>
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<div class="HOEnZb"><div class="h5"><br>
On Jul 10, 2012, at 9:07 AM, Raju Purohit wrote:<br>
<br>
> Hello friends,<br>
><br>
> I need some help here.<br>
><br>
> I created a basic model having just an atom and set its coordinates as (0,0,0). Now I want to make it move along a certain path defined mathematically (say, along x axis) and I need to see it move. So I used a for loop. But I couldn't see and motion and soon realised that the loop is very quick in executing and thus I could see the atom at its last coordinates. So I tried to add delay of 0.5 seconds for each loop by importing time module and useing time.sleep. But still I couldn't see any motion and the coordinates of the atom is set only at the end of the for loop. I could not see the intermediate path. I am sure you people must have tried this earlier and this problem has a solution but I just couldn't figure it out.<br>
><br>
> Can you please help me out?<br>
><br>
> Thank you in advance.<br>
><br>
> --<br>
> Raju R.N.<br>
> Third Year, B.Tech<br>
> Mechanical Engineering<br>
> National Institute of Technology Karnataka, Surathkal<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Raju R.N.</div><div>Third Year, B.Tech</div><div>Mechanical Engineering</div><div>National Institute of Technology Karnataka, Surathkal</div>
</div><br>
</div></div>