How can I load .obj files directly into my scene on command instead of loading scenes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rj3

The purpose of my program is to view objects in the scene based on user input. I have all the objects necessary within the program res:// directory, but I can’t figure out how to load a part in.

for example, the user inputs “500”, it should load in the .obj file associated with “500”. So far the only way I can figure out how to do this is with scenes. Putting the .obj directly into the scene is what I need, and not having them pre-placed into scenes and just loading those scenes.

Is this possible to accomplish with GDScript or C# within Godot?