Edit parameter interface – can't seem to read string attrib

   1911   2   0
User Avatar
Member
49 posts
Joined: Nov. 2017
Offline
I'm just trying to create a custom parameter interface to read some string attributes from a geometry node, but for some reason I can't make it read string attribs, but it works fine with float attribs. I've obviously got something wrong somewhere, but cannot figure out where. I would be grateful if anyone is able to take a quick look…
Edited by benek - March 23, 2021 07:28:56

Attachments:
stringtest.hiplc (87.1 KB)

User Avatar
Member
2658 posts
Joined: June 2008
Offline
Not sure what the issue is. You are creating the attributes under the detail context, and they show up. Just remember that some function calls to fetch string attributes have a trailing "s" added to them. To fetch a float you might use point, to fetch a string you would need to use points the trailing "s" denotes operating upon a string instead of a number.

Attachments:
Untitled-1.jpg (11.2 KB)

Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
49 posts
Joined: Nov. 2017
Offline
Ah! that was it… I just had to use the details() funtion, not detail().

Thank you, that really helps.
Edited by benek - March 23, 2021 10:53:12
  • Quick Links