def doOnAccept(self, item): if (item is None): return try: hou.clearAllSelected() hpaste.stringToNodes(item.content(), ne=self.__nepane) except Exception as e: hou.ui.displayMessage("could not paste: %s" % e.message, severity=hou.severityType.Warning)
def doOnAccept(self,item): if(item is None):return try: try: #>h16 hou.clearAllSelected() except: #<=h15.5 hou.node("/obj").setSelected(False,clear_all_selected=True) hpaste.stringToNodes(item.content(), ne=self.__nepane, override_network_position=self.__savedNetworkViewPos) except Exception as e: hou.ui.displayMessage("could not paste: %s"%e.message,severity=hou.severityType.Warning)