Jump to content
Sign in to follow this  
ai88

vex expression

Recommended Posts

Hi, I have a quick question. How can i write the expression that is below based on y position?

Thanks.

 

i@strength = fit01(rand(@cluster), ch("min_cluster_strength"), ch("max_cluster_strength"));
 

Share this post


Link to post
Share on other sites

Hi,

You probably want to use relative bbox Y:

i@strength = floor ( fit01( relbbox ( @P ).y, ch("min_cluster_strength"), ch("max_cluster_strength") ) );

 

  • Like 2

Share this post


Link to post
Share on other sites
12 hours ago, animatrix said:

Hi,

You probably want to use relative bbox Y:


i@strength = floor ( fit01( relbbox ( @P ).y, ch("min_cluster_strength"), ch("max_cluster_strength") ) );

 

Thanks Yunus I will try it.

  • Like 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  

×