Virtual Reality Toolbox | ![]() ![]() |
Read the property value of a vrworld object
Syntax
Arguments
vrworld_object |
Name of a vrworld object representing a virtual world. |
property_name |
Name of the property. |
Description
If no property name is given, the get(vrworld_object)
method displays all the virtual world properties and their values. When a property name is given, the value of that property is returned.
The following are properties of vrworld objects. Names are not case sensitive.
The ClientUpdates
property is set to 'on'
by default and can be set by the user. When it is set to 'off'
, the viewers looking at this virtual world should not update the view according to the virtual world changes. That is, the view is frozen until this property is changed to 'on'
. This is useful for preventing tearing effects with complex animations. Before every animation frame, set ClientUpdates
to 'off'
, make the appropriate modifications to the object positions, and then switch ClientUpdates
back to 'on'
.
The Description
property defaults to '(untitled)'
and can be set by the user. If the virtual world is loaded from a VRML file containing a WorldInfo node with a title
property (see the VRML reference), the Description
property is loaded from the VRML file instead.
The Nodes
property is valid only when the virtual world is open. If the virtual world is closed, Nodes
always contains an empty vector.
The RemoteView
property is set to 'off'
by default and can be set by the user. If it is set to 'on'
, all viewers can access the virtual world through the Web interface. If it is set to 'off'
, only host viewers can access it.
The View
property is set to 'on'
by default and can be set by the user. When it is set to 'off'
, the virtual world is not accessible by the viewer. You rarely use this property.
See Also
![]() | vrworld/edit | vrworld/isvalid | ![]() |