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
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