Re: invert Weight Map?

Date : Sun, 25 Mar 2007 08:49:17 +0930
To : XSI(at)Softimage.COM
From : philb <philbarrenger(at)gmail.com>
Subject : Re: invert Weight Map?
Hey David,
here's a small script that should do that for you. Just select the weight map property under the cluster and run the following. It's in python.  It assumes that your weight map has a range of 0 to 1 which most do....

cheers,
philb


##### start script #####
app = Application
wmArray = app.Selection( 0 ).Elements.Array
newWmArray = []
for weight in wmArray[0] :
    newWmArray.append(  1 - weight )
app.Selection( 0 ).Elements.Array = newWmArray   
##### end script #####




On 3/25/07, David Gallagher < daveg(at)blueskystudios.com> wrote:

I'm looking for a way to take a weight map and invert it. So the value of each point is the opposite (0 becomes 1, .2 becomes .8, etc.

Does anyone have a way to do this?



(I don't see it in the capabilities of
lmWeightMapTools. Am I wrong there?)

-- 
David Gallagher
Animator, Blue Sky Studios



--
phil barrenger
philbarrenger(at)gmail.com
http://www.users.on.net/~philbarrenger/

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.