Vizard 8 » Command Index » Vizard modules » viz » <viz>.get
8.1

<viz>.get

Obtain certain Vizard initialization states

<viz>.get(  
what # State to retrieve
)  
what
Specifies what to get:

Initial States

viz.HMD

Initialization state of the HMD mode; returns 0 or 1.

viz.STEREO

Initialization state of the STEREO mode; returns 0 or 1.

viz.TRACKER

Initialization state of the TRACKER mode; returns 0 or 1.

viz.OPTION1

Initialization state of the OPTION1 check box; returns 0 or 1.

viz.OPTION2

Initialization state of the OPTION2 check box; returns 0 or 1.

viz.INITMESG

Initialization user text input; returns contents of the message box in the form of a single string.

Remarks

Use this command to learn about how the user started the executing script when combined with the viz.go(viz.PROMPT) option box.

Return Value

Depends on the passed argument.

Example

viz.go(viz.PROMPT)
if viz.get(viz.OPTION1):
    print('Option 1 selected')

See also

viz.PROMPT in <viz>.go