[PyMOL] set sphere_scale question
Hi all, I have a question regarding the changing of sphere size in a PyMOL API. When I use the command as presented on the PyMOLwiki, namely: cmd.set (sphere_scale, size=1, selection='', state=0, updates=1, log=0, quiet=1) I get an error saying set() got an unexpected keyword argument 'size' I get the error wether 'size' is a string or an integer. What am I missing? Thanks, Bradley -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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
Re: [PyMOL] set sphere_scale question
Hi Bradley, The first argument is the setting, which is a string, and the second is the value for that setting, which is also a string, to be interpreted according to the setting. Actually, for sphere_scale it's also not size, but a multiplication factor to the size. Hope it helps, Tsjerk On Jan 26, 2011 4:42 PM, Bradley Hintze bradle...@aggiemail.usu.edu wrote: Hi all, I have a question regarding the changing of sphere size in a PyMOL API. When I use the command as presented on the PyMOLwiki, namely: cmd.set (sphere_scale, size=1, selection='', state=0, updates=1, log=0, quiet=1) I get an error saying set() got an unexpected keyword argument 'size' I get the error wether 'size' is a string or an integer. What am I missing? Thanks, Bradley -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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
Re: [PyMOL] set sphere_scale question
On Wed, 26 Jan 2011 10:13:25 -0500 Bradley Hintze bradle...@aggiemail.usu.edu wrote: Hi all, I have a question regarding the changing of sphere size in a PyMOL API. When I use the command as presented on the PyMOLwiki, namely: cmd.set (sphere_scale, size=1, selection='', state=0, updates=1, log=0, quiet=1) I get an error saying set() got an unexpected keyword argument 'size' I get the error wether 'size' is a string or an integer. What am I missing? size is the wrong option, You want value. Typing help set at the PyMOL command prompt shows the following: cmd.set(string name, string value, string selection, int state, int updates, int quiet) So you need to change your command to: cmd.set (sphere_scale, value=1, selection='', state=0, updates=1, log=0, quiet=1) Cheers, Rob -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Botterell Hall Rm 644 Department of Biochemistry, Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821Fax: 613-533-2497 robert.campb...@queensu.cahttp://pldserver1.biochem.queensu.ca/~rlc -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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