mp285：add function onSetOrigin