mfn_weights = OpenMaya.MFnFloatArrayData()mo_weights = mfn_weights.create()mfn_weights.set(OpenMaya.MFloatArray(i_target_count, 0.0))mp_weights.setMObject(mo_weights)