Untitled

mail@pastecode.io avatar
unknown
python
a year ago
295 B
5
Indexable
Never
import hou

copied = sorted(hou.ui.getTextFromClipboard().split(" "), key=str.casefold)
obm = hou.selectedNodes()[0]

obm.parm("numobj").set(len(copied))
n = 0

for i in obm.parm("numobj").multiParmInstances():
    if "objpath" in i.name():
        i.set(copied[n])
        n+=1