Hi @graphos. Correct me if I'm wrong but this can be done in C4D natively.
In the upper panel, there is this icons of "X, Y, Z". Intuitively, the shortcut for this icons are "X", "Y", "Z" keyboards. If you disable the Y, Z, it will constrain only to X and vice versa.