houdini节点数据写出代码

 

def chu():
nodeGrp = hou.selectedNodes()
path_info = []
file = open('path.txt', 'w')
for eachnode in nodeGrp:
currentpath = eachnode.path()
path_info.append(currentpath)

nodepaths = path_info
for eachpath in nodepaths:
file.write(eachpath)
file.write('\n')

file.close()

 

点赞

发表回复

昵称和uid可以选填一个,填邮箱必填(留言回复后将会发邮件给你)
tips:输入uid可以快速获得你的昵称和头像