[Fluxus] Limiting scale changes
Claude Heiland-Allen
claudiusmaximus at goto10.org
Sun Mar 30 08:54:44 PDT 2008
Gerry Grainger wrote:
> Hi. Bearing in mind that I'm an art student, and only an amateur
> programmer (at best), can
> anyone suggest a decent and efficient way of limiting how much an object
> scales, if it's influenced by gh?
> I can only tweak the gain and multiples of gh so much. is there some
> kind of 'if z axis scale is greater than 20, hold at 20' kind of
> command, that will fit with setting the z axis of an object to scale to,
> say, (gh 14)?
I guess (min x y) is what you want - find the minimum of two numbers,
which if one is fixed will do "upper bound" clipping that you want:
(min (gh 14) 20)
Not tested, I'm not currently near a machine with fluxus and my Scheme
is rusty...
> I get that I can chuck in an if...then sort of statement, but will it
> fit properly around the rest of the scale variable? I don't quite get
> how to do this, is all.
> Cheers,
> Gerry
Hope this helps,
Claude
--
http://claudiusmaximus.goto10.org
More information about the Fluxus
mailing list