Reference custom attribute

   2514   3   1
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
Hello,

i am new to houdini coming from cinema 4d xpresso and Rhinos Grasshopper…its a steep learning curve i must say.

i am trying to do one simple thing, reference a custom attribute i created to drive my primitive tube radius that i create later on in my node tree.

i have already tried @sizeZ (sizeZ being my attribute's name) but with no success
i also thought primitive vops would do it but i found no way to manipulate the tube's values from inside the vop. (any tips here would be greatly appreciated)

How should i go about doing that?

Thanks
Philip

Attachments:
Capture.JPG (283.2 KB)

User Avatar
Staff
3455 posts
Joined: July 2005
Offline
try:
prim("../attribcreate1", 0, "sizeZ", 0)
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
thank you for replying, it worked ofcourse!

could i do this through vops?
is there any other way

i tried to copy the value of the attribute (from the attribute create node) as a parameter and paste relative references to the tube radius but it didnt work for some reason

thanks again!
Philip

ps : i dont understand exactly what is prim(“../attribcreate1”,0,“sizeZ”,0) where can i look into it?
Edited by PhilipPappas - Dec. 4, 2018 05:46:53
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
Expressions are pretty important in Houdini…
have a read through some of this:
http://www.sidefx.com/docs/houdini/network/index.html [www.sidefx.com]

and this is a list of the all the functions:
http://www.sidefx.com/docs/houdini/expressions/index.html [www.sidefx.com]
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
  • Quick Links