delay_refresh#

command.delay_refresh(p0: str) int#

Causes a delay between each command while playing commands from a command file.

If delay refresh is on, the graphics are not redrawn after each command.
Playback of command files can be sped up toggling on delay_refresh at the beginning of the command file and then off towards the end (i.e. just before recording of an animation).
It is advantageous to use this technique for batch animations.
Args:
p0:

‘toggle’

  • ON

  • OFF

Examples:
#
# Save time by not drawing the image after each command 
#
ensight.command.delay_refresh("ON")
# 
# Other commands to set up the animation 
# 
# restore graphics updates 
#
ensight.command.delay_refresh("OFF")
Returns:

zero on success, non-zero on error