计算化学公社

标题: VMD中如何设置不同的图层显示不同的vol的内容 [打印本页]

作者
Author:
ABetaCarw    时间: 2020-9-17 14:49
标题: VMD中如何设置不同的图层显示不同的vol的内容
本帖最后由 ABetaCarw 于 2020-9-17 14:51 编辑
  1. 插入代码老是错误 我还是纯文本来吧
复制代码
set isoval 0.005
set mater Glossy
color Display Background white
display depthcue off
display rendermode GLSL
axes location Off
#以上是一些全局设置没啥错误
mol delete top
mol new electron.cub
mol addfile hole.cub
mol modstyle 0 top CPK 0.800000 0.300000 22.000000 22.000000
#以上是显示分子式以CPK风格,没啥错误


mol modstyle 1 top Isosurface $isoval 0 0 0 1 1
mol modcolor 1 top ColorID 7
mol modmaterial 1 top $mater
mol modselect 1 top Volume vol0

mol addrep top
mol modstyle 2 top Isosurface $isoval 0 0 0 1 1
mol modcolor 2 top ColorID 0
mol modmaterial 2 top $mater
mol modselect 1 top Volume vol1



我想的是:
(, 下载次数 Times of downloads: 21)
得到的是:
(, 下载次数 Times of downloads: 18)
也就是说只显示了electron.cub而且显示为蓝色了。
以上脚本运行后Vol0是electron.cub,Vol1是 hole.cub
上面的脚本中很简洁 看不到任何修改图层的尝试。是因为我已经删除了那些肯定错误的内容。
此处请教,如何对不同图层指定不同的vol?
上面脚本可以用,但是每次都要手动打开Graphics - Representation更改一下其中的vol归属


作者
Author:
highlight    时间: 2020-9-17 15:50
首先,第三段代码前应该是少了一个 mol addrep top,否则只有两个图层
其次,指定 Vol1 用这个:
mol modstyle 2 top Isosurface $isoval 1 0 0 1 1
最后,你可以先选上 Log Tcl Commands to Console,然后执行切换 vol 操作,就能看到它对应的命令




欢迎光临 计算化学公社 (http://bbs.keinsci.com/) Powered by Discuz! X3.3