from Molecule import copy_moleculemc = copy_molecule(m)
and if we look at the copy_molecule() code it is clear it does not copy colors or styles
But you could call the Python routine for mcopy which copies styles, colors, visibility after making the new atoms and residues
from MoleculeCopy import molecule_copy
molecule_copy(m.atoms, mc.atoms)
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.
Tom
Hello all again!!
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?
Thank you in advance!
_______________________________________________
Chimera-dev mailing list
Chimera-dev@cgl.ucsf.eduhttp://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev