Set vars from specified object.