that ones a little cleaner. Thanks Nick.
----- Original Message -----
From: "Nick" <nick.petit(at)gmail.com>
To: <XSI(at)Softimage.COM>
Sent: Saturday, October 01, 2005 10:14 PM
Subject: Re: clamp in MEL ... XSI expression equivalent contined..
or shorter still:
MAX( MIN(slider.kine.local.posy , 10 ) , 0 )
On 10/2/05, Adam Sale <adamsale(at)shaw.ca> wrote:
well, I also found this alternative that works, but its still a lot
longer
than the clamp function...
cond( slider.kine.local.posy < 0 , MAX( slider.kine.local.posy , 0 ) ,
MIN(
slider.kine.local.posy , 10 ) )
as compared to the original..
cond( slider.kine.local.posy < 0, 0, cond( slider.kine.local.posy > 10,
10,
slider.kine.local.posy ) )
Adam
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi