Newbie question, how to add individual mesh to scene

Hi, I can’t figure out how can I can add individual meshes to the scene (loaded with the SceneLoader)

If I use the container.addAllToScene();, It also adds some lights that I don’t want to add.
I tried setting a parent object that is already in the scene, but the object does not appear.
Isn’t there something like, scene.addChild(mesh) ?

Here is an example of my code

 var pivot = new BABYLON.TransformNode("root");

 var loader=BABYLON.SceneLoader.LoadAssetContainer("./models/", "teapot.babylon", scene, 
           function (container) {
                    var meshes = container.meshes;
                    var materials = container.materials;
                
                    for (var i=0;i<meshes.length;i++){    
                        meshes[i].setParent(pivot);
                    }
          });

You might find this thread of interest Loading multiple 3D models with assetmanager

Can you try to repro in the Playground? Will be easier to help
Doc to reference external assets: Using External Assets - Babylon.js Documentation

Hi!
Hope I got your question right, that you only want to import specific meshes to the scene…

I build this Playground as example for you:
https://playground.babylonjs.com/#Z44DT5

You may take a look at the link @JohnK provided! The assetsmanger is also a nice way to do it and brings some really nice features with it.

If you need more help, then a repro in the Playground would be usefull :slightly_smiling_face:

Thanks!, I think that would help me.