clamp in MEL ... XSI expression equivalent contined..

Date : Sat, 01 Oct 2005 11:00:10 -0700
To : xsi(at)Softimage.COM
From : Adam Sale <adamsale(at)shaw.ca>
Subject : clamp in MEL ... XSI expression equivalent contined..
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.