Virtual Reality Toolbox | ![]() ![]() |
Change a property or a VRML field of a virtual world node
Syntax
x = set(vrnode_object
, 'property_name
'
,
'
property_value
'
) x = set(vrnode_object
,'
fieldname
'
,
'
fieldvalue
'
)
Arguments
vrnode_object |
Name of a vrnode object representing a node in the virtual world. |
property_name |
Name of a property. |
fieldname |
Name of a field. |
Description
x = set(
vrnode_object
, '
property_name
','
property_value
')
changes the specified property of the vrnode object to the specified value.
x = set(vrnode_object
, '
fieldname
'
,
'
fieldvalue
'
) changes the specified field of the vrnode object to the specified value. Note that you can specify multiple field names and field values in one line of code by grouping them in pairs. For example, x = set(vrnode_object
, '
fieldname
'
,
'
fieldvalue
'
,
'
fieldname
'
,
'
fieldvalue
'
, ...
)
If a vrnode object is the only argument, a list of all settable VRML fields along with allowed value types is displayed in the MATLAB Command Window.
Because all node properties are read-only, you can write values only to VRML fields. VRML field names are case sensitive, while property names are not.
See Also
vrnode/get
, vrnode/getfield
, vrnode/setfield
, vrnode
![]() | vrnode/isvalid | vrnode/setfield | ![]() |