please see <https://pymolwiki.org/index.php/Set_View>
https://pymolwiki.org/index.php/Set_View

set_view (...)  where ... is 18 floating point numbers
cmd.set_view(string-or-sequence view) !!! you provided 18 floating point numbers here and not a string or sequence.

On 4/29/20 8:40 PM, leifepeter...@sbcglobal.net wrote:

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, 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

_______________________________________________
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