I don't know why is the command ignored, but I've been having great
success at doing exactly what you want by going through the envelope
operator's element array:
oEnvelopeOperator.weights.array = aElementArray
In this example, aElementArray is a multi-dimensional array (one
dimension per deformer). The values contained in each dimension are
one weight per cluster component of the envelope.
[
[ 0.0, 0.23, 1.0 ],
[ 0.8, 0.95, 0.0 ],
....
]
Cheers
Bernard
On 5/29/07, squid <squid(at)3d-palace.com> wrote:
I've had a couple of commands/activex type calls fail silently myself.(i
couldn't really be sure if it was the script or the command).
if a try catch/statement (or your scripting languages equivalent )
doesn't snag it then I'd go with the OM approach (env.Weights).
Hannibal People wrote:
>
> Hello
>
> I have written a script that is supposed to a apply a weight map to
> a mesh after reading in values from an xml file. I use the command
> SIModifyFlexEnvWght to apply the weights but when I run the script,
> the command is seemingly ignored (no error message or output of the
> command being executed and weights of the mesh are not changed). I
> imagine this problem is not exclusive to this particular command. Can
> anyone tell me the reason this might happen? Thank you
>
> -Hannibal
>
> * "CONFIDENTIALITY WARNING": This electronic message contains
> information which may be privileged and/or confidential under the
> United States Privacy Act. The information is intended for use only by
> the individual or entity named/indicated above. Be aware that any
> disclosure, copying, distribution, or use of the content of this
> message/information is prohibited by law. If you have received this
> message in error please delete and notify the sender by reply e-mail,
> so that our address record can be corrected. Thank you. *
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.472 / Virus Database: 269.8.1/822 - Release Date: 28/05/2007 11:40
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi