Driving bend angle with an attribute

   1754   2   1
User Avatar
Member
8 posts
Joined: Sept. 2018
Offline
I am having an issue driving bend angle using an attribute. Could you please let me know what I’m doing wrong? Here’s what I did:
1. Created a 1x1 sized 10x10 rows and columns grid with the pivot at the origin and direction in positive z.
2. Created a float attribute @ben = 45.0 with Attribute Create or Attribute wrangle.
3. Used @ben in the bend attribute of the Bend wrangle to bend in the positive z direction.
According to the Geometry Spreadsheet, my @ben is 45.0, but the bend node only works if I put in something like @ben + 45 in the field. Any help appreciated! Thank you.

Attachments:
ben.PNG (1.6 MB)
bend_using_attribute.hiplc (88.4 KB)

User Avatar
Member
7739 posts
Joined: Sept. 2011
Online
You normally can't use attributes in parameters like that unless the node supports it.

Are you trying to do bend amount per-point, or a bend amount that is inferred from an attribute but applies the same value to the whole piece?

For the former, you would need to edit the code in the deformer inside the bend node. For the later, you can use a point, prim or detail expression to get the value of an attribute from a geometry element.


http://www.sidefx.com/docs/houdini/nodes/sop/bend.html [www.sidefx.com]
http://www.sidefx.com/docs/houdini/expressions/point.html [www.sidefx.com]
User Avatar
Member
8 posts
Joined: Sept. 2018
Offline
Right, I should have been using a detail expression instead. Thank you!
  • Quick Links