Add Attrib select channel on OTL

   2067   3   0
User Avatar
Member
45 posts
Joined: Dec. 2016
Offline
Hello,

I want to add a channel to select attribute like attribtransfert node on my otl (picture 1). But I don't know how load attribute name when we clic on the little arrow like the picture 2. I think I need to use tag maybe but I don't find the solution.





Someone have an idea ?

Thanks a lot in advance,
Edited by Efi - Aug. 27, 2018 19:26:55

Attachments:
picture_01.PNG (3.4 KB)
picture_02.PNG (2.4 KB)

Jeremy Gurdal
VFX Artrist
User Avatar
Member
10 posts
Joined: Nov. 2015
Offline
there are node examples already in houdini(ie, smooth sop and attribute delete sop), you can see whats going on by opening edit parameter interface and see the parms with menu item, you will find what you need
User Avatar
Member
45 posts
Joined: Dec. 2016
Offline
Thanks a lot.

opmenu -l attribute1 vtxdel
in Menu script
Jeremy Gurdal
VFX Artrist
User Avatar
Member
23 posts
Joined: July 2015
Offline
names = set()
for input in hou.pwd().inputs():
    geo = input.geometry()
    for attribs in geo.pointAttribs(), geo.vertexAttribs():
        names.update([a.name() for a in attribs if a.dataType() == hou.attribData.Float])
return [x for pair in [(n, n) for n in sorted(names)] for x in pair]




For future reference

Attachments:
Screenshot 2022-11-25 200412.png (420.4 KB)

  • Quick Links