# Array With Function - Python

I want to aplly an Array Modifier using a function based on the counter number, for example, X Displace = Count**2, I tried to use modifiers["Array"].constant_offset_displace[0] = modifiers["Array"].count**2, but the result is the count value squared, like the print:

The result that I was waiting was for the Instance 01 of the array modifier, x=1**2 (=1), to the instance 02, x=2**2 (=4), to the instance 03, x=3**2 (9) and so on... The grafic result is a curve, not a constant like happens on the print.

So, how can do this?

Thanks!

• I don't think you can do that with an array. What you can do, is create "real" copies of the object and set their coordinates to the values you want. – thibsert Jan 23 '19 at 21:28