Documentation

vrplay

Play VRML animation file

Syntax

vrplay
vrplay(filename)
x=vrplay(filename)

Description

vrplay opens the 3D Animation Player, which you use to open and play VRML animation files.

vrplay(filename) opens the 3D Animation Player and loads the virtual world filename.

x=vrplay(filename) also returns a 3D Animation Player figure handle.

vrplay works only with VRML animation files created using the Simulink® 3D Animation™ VRML recording functionality.

Setting the DefaultViewer property to internalv4 affects the behavior of the vrplay function. When you create additional vrplay windows using the File > New Window command, the window respects the current setting of the DefaultViewer property. By default, the File > New Window command creates the new player window implemented as a MATLAB® figure.

If you set the DefaultViewer property to internalv4, the File > New Window command creates the new player window as in previous releases.

Keyboard Support

The playback controls can also be accessed from the keyboard.

KeyFunction
F, Page DownFast forward
JJump to time
LLoop
PPlay/pause toggle
SStop
R, Page UpRewind
Right arrow keyStep forward
Left arrow keyStep reverse
Up arrow keyFirst
Down arrow keyLast

Examples

To play the animation file based on the vr_octavia example, run vrplay('octavia_scene_anim.wrl').

See Also

Was this topic helpful?