I've added Python syntax examples to https://pymolwiki.org/index.php/set_view
The argument doesn't have to be a string, it can also be a list or tuple of floats. In particular, the return value of cmd.get_view() can be used as input. Cheers, Thomas > On Apr 29, 2020, at 8:58 PM, <leifepeter...@sbcglobal.net> > <leifepeter...@sbcglobal.net> wrote: > > Feature request for Wiki: please add an Example below “PyMol API” like: > > 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") > > and state N.B. that it’s a vector in a string. The 9-digit decimal > precision is probably not needed, as there aren’t a billion pixels in an > image. Even ray-tracing doesn’t need that level of precision. > _______________________________________________ > 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 -- Thomas Holder PyMOL Principal Developer Schrödinger, Inc. _______________________________________________ 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