Hmm, forwarding this to the list too. Maybe someone else also wants to
use it...
--- Begin Message ---
Hi Mike,
You can add the following to the script movie.py from Kristian Rother.
It will give you the possibility to fade colours over a given set of
frames, as I understand you want. For the rest you may have to edit the
script yourself and add the things you need, or convince someone to do
it for you by telling how great it would be ;)
#################
def
mvGradCol(frames="1",selection="",tmpc="",startR="1.0",startG="1.0",startB="1.0",endR="0.0",endG="0.0",endB="0.0"):
"""
mvGradCol(frames,selection,tmpc,R1,G1,B1,R2,G2,B2) - changes colour
gradually from (R1,G1,B1) to (R1,G1,B1) through the specified frame
range and on the specified selection.
"""
frameRange = parseFrames(frames)
nFrames = frameRange[1]-frameRange[0]+1
stRV=float(startR)
endRV=float(endR)
incR = (endRV-stRV)/(1.0*nFrames)
stGV=float(startG)
endGV=float(endG)
incG = (endGV-stGV)/(1.0*nFrames)
stBV=float(startB)
endBV=float(endB)
incB = (endBV-stBV)/(1.0*nFrames)
i=frameRange[0]
j=0
while i<=frameRange[1]:
mv.movie.append((i,"set_color %s,[ %f,%f,%f
]"%(tmpc,stRV+j*incR,stGV+j*incG,stBV+j*incB)))
mv.movie.append((i,"color %s, %s"%(tmpc,selection)))
j+=1
i+=1
#################
You also have to add the following line to the bottom section in the script:
cmd.extend('mvGradCol',mvGradCol)
I hope it's of some use to you.
Cheers,
Tsjerk
Michael Ford wrote:
I want to change the display of my molecule during a movie.
For instance, I might want to turn a ligand yellow at frame 50 of a 100 frame
movie.
How would I go about this? mvSet - can this be used for other pymol commands?
I can use the mvRot and mvSinrot commands fine, but I want to do other
things....
Mike Ford
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- :)
-- :) Tsjerk A. Wassenaar, M.Sc.
-- :) Molecular Dynamics Group
-- :) Dept. of Biophysical Chemistry
-- :) University of Groningen
-- :) Nijenborgh 4
-- :) 9747 AG Groningen
-- :) The Netherlands
-- :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- :)
-- :) Hi! I'm a .signature virus!
-- :) Copy me into your ~/.signature to help me spread!
-- :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- End Message ---