this is my scritp that spawns random objects and I want to add a counter to it:
def spawnObjects():
scene.addObject(randomObject1, "empty1", 90)
scene.addObject(randomObject2, "empty2", 90)
spawnObjects()
print ("Spawned Objects are:", randomObject1, randomObject2)
So the script adds the objects and prints:
Spawned Objects are:, NameObject1, NameObject2
etc.
So far so good. But how can I get python to print:
Spawned Objects 0001 are:, NameObject1, NameObject2
Spawned Objects 0002 are:, NameObject1, NameObject2
Spawned Objects 0003 are:, NameObject1, NameObject2
Spawned Objects 0004 are:, NameObject1, NameObject2
etc.
etc.
Till infinity?
I suppose one needs a counter using "while" loop but I'm still not able to accomplish it the way I described it here. Thanks for any help!