Vizard 8 » Command Index » Vizard modules » viz » <viz:res>.isPublished
8.1

<viz:res>.isPublished

Returns whether the script is running in published mode

<viz:res>.isPublished()  

Remarks

This command returns whether the script is running in published mode (i.e. within an exe). This is generally used when you need to take a different action within a published exe.

Return Value

True/False

Example

# Disable Framerate/Wireframe keys when published to EXE
if viz.res.isPublished():
    viz.setOption('viz.default_key.framerate',0)
    viz.setOption('viz.default_key.poly_mode',0)

See also

<viz:res>.isCapturing
<viz:res>.getPublishedPath