Let say we have some predefined objects in a scene: A cube, a sphere, a cylinder, a cone and a suzanne. We have also a predefined big pink plane, sort of a table.
I need to place a copy of one or more of this objects, at the start of the game engine, at random coordinates over the pink plane, based on a list like this:
examplelist = [[‘Cube’, ‘A box’], [‘Cone’, ‘An ice cream?’], [‘Cube’, ‘Hello world!’]]
Over every object is needed to place a text containing the string associated in the list.
It is possible?
Can you help me?
I have made an example ready to edit with the elements, it is attached.
availableobjects = Cube, Sphere, Cylinder, Cone, Suzanne examplelist = [['Cube', 'A box'], ['Cone', 'An ice cream?'], ['Cube', 'Hello world!']] for x in examplelist: place a copy of the corresponding object in the pink plane at random location put a text over the new object containg the specified string
test.blend (198 KB)