Don't freeze the envelope weights property until after you've kicked it with 
SIModifyFlexEnvWght().

Matt



Date: Mon, 7 Mar 2016 21:11:47 +0900
From: Martin Yara <furik...@gmail.com>
Subject: Re: scripting Weights
To: "softimage@listproc.autodesk.com"
<softimage@listproc.autodesk.com>

Hi Matt,
thanks for your response.

That trick didn't work for me.

I'm using 2014 and VBScript.

I'm doing something like this:

set myEnvelope = oObj.Envelopes.Item(0)
aWeights = myEnvelope.Weights.Array

'---- Round Weights in aWeights

myEnvelope.Weights.Array = aWeights
FreezeObj envelopeProperty

for each def in myEnvelope.Deformers
        SIModifyFlexEnvWght envelopeProperty, def.name, oObj+ ".pnt[*]", 2,
0, False
next

But the weights are still the same.
Am I doing it wrong?

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