The usual way to create a VrmlFile in a space is to upload it to the server the first time it appears as a VrmlFile, and then clone that VrmlFile for every additional instance of it you want. But suppose you already have a vrml that is hosted by a web server, an ftp site, or already exists somewhere on the VRSpace server. You can manually create a VrmlFile by typing the following into the Console:
(In fact, this command can be used to make any type of VRObject). The server will respond with the id of the new VrmlFile. An example response is:
You can now use this id, to reference the object and change its properties. To view the properties of this new VRObject, type:
An example response is:
The field we are interested in is url. When a VrmlFile is encountered by the client, its url property is used to load the vrml file that it represents. To set the url to the one you are planning to use (e..g. http://www.vrspace.org:8080/vrspace/pub/bill/kill.wrl) you would type:
If you now type /view VrmlFile 3 again you will say the url has changed. Relogin to the server (or /quit ) to see the VrmlFile appear. As you login, you will be presented with a window that let's you set information for your new object. All that you must do is check active, and hit submit. See Building Your First World, for more information on how to move this new object around.
Once a VrmlFile already exists in a VRSpace, you may clone it to your heart's content. Each time, the VrmlFile representing the object will be exactly duplicated and placed at the origin for placement. If we wanted to clone the file we just created we would type:
and the server would respond with
You will also be presented with a window that let's you set information for your new object. All that you must do is check active, and hit submit. That's all there is to it. Shizzle.