expression / script question

Date : Thu, 21 Jul 2005 23:53:19 +0800
To : <XSI(at)Softimage.COM>
From : "David McDonnell" <dave(at)lastpixel.com.au>
Subject : expression / script question
Hey All

I'm going through and setting up some face anim rig stuff similar to the
Jason Osipa Stop Staring method.

Basically I'm trying to prt my way of doing it in Max to XSI.

In Max I have a script controller with the following in it.

fn clamp x y val=
(
	if val < x then
	(
		val = x
	)
	if val > y then
	(
		val = y
	)
	else
	(
		val = val
	)
)

objectctrl = myobject.controller.position
t = (clamp 0 1(clamp 0 1(objectctrl.y) + objectctrl.x))*(clamp 0
1(objectctrl.y)) t*100

Now I'm only in foundations so I dont have scripted operators. I cant find
an easy way to clamp values in the expression editor. Does anyone have an
easy way to convert this to how the expression editor wants to work?
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.2/53 - Release Date: 20/07/2005

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

  • References:
    • RE: r
      • From: "kim aldis" <kim(at)aldis.org.uk>

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.