<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Oops, missed these questions in my first reply...<div><br><div><div>On Aug 7, 2011, at 11:14 AM, Daniel Gurnon wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>runCommand("copy file C:\Users\Dan\Desktop" + "\\" +start + ".png" + " width 2000 width 2000 supersample 3")</div></blockquote><br><blockquote type="cite"><div>And while I'm at it,</div><div>How can I generically specify the desktop in a windows environment (so that I could give this to a student and they wouldn't have to change "Dan" in c:\users\Dan\Desktp")</div> <div>How can I change the filename for the image to reflect framenumber? </div></blockquote><br></div><div>In Chimera commands, tilde ('~') can be used in place of the user's home directory. Also, you probably want to prefix the string with 'r' so that the backslashes aren't handled specially by Python. Lastly, you probably want to zero-pad the PNG file names to make them sort correctly in listings and be easier to handle in scripts. Therefore, the above command becomes:</div><div><br></div><div><div>runCommand(r"copy file ~\Desktop\%06d.png width 2000 width 2000 supersample 3" % frameNumber)</div><div><br></div><div>The "%06d" will be replaced by a 6-digit version of frameNumber, padded with zeroes as needed.</div><div><br></div><div>--Eric</div></div></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p><br class="Apple-interchange-newline"></div></span> </div><br></body></html>