gif动图
斐大师的x-ray参数
导出PNG
file >> export movie as >> PNG
GPU4N进行convert
- convert -delay 30 *png test.gif
对gif进行剪裁
其他
文档:3D旋转动画.note
- 1. 导入蛋白,在pymol中调好蛋白的状态。
- 2. 命令行操作:
- mset 1 x180 #由目标分子复制生成180帧(frame)相同的状态(state);
- util.mroll 1, 180, 1 #以当前视野的Y轴旋转分子,得到180个state;
- OR util.mrock(1,60,10,1,1) # issues mdo commands to create +/- 10 deg. rock over 60 frames
- set ray_shadows, off #关掉立体光线阴影
- Movie >> 勾选Ray Trace Frames; OR set ray_trace_frames=1
- File >> Save Movie As >> PNG Images,选择路径,输入name,会自动保存180个分子旋转过程中的图片,png格式;
- OR mpng E:/path/name #保存所有states的png图片
- 另,File >> Save session,保存pse文件以备后续使用。
- 3. 将所有png图片上传到服务器,在LINUX环境下,运用convert命令生成动画图片,gif格式。
- convert *.png t_rotate.gif #convert功能十分强大,可另行学习各种图片编辑和转换操作
- 4. PPT中裁剪gif动图成自己想要的尺寸即可。
- SEE ALSO:
- 4. Create a series of PNG files for animated GIF movie
- http://www.bch.cuhk.edu.hk/kbwong/pymol/pymol_tutorial.html
- 1. Setting up the movie
- File->Open->1w2i_nowat.pdb
- PyMOL> orient
- PyMOL> hide everything, all
- PyMOL> show cartoon, all
- PyMOL> color purple, ss h; color yellow, ss s; color green, ss ""
- PyMOL> mset 1 x60
- This command creates a movie with 60 frames
- PyMOL> util.mrock 1,60,180
- This command rocks the protein molecule +/- 180 degree in 60 frames
- PyMOL> mplay
- This command plays the movie
- 2. Now try this:
- PyMOL> util.mroll 1,60
- This command rotates the protein molecule 360 deg in 60 frames
- Type "mstop" to stop the animation
- 3. Saving frames in PNG format
- PyMOL> mpng frame
- This will create frame0001.png frame0002.png, etc ...
- If you want ray-traced rendering for all the frames, you can:
- PyMOL> set ray_trace_frames=1
- PyMOL> mpng frame
- Very good quality animation but very slow to produce all the PNG files!!
- 4. You can convert these PNG files in a batch to GIF using the program XnView, and then combine these GIF files to create an animated GIF using UnFREEz: