Loading custom model add #0 in the name

Typically: "How do I... ", "How can I... " questions
Post Reply
altairlab
Posts: 1
Joined: 22 Jun 2015, 14:47

Loading custom model add #0 in the name

Post by altairlab »

Hi,
i'm having trouble with the loading of a custom model in a scene. I have a modified youBot model and i've saved it as a new model to be able to load it in a new scene. The problem comes when i try to load it in an other scene. Although no other robot or other youBot are loaded i found #0 added as suffix in the robot name and in every element child of it.

Someone can give an idea how to solve it? I made some mistake?

nicola

coppelia
Site Admin
Posts: 10378
Joined: 14 Dec 2012, 00:25

Re: Loading custom model add #0 in the name

Post by coppelia »

Hello Nicola,

the problem comes from the fact that your YouBot model contains an object name that is already present in the scene: since it is not allowed to have two identical object names (otherwise you can't correctly retrieve the object handles), it will rename all objects in the model with a # char. Renaming all objects in the model (and not just the incriminated object) is important, otherwise you might again have the problem that one object in the YouBot model cannot be accessed anymore (because its name changed).

Read also this page for additional details.

Cheers

Post Reply