setExpression x and y values

I’m sure this is something really simple but I can’t seem to figure it out. I’m trying to set an expression on a center knob for x and y. This is essentially what I want to do…

Code:

n['center'].setExpression('width/2', 'height/2')


but the only way I can seem to get it to work is using….

Code:

n['center'].setExpression('width/2')


which sets both x and y to ‘width/2’

Thanks for the help.

No Responses to “setExpression x and y values”

Post a Comment