You've uncovered a known bug that exists in the last several versions of 
Softimage.  At least 2012 and later.

You have to make a 2nd pass over the weights by iterating over the deformers 
and calling SIModifyFlexEnvWght() and add 0% weight value.  This will kick 
Softimage to wake up and honor the values you set.


Matt




Date: Mon, 7 Mar 2016 20:01:47 +0900
From: Martin Yara <furik...@gmail.com>
Subject: scripting Weights
To: "softimage@listproc.autodesk.com"
<softimage@listproc.autodesk.com>
Message-ID:
<caexmsffu6mzcjagtdrifnkfeopf-0e4dv_ypz4bctxgdue_...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I wrote a tool to round weights decimals but I'm still having decimals.

I get the weighs with :

Obj.Envelopes(0).Weights.Array

Round them and put them back with

myEnvelope.Weights.Array = roundedWeights

But when I check my weights after that I'm still having decimals like:
0.300000011920929
14.1999998092651
58
27.5

And my roundedWeights array is just like I want them:
0.3
14.2
58
27.5

I successfully did it in Maya disabling the Normalize property, but I can't
get it to work in Softimage. Is there any way to do this?

Thanks

Martin

------
Softimage Mailing List.
To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with 
"unsubscribe" in the subject, and reply to confirm.

Reply via email to