Your attached Python script was scrubbed by my email server.
It might be best to paste the script into your e-mail message.

You might have picked up hidden codes in your copy and paste operations.

You could try the roundview.py script described 20% of the way down on 
this website https://github.com/MooersLab/EasyPyMOL. It rounds off the
the numbers returned by get_view() and returns them on a single
line to make them easier to reuse at the PyMOL prompt, in pml scripts,
and in python scripts. 

Best regards,

Blaine

Blaine Mooers, Ph.D.
Associate Professor
Department of Biochemistry and Molecular Biology
College of Medicine
University of Oklahoma Health Sciences Center
S.L. Young Biomedical Research Center (BRC) Rm. 466
975 NE 10th Street, BRC 466
Oklahoma City, OK 73104-5419

________________________________________
From: leifepeter...@sbcglobal.net [leifepeter...@sbcglobal.net]
Sent: Wednesday, April 29, 2020 1:40 PM
To: pymol-users@lists.sourceforge.net
Subject: [EXTERNAL] [PyMOL] Number of parameters is off for cmd.set_view?

In the GUI command line, I entered get_view and got the following

set_view (\
    -0.219962522,    0.763355076,   -0.607366502,\
     0.878539860,    0.425617725,    0.216765702,\
     0.423973948,   -0.485916167,   -0.764265418,\
     0.001047601,    0.000947788,  -48.208724976,\
   -24.094066620,  -41.117546082,    2.001868963,\
   -84.735671997,  181.151062012,  -20.000000000 )


However, in my 
filename.py<https://urldefense.proofpoint.com/v2/url?u=http-3A__filename.py&d=DwQFAg&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=4zwTbg5t3EDmk7X-dupw3uh7VzTs8TNQZfhZ-kqtd6c&s=Xvp3Zs559FaMsTCNKwCEaX9jhtild2uDUtRerfwI7tM&e=>,
 use of the command

cmd.set_view (\
    -0.219962522,    0.763355076,   -0.607366502,\
     0.878539860,    0.425617725,    0.216765702,\
     0.423973948,   -0.485916167,   -0.764265418,\
     0.001047601,    0.000947788,  -48.208724976,\
   -24.094066620,  -41.117546082,    2.001868963,\
   -84.735671997,  181.151062012,  -20.000000000 )

Returned the error message:

TypeError: set_view() takes from 1 to 5 positional arguments but 18 were given



_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to