<div dir="ltr"><div>Hi Elaine,</div><div>Thank you! The model is #2 and it has 31 frames in this animation so for me it should be the following correct?</div><div><br></div><div>alias ^getobj export ~/Desktop/chimera/$1.obj <br>perframe getobj zeropad 3; coordset #2 1,31; wait 31; ~perframe<br></div><div><br></div>The problem I have is I get the following error message and it only outputs the 001 file. The folder exist and is written to.<div><br></div><div>Best regards,</div><div>Edel <div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><img src="cid:ii_jy5ub0190" alt="Screenshot 2019-07-16 at 15.15.21.png" width="466" height="269"><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Jul 2019 at 18:07, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Edel,<br>
You didn’t say what “without success” meant. However, here is a more specific example.<br>
<br>
Say your trajectory is model #0 with 800 frames… commands could be something like:<br>
<br>
alias ^getobj export ~/Desktop/test/$1.obj <br>
perframe getobj zeropad 3; coordset #0 1,800; wait 800; ~perframe<br>
<br>
… which would save 001.obj, 002.obj… 800.obj (and 001.mtl, 002.mtl… 800.mtl) in ~/Desktop/test/<br>
<br>
The folder should already exist, that is, you would have to create ~/Desktop/test/ before running those commands.<br>
<br>
This is almost the same as the first example in the “perframe” manual page, except that instead of roll (rotate) it plays the trajectory with the coordset command.<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/perframe.html" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/perframe.html</a>><br>
<br>
The link you sent was to the documentation of Chimera 1.5.2, VERY old… I hope you aren’t really using such an old version. Chimera is at 1.13.1 now with many improvements since 1.5, both new features and bugfixes.<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/download.html" rel="noreferrer" target="_blank">http://www.rbvi.ucsf.edu/chimera/download.html</a>><br>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D.<br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Jul 15, 2019, at 5:26 AM, Edel Fenix <<a href="mailto:edel.fenix@gmail.com" target="_blank">edel.fenix@gmail.com</a>> wrote:<br>
> <br>
> Exporting per-frame command and getting one OBJ file for each frame would work but I've tried without success.<br>
> <br>
> In this case I want to export an already complete morph confirmation scene loaded as a separate (and only) model in MD Movie with 31 frames to individual wavefront OBJ files. <br>
> <br>
> From MD movie where the model is assembled I can select per-frame and select define script, I've tried using the examples and rewriting them to the best of my ability without success. I don't want it to do anything except export each frame from the MD movie setup in OBJ format. What should I write?<br>
> <br>
> <a href="http://www.cgl.ucsf.edu/chimera/1.5.2/docs/UsersGuide/midas/perframe.html" rel="noreferrer" target="_blank">http://www.cgl.ucsf.edu/chimera/1.5.2/docs/UsersGuide/midas/perframe.html</a><br>
> <br>
> I appreciate the help, Edel<br>
> <br>
> <br>
> On Thu, 11 Jul 2019 at 23:04, Tom Goddard <<a href="mailto:goddard@sonic.net" target="_blank">goddard@sonic.net</a>> wrote:<br>
> You should use the Chimera perframe command to write out an OBJ file for each frame of the trajectory. There is nothing in Chimera that will put all the frames in one 3d graphics scene file.<br>
> <br>
> Tom<br>
<br>
</blockquote></div>