LoadViewingSettings Method


Description

Restores surface module settings about the viewing position, angles, lightning conditions previously stored to disk.

Syntax

objDocument.LoadViewingSettings(strViewpointFileName)

Remarks

Valid only if objDocument is of type VMR and and if the Surface Module window for this VMR project has been created. Viewpoint files possess the extension "vwp". To update the Surface Module window, call the RefreshSurfaceWindow method.

Example

' VBScript
Set doc = BrainVoyager.
OpenDocument("subject.vmr")
doc.
SwitchToSurfaceModule
doc.
LoadMesh "subject.srf"
doc.
LoadViewingSettings "NiceLights.vwp"
doc.
RefreshSurfaceWindow

// JScript
doc = BrainVoyager.
OpenDocument("subject.vmr");
doc.
SwitchToSurfaceModule();
doc.
LoadMesh("subject.srf");
doc.
LoadViewingSettings("NiceLights.vwp");
doc.
RefreshSurfaceWindow();

# PerlScript
$doc = $BrainVoyager->
OpenDocument("subject.vmr");
$doc->
SwitchToSurfaceModule();
$doc
->LoadMesh("subject.srf");
$doc
->LoadViewingSettings("NiceLights.vwp");
$doc
->RefreshSurfaceWindow();