Thanks for the help,
your first suggestion is indeed exactly what I was looking for.

Thanks again!

   John


On 02/16/2011 01:10 PM, Jason Vertrees wrote:
> Hi John,
>
> Add this to your .pymolrc:
>
> unset auto_show_lines
> unset auto_show_nonbonded
> set auto_show_spheres
>
> # if your machine supports openGL shaders
> # uncomment the following
> #
> # set sphere_mode, 5
>
> The other way to do this is to wrap the load command.  That could look
> something like this:
>
> def myLoad(*args, **kwargs):
>    cmd.load(args,kwargs)
>    cmd.hide()
>    cmd.show("poly", "spheres")
>
> Cheers,
>
> -- Jason
>
>
> On Tue, Feb 15, 2011 at 10:29 PM, John Russo<lamaro...@gmail.com>  wrote:
>> Hi to all,
>> I have a simple question but I've googled extensively
>> on this and coudn't find a solution (I'm a pymol newbie).
>>
>> I would like to launch pymol from the command line:
>>
>> pymol my_file.xyz
>>
>> and I would like it to show the particles just as spheres
>> (which is enough for most colloidal physics images!).
>>
>> I've tried with this simple .pymolrc
>>
>> set orthoscopic, 1
>> set sphere_scale,0.3
>> hide all
>> show spheres
>>
>> But the commands get executed before the particles get loaded.
>> I've tried putting a time.sleep(5) but that doesn't make any difference
>> (the whole window just appears 5 seconds later).
>>
>> Any hints?
>>
>> Thanks!
>>
>> ------------------------------------------------------------------------------
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> _______________________________________________
>> 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
>>
>
>


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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

Reply via email to