import hou
def getNodeSourceName(node):
    '''获取SOP节点真实名称'''
    name = str(node.type())[:-1]
    name = name.replace("<hou.SopNodeType for Sop ","")
    return name.split("::")[0]

    
nodes = hou.selectedNodes()

if not nodes:
    print("请选择要导出的节点")


lists = []

for node in nodes:
    name = getNodeSourceName(node)
    if (name not in lists):
        lists.append(name)
        print(name,end = '、')

如图所示,导出了所有选择节点名称(会过滤重复)这样做笔记就很方便。