I am creating a lattice through the Blender API and I want to change the resolution when I create it:
collection = bpy.context.collection
lattice = bpy.data.lattices.new("Lattice")
lattice_ob = bpy.data.objects.new("Lattice", lattice)
lattice_ob.scale = (224, 352, 224)
lattice_ob.location = (112,176,112)
I am trying to change the resolution of my lattice by using:
lattice_ob.points_u = 10
lattice_ob.points_v = 10
lattice_ob.points_w = 10
I get the error
AttributeError: 'Object' object has no attribute 'points_u'