<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="">Yes, the code that that example Chimera script is using is intended only to copy the atoms and residues but not their display styles. You can see the script does<div class=""><br class=""></div><div class=""><span style="font-family: monospace; font-size: 11px; background-color: rgb(238, 238, 221);" class="">from Molecule import copy_molecule</span><br class=""><div><span style="font-family: monospace; font-size: 11px; background-color: rgb(238, 238, 221);" class="">mc = copy_molecule(m)</span></div><div><br class=""></div><div>and if we look at the copy_molecule() code it is clear it does not copy colors or styles</div><div><br class=""></div><div><a href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/Molecule/copymolecule.py" class="">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/Molecule/copymolecule.py</a></div><div><br class=""></div><div>But you could call the Python routine for mcopy which copies styles, colors, visibility after making the new atoms and residues</div><div><br class=""></div><div>from MoleculeCopy import molecule_copy</div><div>molecule_copy(m.atoms, mc.atoms)</div><div><br class=""></div><div><a href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/MoleculeCopy/mcopy.py" class="">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/MoleculeCopy/mcopy.py</a></div><div><br class=""></div><div>We don't have detailed Chimera Python API documentation so you have to be resourceful and look around in your Chimera distribution to find the stuff you need. If you want programming documentation you'd have to move on to ChimeraX our next generation program.</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 27, 2020, at 11:27 PM, Pablo Solar RodrÃguez <<a href="mailto:pablosolar.r@gmail.com" class="">pablosolar.r@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#444444">Hello all again!!</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#444444"><br class="">I am using the copy_molecule from Molecule (<a href="http://www.cgl.ucsf.edu/trac/chimera/attachment/wiki/Scripts/copymol.py" class="">http://www.cgl.ucsf.edu/trac/chimera/attachment/wiki/Scripts/copymol.py</a>) but when I add the new pdb to the ModelPanel it is in atoms view and grey-colored.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#444444"><br class=""></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#444444">For example, if I copy 5 pdbs that are in ribbons view, the new 5 pdb copies will be opened in atoms view and all in grey color. Is normal this behaviour when using copy_molecule? Is there a way to fix this?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:#444444"><br class="">Thank you in advance!</div></div>
_______________________________________________<br class="">Chimera-dev mailing list<br class=""><a href="mailto:Chimera-dev@cgl.ucsf.edu" class="">Chimera-dev@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br class=""></div></blockquote></div><br class=""></div></body></html>