Jump to content
Valent

the maximum value of an attribute

Recommended Posts

Hi)
Can I somehow get the maximum(and the minimum) value of an attribute in VEX? I want to use them in a FIT function.

 

Share this post


Link to post
Share on other sites

Thanks, have tried both suggested variants, and I like Vex pipeline a bit more.

Share this post


Link to post
Share on other sites

Uniformly scaling an attribute so its maximum is 1.0:

1st point wrangle:

setdetailattrib(0, 'height_max', f@height, "max");

2nd point wrangle:

f@height /= detail(0, 'height_max', 0);

 

  • 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

×