an example would help though..
MAX( MIN( -Man_Face.jaw.kine.local.posy , 1 ), -0.3 ) * ( Man_Face.mouthVolume.kine.local.posy + 1 )
and
MAX( MIN( ( Man_Face.sync.kine.local.posx + 1 ) / 4 * Man_Face.sync.kine.local.posy + MAX( MIN( ( Man_Face.mouthEmotion.kine.local.posx + 1 ), 1 ), 0 ) * MAX( MIN( ( Man_Face.mouthEmotion.kine.local.posy ), 1 ), 0 ) * ( Man_Face.mouthEmotion.kine.local.posy + 1 ), 1 ), 0 )
----- Original Message -----
From: Stefan Andersson <sanders3d@gmail.com>
Date: Sunday, February 24, 2008 1:26 am
Subject: clamp _expression_ is needed...
To: xsi <XSI@Softimage.COM>
Cc: support@Softimage.COM
> Hello,
> I'm in _expression_ hell right now..... Without a "clamp" function the
> _expression_ looks like this
>
> cond( ( cond( ( Sync_ctrl.kine.local.posx / 2 ) < 0, 0, (
> Sync_ctrl.kine.local.posx / 2 ) ) + cond (
> (Mouth_Emotion_ctrl.kine.local.posy / 2) < 0, 0,
> (Mouth_Emotion_ctrl.kine.local.posy / 2) ) - cond (
> Mouth_Emotion_ctrl.kine.local.posx < 0, 0,
> Mouth_Emotion_ctrl.kine.local.posx )) < 0, 0, ( cond( (
> Sync_ctrl.kine.local.posx / 2 ) < 0, 0, (
> Sync_ctrl.kine.local.posx /
> 2 ) ) + cond ( (Mouth_Emotion_ctrl.kine.local.posy / 2) < 0, 0,
> (Mouth_Emotion_ctrl.kine.local.posy / 2) ) - cond (
> (Mouth_Emotion_ctrl.kine.local.posx * -1) < 0, 0,
> (Mouth_Emotion_ctrl.kine.local.posx * -1) ))) *
> (Mouth_Volume_ctrl.kine.local.posy + 1)
>
>
> if we had a "clamp" function it would look like this:
>
> clamp( 0, 1, (( clamp( 0,1,Sync_ctrl.kine.local.posx / 2) ) +
> (clamp(0,1, Mouth_Emotion_ctrl.kine.local.posy / 2))) - clamp(0,1,
> Mouth_Emotion_ctrl.kine.local.posx) )
>
>
>
> just a thought for XSI 7.0? :)
>
> regards
> stefan
>
>
>
> --
> __________________________________________
> Pixel Abuser @ http://www.swiss.se/
> Blog @ http://sanders3d.blogspot.com/
> Web @ http://sanders3d.googlepages.com/
> work e.mail: stefan [at] swiss.se
> ---
> Unsubscribe? Mail Majordomo@Softimage.COM with the following
> text in body:
> unsubscribe xsi
>