Issue with simple VEX attributes and Polyextrude

   1349   3   2
User Avatar
Member
46 posts
Joined: 10月 2019
Offline
Hi,
Learning VEX since a few days and I can't find a way to solve a simple polyextrude using VEX attributes.
As a sample I generate some polylines from scatter points. Then trying to extrude the polylines using VEX distance attribute values that I generate for each polyline.
For some reason the polyextrude doesn't work - it seems the polyextrude doesn't “read” the attribute..
I spent a lot of time trying to solve it without success. The file is very simple and pretty clear, any help will be very appreciated.
Thanks!
Edited by tosiho19 - 2020年3月31日 07:43:15

Attachments:
VEX Polyextrude-_200331_001.hipnc (109.9 KB)
200331_Capture_002.PNG (606.1 KB)
200331_Capture_001.PNG (631.5 KB)

User Avatar
Member
143 posts
Joined: 10月 2015
Offline
Hello,
it work if you make the attribute a point attribute
i know that with mesh it has to be a primitive attribute but as you are doing it on polyline …

here is the file

Attachments:
VEX Polyextrude-_200331_002.hipnc (120.9 KB)

User Avatar
Member
72 posts
Joined: 4月 2016
Offline
I think this should give you what you're looking for. On ramp_extrusion_values:
  • set “Run Over” to Points

On polyextrude1:
  • set “Extrusion Mode” to Points (and Existing for the second dropdown that appears when you set it to Points)
  • turn off “Ouput Back”
  • turn on “Output Front” and “Output Sides”
User Avatar
Member
46 posts
Joined: 10月 2019
Offline
Understood. Thanks guys for the help.
I noticed Polyextrude Node with “Extrusion Mode” set to “Primitive/EdgeNormal” works well with Polygon curve. Is there any way to convert polyline to polygon curve?
  • Quick Links