Not able to fetch a String attribute from Font node!

   4258   4   3
User Avatar
Member
12 posts
Joined: Dec. 2013
Offline
Hello,
I have a Python Sop where I am creating string attributes for many primitives. I want to access them in a Font Sop. If it's a default point attribute like Position, I could use this HScript expression in Font.
`point(“../OUT_Box”,0,“P”,0)`
But if I want to do the same with a String attribute, Houdini keeps throwing some garbage integer for some reason! Need help. Why wont this expression work?
`prim(“../OUT_Box”,0,“test”,0)`
Thank you, I have attached a hip file as well.

Attachments:
AccessStringAttributeFromFont.hiplc (95.7 KB)

User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Can't open your .hiplc because my Houdini is older than Indie.
User Avatar
Member
443 posts
Joined: Sept. 2012
Offline
Use points() and prims() instead.

`points(“../OUT_Box”, 0, “P”)`

`prims(“../OUT_Box”, 0, “test”)`
User Avatar
Member
12 posts
Joined: Dec. 2013
Offline
Wow, Thank you so much Didn't look at the documentation clearly and spent way too much time on this. Really appreciate your help.
User Avatar
Member
192 posts
Joined: April 2015
Offline
I use Houdini for so long now, and not being able to do this made me feel like an imposter.

Also spent way to long on this.
  • Quick Links