Jump to content
Sign in to follow this  
jackassol

Color from Bounding Box

Recommended Posts

Hi - i created particles colors with the Attribwrangle VEXspression:

 

// Color from Bounding Box
@Cd = relbbox(0, @P);

this code basicly created a bounding box based on all particles positions in the scene.  (it changes the color - because the particle are moving in space)

How to define an own bounding box (size of the bounding box) -  based on primitive-cube for example?

 

All the best

 

bounding_box.hip

Share this post


Link to post
Share on other sites

plug the cube into second input and change the 0 in the relbbox to 1

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
Sign in to follow this  

×