Hi, Lei Zen
The example script in https://pymolwiki.org/index.php/MovieSchool_5 shows 
smooth changes in camera and object transformation, color and representation 
change in discrete jumps.

PyMOL does not automatically interpolate colors or transparency, only 
transformations. Mostly, smooth color changes are used in morphs - when you 
create a morph, you create a multistate object, which you can color in a range 
of colors using the spectrum_states.py  script. 
(https://pymolwiki.org/index.php/Spectrum_states). 
With "State Sweep" you rifle through the different states in your object.

Example:

viewport 500,500
bg_color white
load http://www.rcsb.org/pdb/files//1Q21.pdb
load http://www.rcsb.org/pdb/files//1QRA.pdb
align 1Q21, 1QRA, cycles=0, object=aln
morph QQQ, 1Q21, 1QRA
hide all
show ribbon
#download scripts from https://pymolwiki.org/index.php/Spectrum_states
run py_scripts/spectrum_states.py 
spectrum_states QQQ, ribbon, red purpleblue blue

Run this with Movie: Program: State Sweep: ¼ Speed: No Pause

Alternatively you can split the animations into enough key frames that the 
discrete jumps in color or transparency (to fade objects in or out)  appear 
smooth to the observer.

Best regards
Annemarie Honegger


Message: 1
Date: Fri, 18 Nov 2016 02:37:50 +0000
From: ? ? <thunderqu...@outlook.com>
Subject: [PyMOL] a pymol problem: cannot transit smoothly between
representations in animation
To: "pymol-users@lists.sourceforge.net"
<pymol-users@lists.sourceforge.net>
Message-ID:
<sixpr0301mb1019098343f84b674b8dd0d1c3...@sixpr0301mb1019.apcprd03.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

Dear all,

I come across the same problem as the link below, which is that my movie made 
by pymol cannot transit between different representations smoothly. It cannot 
transit smoothly either when I click the scene buttons. It seems very simple in 
MovieSchool5 on pymolwiki website. I don't know why it doesn't work for both of 
us. Thank you very much!
The link is here.
https://sourceforge.net/p/pymol/mailman/message/35074780/
The command I use is here.
[cid:image001.png@01D24185.0450DDB0]

Best regards,
Lei Zhen
==========================================
Name: Lei Zhen
Address:
Num.501, College of Chemistry,
Beijing Normal University
No. 19, XinJieKouWai St., HaiDian District,
Beijing 100875, P. R. China
Email: leiz...@mail.bnu.edu.cn<mailto:leiz...@mail.bnu.edu.cn> / 
thunderqu...@outlook.com<mailto:thunderqu...@outlook.com>
Tel: (+86) 010-58806002
==========================================





-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 13920 bytes
Desc: image001.png

------------------------------

------------------------------------------------------------------------------


------------------------------

_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users


End of PyMOL-users Digest, Vol 126, Issue 2
*******************************************
------------------------------------------------------------------------------
_______________________________________________
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