My aim is to be able to LibLoad different models that share the same mesh name property
Using a generic Python class that contain the constructor init, and then subclass of this which only define where the pathname to .blend
class all:__init__(self): place where i construct and object with libload model property class car1(all): model = 'car1.blend' class car2(car1): model = 'car2.blend'
car1.blend and car2.blend have exactly same meshes names because i will reuse the “all” class constructor to add an object according to the model.
So in the constructor, I Libload the model, and then i try to retrieve recently loaded object using the method of scene.objectInactive
Then, for each of these object, i get the meshes property giving me KX_MeshProxy used in this object.
And, i use LibNew to copy mesh returned
Trouble happens here, because LibNew do not seems to accept anything else except list of string of mesh name (should be list of proxy mesh instead)
So when i instanciate car1, i have correct object with correct mesh, and i instanciate car2, but this object continue to use the first time list of mesh instead of new added mesh list.
Is there a way to chain mesh proxy copy with LibNew when I LibLoad multiple .blend that having same meshes names.
Or do I have to name mesh in every models a way that they are unique
Not sure if I am very clear, but I hope!