Using attribute to extrude

   5125   4   2
User Avatar
Member
69 posts
Joined: 9月 2018
Offline
Hi there,

Noob question here. Trying to learn about attributes.

I simply want to extrude a group of primitives using an attribute called height that I made with an attrib create node. However when i type @height in extrusion distance, nothing happens. I have to type “detail(”op:../attribcreate1“,”height“,1)” for it to work.

Shouldn't I be able to just type @height?

File included. Why does polyextrude1 work, but not polyextrude2?

Best,
Albinioni

Attachments:
extruding with attribute.hipnc (70.9 KB)

User Avatar
Member
80 posts
Joined: 2月 2018
Offline
You need to use local control for that: https://www.sidefx.com/docs/houdini/nodes/sop/polyextrude#local-control [www.sidefx.com]
Don't forget to choose individual elements, if you are extruding them as connected components I don't think you can control it via attribute.
3D Freelancer
https://www.artstation.com/ffd [www.artstation.com]
User Avatar
Member
69 posts
Joined: 9月 2018
Offline
Thank you for the reply FFD!

However I'm not sure if I understand from reading the information that you posted. From what I can understand local control are the Distance scale, Inset scale, Twist scale, and Divisions scale parameters and have nothing to do with controling them via attributes.
User Avatar
Member
16 posts
Joined: 10月 2018
Offline
1) detail(“op:../attribcreate1”,“height”,1) set Result Distance = Detail Attribute(attribcreate1)
2) Local Attribute set Result Distance = Distance (field) * Primitive Attribute(attribcreate2)

Image Not Found
Edited by DmitriiP - 2019年12月5日 08:49:51

Attachments:
extruding with attribute prim.hipnc (74.5 KB)
sshot_777.jpg (180.5 KB)

User Avatar
Member
3 posts
Joined: 10月 2020
Offline
Ugh...just spent quite a bit of time here only because "@height" does not work?
and to reiterate from a cross post why does it not work directly in the distance field with "@height" or "height"
  • Quick Links