u/GothLawnChair

Question about multi-parameter folders and for-each loops

Question about multi-parameter folders and for-each loops

Hello, as the title suggests, I am at a loss when it comes to the multi-param system.

I created a brick wall based on a spline and placed an arch opening that I can move wherever on said spline with this point wrangle:

int np = npoints(0);

int anchor = clamp(chi("anchor"), 0, np - 1);

int dist = clamp(chi("distance"), 0, np - 1 - anchor);

int idx_b = anchor + dist;

if (@ptnum == anchor) setpointgroup(0, "pt_A", u/ptnum, 1);

if (@ptnum == idx_b) setpointgroup(0, "pt_B", u/ptnum, 1);

So I have one point acting as an anchor and the other as the width. Then i just copy to point a line that acts as my height, connect the two created lines on top and bevel for my arch. With this curve, a couple of quick extrudes gives me my bricks, and voila!

But this system only allows me to spawn one, singular door. What I want, since I'm creating a digital asset is to make use of the multi param block folder and have every parameters of my arch exposed per arch spawned, for maximum control and customisation. I have tried many for-each and heinous lines of vex, but I'm hitting a wall.

I'm new to vex and can't seem to find a good tutorial or document to answer my questions... Any help would be greatly appreciated. ty

https://preview.redd.it/c49yzk2t8a2h1.png?width=1149&format=png&auto=webp&s=9e307b1869b82c282825379215a94ad5970755da

reddit.com
u/GothLawnChair — 2 days ago