Home Website Youtube GitHub

Exporting deformerWeights

Hi everyone,
for my mgear customSteps I’m trying to export deformerWeights. This works fine for deformers that are effecting only one object, however if I want to export the deformerWeights of a lattice which is effecting for example sphere1 and cube1 (see image below) the data exported for both objects is from sphere1. This appears to be determined by whichever object is at index 0 in the deformer attributes table:


As well as using the maya export weights, I’ve tried mgear’s export deformer weight map but this errors(at least for lattices)
I’m wanting to avoid a convoluted workaround, for example temporarily removing all other objects from the deformer whilst exporting each object, so it would be really appreciated if anyone has advice on an elegant solution.
Many thanks,
Adam.