hi,
if you wants to know how many AOVs you need for 10 objects you should use Ceil. After that, some math to have your ID raising by 1.
numberOfAOVs = math.ceil(10 / 3.0) # will give you 4 for i in xrange(int(numberOfAOVs)): print ("create aov number {}".format(i)) for j in xrange (3): print ("value of field will be : {}".format(j + i * 3 ) )I'm not a big fan of retrieving all the objects on each function. But first, make things works, than optimize. (at least at the beginning)
Cheers,
Manuel