Rename transform.mode to transform.blend, which is a bit more indicative of what enumeration it takes its values from.