Hello,
I am making a script that loads in two molecules as arguments in the
command line. I want to then align these molecules and make a pretty
picture of the molecules that were input as arguments in the comand line
but I am not sure how to name them as objects. I don't know how to select
the new objects because they will have different names depending on the
inputed arguments. My attempt is below.
-Yarrow
----------------------------------------------------------------------------------------------------------
from sys import argv
my_argv = argv[1:]
print my_argv[0], my_argv[1]
from pymol import cmd, stored
def align_heme(arg1, arg2 ):
cmd.load(arg1)
cmd.load(arg2)
cmd.create(obj1, arg1) #I know this line won't work. I need to use
the #object name. but it depends
on the input.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net