In a linear model the degrees of freedom are (if there is an intercept) $df = n - k - 1$. So in the following interaction model the degrees of freedom would be $n - 7 - 1$
$$y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \beta_4 x_1:z + \beta_5 x_2:z + \beta_6 x_3:z + \epsilon$$
If I then put constraints on the explanatory variable, for example that $x_1 + x_2 + x_3 = 1$, do I lose a degree of freedom as one of the terms is not free to vary anymore due to this constraint?