This work should be working on First, make sure you include …

Question
This work should be working on First, make sure you include the following at the top of your script file: import bpy from math import * def selectAll(): # select objects by type for o in bpy.data.objects: if o.type == ‘MESH’: o.select = True else: o.select = False return def clearAll(): selectAll() bpy.ops.object.delete() return Then, that, given an integer , creates a grid of monkey head objects: Test your function by first clearing the 3-D view (i.e., by calling the clearAll function), then calling your function with the value 10.