| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink 3D Animation |
| Contents | Index |
| Learn more about Simulink 3D Animation |
vrplay
vrplay(filename)
x=vrplay(filename)
vrplay opens the Virtual Reality animation player GUI that allows you to open and play VRML animation files.
vrplay(filename) opens the Virtual Reality animation player GUI and loads the virtual world filename.
x=vrplay(filename) also returns a Virtual Reality animation player GUI 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.
The GUI's playback controls can also be accessed from the keyboard.
| Key | Function |
|---|---|
| F, Page Down | Fast forward |
| J | Jump to time |
| L | Loop |
| P | Play/pause toggle |
| S | Stop |
| R, Page Up | Rewind |
| Right arrow key | Step forward |
| Left arrow key | Step reverse |
| Up arrow key | First |
| Down arrow key | Last |
To play the animation file based on the vr_octavia demo, run vrplay('octavia_scene_anim.wrl').
Recording Offline Animations, vrview
![]() | vrphysmod | vrrotvec | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |