Hello Elaine,<br><br>Thanks a lot for your mail. I am working on the
points you have suggested. However I am a bit confused whether my input
files will work in chimera or not?<br>Herewith I am attaching a sample
example of the dataset which I will be taking as the input, perform some
viewpoint operation on it and then make a movie. <br>
Can you please let me know whether this can be done in chimera or not?<br>If yes, can it be done in a python script file?<br><br>Regards,<br><font color="#888888">Chinmaya Joshi</font><br><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 9:42 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Chinmaya,<br>
Before you start scripting, the first thing to consider is whether Chimera can do what you want. Have you tried doing what you want to show in the movie, but while using Chimera interactively? From your description, I am concerned that Chimera may not read your input format. The input types are generally 3D data files, not images. The one exception is that an image stack can be used as a "volume data" input format. Here is information on what formats Chimera can read:<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/filetypes.html" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/filetypes.html</a>><br>
<br>
If you think Chimera can do what you want, here is information on making movies,<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html</a>><br>
<br>
...including commands for rotation and translation, etc.<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#moviecommands" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#moviecommands</a>><br>
<br>
...and example scripts<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#examples" target="_blank">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html#examples</a>><br>
<br>
...however, these examples are Chimera command scripts, not python scripts. I think python scripts would be more difficult to make than Chimera command scripts, and you would only start working with python if (A) Chimera can do what you want or nearly so, but (B) there are no Chimera commands for those things. After you figure out what you want to do by using Chimera interactively, then figure out the commands for those actions, then put them into a script. The last step would be to add movie recording commands to that script.<br>
<br>
I don't know python, so I can't say any more about using that approach.<br>
<br>
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><div></div><div class="h5"><br>
On Jun 10, 2011, at 6:26 PM, chinmaya joshi wrote:<br>
<br>
> Hello,<br>
> I want to write a script in python to open a set of images in chimera set a viewpoint(rotate, translate,etc). and make a movie out of them all through command line for my project.<br>
><br>
> Can someone please let me know how it can be done.<br>
><br>
> I am new to python.<br>
><br>
> Can anyone tell me any good links for these?<br>
><br>
> The documentation on chimera ucsf is a bit confusing.<br>
> Thanks.<br>
> Chinmaya<br>
<br>
</div></div></blockquote></div><br>