<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Sumitro,<div><span class="Apple-tab-span" style="white-space:pre"> </span>It's doable, but requires some Python. Open IDLE (under General Controls) and type:</div><div><br></div><div>for m in chimera.openModels.list(modelTypes=[chimera.Molecule]):</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>vals = [r.ribbonStyle.size for r in m.residues]</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>print m, min(vals), max(vals)</div><div><br></div><div>The above will print the min/max scale used for each molecule model you have open. You could also put the above into a .py file (you would need to add "import chimera" as the first line though) and execute it using File->Open. The numbers would then be printed to the reply log.</div><div><br></div><div>--Eric</div><div><br><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div><div><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "><br></font></div></div></span></div><div><div>On Jan 4, 2011, at 7:15 PM, Sumitro Harjanto wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Elaine,<br><br>Actually, I use "render by attribute" tool to set (scale) the ribbons'<br>('Worms') thickness accordingly. So I din actually use the Ribbon style<br>editor. I understand I should be able to find the absolute thickness of<br>each residue in the session file (somewhere), but is there a relatively<br>simple way to find out the scale I have used for the worms thickness..? <br><br>It's not really a big problem, I can always estimate the scale again, so<br>if it's complicated and having to dig deep into the session file then<br>it's okay. =] thanks!<br><br>Cheers,<br>Sumitro <br><br>-----Original Message-----<br>From: Elaine Meng [<a href="mailto:meng@cgl.ucsf.edu">mailto:meng@cgl.ucsf.edu</a>] <br>Sent: Wednesday, January 05, 2011 2:23 AM<br>To: Sumitro Harjanto<br>Cc: <a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>Subject: Re: [Chimera-users] retrieving assigned color and ribbon<br>thickness<br><br>Hi Sumitro,<br>You can use the Selection Inspector to get color RGB values. For<br>example, you could Ctrl-click to select one residue's ribbon segment,<br>then click the green magnifying glass on the lower right corner of the<br>Chimera window to open the Selection Inspector, and then inspect<br>"Residue" -- there will be a square color well with the ribbon color,<br>and if you click that color well, the Color Editor will appear with that<br>color in it, and sliders showing the RGB values. <br><br>When you were originally setting the ribbon dimensions in the Ribbon<br>Style Editor, if you saved the settings with a name, the name will be<br>shown as the "ribbon scaling" in the Residue part of the Selection<br>Inspector. You would have to reopen the Ribbon Style Editor and go to<br>that name again to see what the corresponding dimensions were. If you<br>didn't give the settings any name, however, I don't know of any easy way<br>to figure out the exact dimensions. If you had a session file, it is<br>embedded in there somewhere, but I don't know how to find it. Maybe<br>someone else can advise on that point. However, clearly the better way<br>if you are starting anew is to give the settings a name in the Ribbon<br>Style Editor before applying them to the structure.<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><br>On Jan 3, 2011, at 9:40 PM, Sumitro Harjanto wrote:<br><br><blockquote type="cite">Hi Elaine, <br></blockquote><blockquote type="cite">I'm wondering if it is possible to retrieve the numerical (RGB) values<br></blockquote>of the color & ribbon width that I have previously assigned to certain<br>residue(s). I often try out a certain color and save it in a session,<br>but when I come back to the session and try to apply the color to the<br>other residues I realized I forgot what's the RGB value I've assigned<br>and have to resort to visual inspection (which is not very accurate).<br>The same problem I have experienced with the ribbon thickness. Is there<br>a way for me to keep a record of / retrieve these values? Thanks!<br><blockquote type="cite">Cheers,<br></blockquote><blockquote type="cite">Sumitro <br></blockquote><br>Institute for Infocomm Research disclaimer: "This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you."<br><br>_______________________________________________<br>Chimera-users mailing list<br><a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br></div></blockquote></div><br></div><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; "><span class="Apple-style-span" style="font-size: medium;"><br class="Apple-interchange-newline"></span></div></span> </div><br></body></html>