On Wed, 26 Jan 2011 10:13:25 -0500 Bradley Hintze
<[email protected]> 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-6821 Fax: 613-533-2497
<[email protected]> http://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 ([email protected])
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/[email protected]