yeah that part works fine and thats how I'm doing it.... I dont get any end
values outside the range rather top end values happening too early... if you
look at my original expression it evaluated in 3 parts.
(clamp 0 1(clamp 0 1(objectctrl.y) + objectctrl.x))*(clamp 01(objectctrl.y))
so the first value that is clamped is the y pos + the x pos, next this is
all multiplied by the clamped value of the y pos... then this result is
clamped as well.
Rather than just clamping the final output this expression affectivley does
a big conditional statement on each part to make sure that the values are
correct. Essentially I'm using the sliders max and min values as the final
clamp value but the others are actually getting too big too soon and what I
end up with is the sliders value of 1 is happening before the control object
hits the exact top corner of the control box.
I think I could write a big conditional expression that does all this I
think but it gets very hard to visually see whats going on and make sure its
doing what you want. As John was suggesting I could probably create an
individual control slider hooked to these parts of the expression to clamp
them that way and reference those back into my main expression (at least I
think thats what he was suggesting)
Maybe I should attach my test scn file and you can see what I mean? I think
half the problem is that coming from max I might be using the wrong
terminology to explain what I'm after.
BTW i hope these posts dont sound like I'm trying to be difficult... I
appreciate the help immensely though I somehow feel there is a communication
breakdown here coming from me ;)
David McDonnell
Creative Director
Last Pixel Pty Ltd
www.lastpixel.com.au
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Of Bradley Kachel
Sent: Friday, 22 July 2005 11:26 AM
To: XSI(at)Softimage.COM
Subject: Re: expression / script question
well in that case the method i mentioned should work.
Control box -> expression -> slider 0-1 -> shapeclip
as the expression may take values from multiple controllers, but the
slider will limit those values between it's range and pass that value
to the shapeclip.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.2/55 - Release Date: 21/07/2005
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi