Mirror weights causes Unspecified failure

36 views
Skip to first unread message

Szabolcs Matefy

unread,
Jun 20, 2013, 5:16:02 AM6/20/13
to soft...@listproc.autodesk.com

Hey folks,

 

I want to mirror skinning from a portion of the mesh to the opposite side. However, after the Create symmetry template dialog box (and prior creating the symmetry map itself) the operation cancels saying that unspecified error occurred…

 

This is the code part where it fails (enveloping.vbs)

 

function get_deformers               (in_obj, out_deformers )

 

                dim deformers, myenv, weights, i

 

                set deformers = CreateObject("XSI.Collection")

                set myenv = in_obj.activeprimitive.constructionhistory.find("envelopop")

                Weights = myenv.Weights.Array

 

                weights = myenv.Weights.Array

 

                For i = lbound(weights ,1) to ubound(weights ,1)

'                               87892:   The fact that we didn't mirror effectors caused scenes that have envelope weighting on effectors not to symmetrize correctly.

'                                                               Enabling symmetry on effectors.

'                               if( myenv.deformers(i).type <> "eff" ) then

                                                deformers.add myenv.deformers(i)  ß------------------------------------------------------------------------ Line of failure is this

'                               End if

                next

 

                set out_deformers = deformers

 

end function

 

At first glance what hit my eyes is that once deformers is a collection, and then deformers is a property of the myenv object. Can it cause an issue? I can’t do any edit, since the folder is read only, and our admin doesn’t let me play with the rights in my Softimage folder…

 

 

Cheers

 

 

Szabolcs

___
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322 Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.: DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli

Enrique Caballero

unread,
Jun 20, 2013, 5:51:44 AM6/20/13
to soft...@listproc.autodesk.com
I wouldnt edit that code even if you could.

This has happened to me before, and it was related to a corrupted piece of geometry.  That asset may have been created in a previous version of XSI, who knows. 

Our methods here at very cavalier, as every modeller/TD has their own techniques, so its quite common for geometry to get corrupted somewhere in the process.  Once it happens, usually envelope operations will stop working properly.

Basically, I just export out as OBJ, reimport, Gator everything across, and its fixed.

best of luck,
 E

Martin

unread,
Jun 20, 2013, 6:18:45 AM6/20/13
to soft...@listproc.autodesk.com
I'm not sure if it is related, but Create symmetry template gets you an error if your enveloped model weights aren't normalized and the sum of the weights per point isn't 100.

It usually happens when you import FBX, the weights aren't normalized and the weights sum about 99.9 or 100.001, but SI doesn't flag them.
You can normalize your weights by selecting your points, check normalize in your weight editor and Add 0 weight to any deformer.

Martin

Szabolcs Matefy

unread,
Jun 20, 2013, 6:27:37 AM6/20/13
to soft...@listproc.autodesk.com

I resolved meanwhile. For some reason, the number of deformers were double of the number of real deformers…Envelope saved, reenveloped, envelope loaded, and now just fine

Reply all
Reply to author
Forward
0 new messages