Properties have a default value. Defining s= is therefore utterly nonsensical. Likewise, s[i] does not make any sense within your loop. and finally, of course scale is a 2D prooperty, so yopur final line would have to be [s,s] or something like that. Start by actually reading up on how expressions work instead of just reusing someone else's code that you don't understand.