本文整理汇总了Python中General.mask_Objects方法的典型用法代码示例。如果您正苦于以下问题:Python General.mask_Objects方法的具体用法?Python General.mask_Objects怎么用?Python General.mask_Objects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General.mask_Objects方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Start
# 需要导入模块: import General [as 别名]
# 或者: from General import mask_Objects [as 别名]
def Start(self):
self.queue.put(lambda: self.FlexAID.root.withdraw())
cmd.window('hide')
self.queue.put(lambda: cmd.window('show'))
cmd.refresh_wizard()
# Display the ligand from the PDB file
if self.DisplayLigand():
self.FlexAID.DisplayMessage("Error while trying to display the ligand from PDB file", 1)
self.Quit_Wizard(self.ErrorCode)
return
# Color the Atoms based on their type
if self.ColorByType():
self.FlexAID.DisplayMessage("Error while coloring the ligand atoms by type", 1)
self.Quit_Wizard(self.ErrorCode)
return
# Mask everythign except modifyable object (ligand)
self.exc = [self.LigDisplay]
General.mask_Objects(self.exc)
self.selection_mode = cmd.get("mouse_selection_mode")
cmd.set("mouse_selection_mode", 0) # set selection mode to atomic
# remove any possible selection before selecting atoms
cmd.deselect()
self.ErrorCode += 1