Re: [PyMOL] Density sliders script

2004-03-24 Thread Gareth Stockwell
> P.S. I tried to add a button which, when clicked, would toggle the
> appropriate isosurface representation between mesh and solid ... but my
> Python/Tk programming leaves a lot to be desired!  Maybe there are some
> gurus out there who can sort it out...?

OK - I hacked a work-around which does the job for now.  Hope this is
useful,

Gareth

-- 
Gareth Stockwell 
European Bioinformatics Institute




[PyMOL] shadows on floors

2004-03-24 Thread John Berrisford
I am try to create a picture with shadows visible on the background of the
image. I have so far managed to create a floor, following the example of David
Cooper (movies section of pymol web site) and create shadows on a grey and blue
backgound. Is this the best way of creating a background, or is there a better
way?

But, I don't seem to be able to make a white background with shadows on (rgb
1,1,1 is white?). Is this possible?

Is it possible to create your own background colours (set_color doesn't seem to
work in the "floor.py" script in the example by David Cooper).

Also as a side note, what are the rgb codes that pymol uses, are they standard 0
to 1 (the same as molscript) or 0 to 255? Using some of the rgb codes from
molscript only seems to produce a grey background.

Thank you

John

-- 
John Berrisford
Department of Molecular Biology and Biotechnology
University of Sheffield

email: j.berrisf...@sheffield.ac.uk



[PyMOL] Density sliders script

2004-03-24 Thread Gareth Stockwell
Dear PyMOL-ers,

I have written a PyMOL extension which is useful when manipulating
multiple density maps at once.

This script creates a new window containing one slider bar for each map
currently loaded into PyMOL, and creates an isomesh object for each
map.  By moving a slider bar, the contour level of the appropriate mesh
object is changed interactively.

The script is available from my PyMOL webpage, where you can also see a
screenshot of it in action:
http://www.ebi.ac.uk/~gareth/work/pymol

To use it, try the following PyMOL commands:

run density_slider.py
load any_old_map.ccp4
load another_map.ccp4
density_sliders

Gareth

P.S. I tried to add a button which, when clicked, would toggle the
appropriate isosurface representation between mesh and solid ... but my
Python/Tk programming leaves a lot to be desired!  Maybe there are some
gurus out there who can sort it out...?



-- 
---
 Gareth Stockwell
 EMBL - European Bioinformatics Institute
 Wellcome Trust Genome Campus
 Hinxton
 Cambridge CB10 1SD gar...@ebi.ac.uk
 Tel 01223 492548   http://www.ebi.ac.uk/~gareth