bbox based on the previous element

   1140   2   1
User Avatar
Member
6 posts
Joined: Aug. 2015
Offline
Hi, 

I would like to create a stack with some pieces of geometry and scale down each of them based on the previous bbox. The final look should be like a pyramid based on the geometry you are using .. something like that:
Image Not Found



__
_|__|_
_|______|_
|__________|

My problem is that I haven't been able to figure out the correct VEX syntax to use a point wrangle and read the bbox from the previous iteration. Any help out there?

Thanks
User Avatar
Member
1737 posts
Joined: May 2006
Offline
Might be something here you can steal from:

http://www.tokeru.com/cgwiki/index.php?title=ForLoops#Stacking_boxes [www.tokeru.com]
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
6 posts
Joined: Aug. 2015
Offline
Hey mestela, thanks for the link.

I already saw this link I was planing to follow a different approach but I will try to make it work with the setup from tokeru.

cheers
  • Quick Links