Virtual Reality Toolbox | ![]() ![]() |
Change a field value of a vrnode object
Syntax
Arguments
vrnode_object |
Name of a vrnode object representing the node to be queried. |
fieldname |
Name of the vrnode object field whose values you want to query. |
Description
x = setfield(
vrnode_object
,'
fieldname
'
,
'
fieldvalue
')
changes the specified field of the vrnode object to the specified value. You can specify multiple field names and field values in one line of code by grouping them in pairs. For example, x = setfield
(vrnode_object
, '
fieldname
'
,
'
fieldvalue
'
,
'
fieldname
'
,
'
fieldvalue
'
, ...
). Note that VRML field names are case sensitive, while property names are not.
See Also
vrnode/get
, vrnode/set
, vrnode/getfield
, vrnode
![]() | vrnode/set | vrnode/sync | ![]() |