function main () -- get the desired scene -- scene = Scenes.get("World") -- by using ":ObjectName" after the scene file, you -- -- will only load ObjectName, and anything it depends -- -- on. -- scene:import("samples/shapes/shapes.xsg:Sphere") scene:import("samples/shapes/shapes.xsg:Cone") -- get references to the objects we loaded -- sphere = Resources.getTransform("Sphere") cone = Resources.getTransform("Cone") -- print out their names to verify they are there -- print( sphere:name() ) print( cone:name() ) end
Sphere
Cone