Jump to content
Digistruct

Switch based on bbox size

Recommended Posts

Hey, 

I'm curious as to if is is possible to have a switch node change based on the bbox size of the input.

Say that if the XSIZE is the largest then it outputs to 1, YSIZE 2, ZSIZE 3. 
Is this possible and if so, how? 

Thanks!

Share this post


Link to post
Share on other sites

sure you can

if(bbox("../box1/", D_XSIZE)>bbox("../box1/", D_YSIZE)&&bbox("../box1/", D_XSIZE)>bbox("../box1/", D_ZSIZE), 0, if(bbox("../box1/", D_YSIZE)>bbox("../box1/", D_ZSIZE), 1, 2))

 

dm_switchByBbox.hip

Edited by 3dome
attach file

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×