<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">One more suggestion about how to convert frame numbers to seconds in the perframe command for showing a label. You can use the perframe "range" option with floating point values, for example,<div class=""><br class=""></div><div class="">perframe "echo $1" range 0,0.4 frames 11</div><div class=""><br class=""></div><div class=""><div class="">0</div><div class="">0.04</div><div class="">0.08</div><div class="">0.12</div><div class="">0.16</div><div class="">0.2</div><div class="">0.24</div><div class="">0.28</div><div class="">0.32</div><div class="">0.36</div><div class="">0.4</div><div class=""><br class=""></div><div class="">So you would use the range option to specify the time interval corresponding to the specified number of frames (minus one).</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>tom</div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 26, 2019, at 6:02 AM, CLARA BLANES MIRA <<a href="mailto:c.blanes@goumh.umh.es" class="">c.blanes@goumh.umh.es</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Dear chimera users,</div><div class=""><br class=""></div><div class="">I have two doubts regarding per-frame actions:</div><div class=""><br class=""></div><div class="">1) I am trying to add a counter in my script (commands script, no python script). </div><div class=""><br class=""></div><div class="">It works when I do it as a per-frame action in the MD Movie window (just as Elaine does in the’Trajectory and ensemble Analysis Tutorial’) but I am not able to do insert it in my command script: </div><div class=""><br class=""></div><div class="">Something like this:</div><div class=""><br class=""></div><div class=""><div class=""><i class=""><br class=""></i></div><div class=""><i class=""><br class=""></i></div><div class=""><i class=""><font color="#0056d6" class="">movie record</font></i></div><div class=""><i class=""><font color="#0056d6" class="">2dlabels create timer text “frame 0" size 40 color white</font></i></div><div class=""><i class=""><font color="#0056d6" class="">alias ^actions 2dlabels change timer text "frame <FRAME>"</font></i></div><div class=""><i class=""><font color="#0056d6" class=""><br class=""></font></i></div><div class=""><i class=""><font color="#0056d6" class="">perframe actions; coordset #0 1,216000,1000 load false; wait 216; ~perframe </font></i></div><div class=""><i class=""><font color="#0056d6" class="">movie encode movie.mp4</font></i></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">2) What I really want is to show nanoseconds, not frames. In my case 1000 frames = 1 ns. When I write frame <FRAME>/1000 in MD Movie window, obviously, it does not work. Any suggestion to make it work and insert it in the commands script?</div><div class=""><br class=""></div><div class="">Thank you very much!,</div><div class="">Clara</div><div class=""><br class=""></div></div>_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></blockquote></div><br class=""></div></body></html>