command#
- anim_keyframe.command(p0: int, p1: int) int #
Specifies a command to execute for at a particular keyframe.
During animation playback, when keyframe ‘key’ is encountered, its commands, if any, will be executed. Up to five commands can be specified for a specific keyframe. If more than five commands are needed, consider using the “play: file.cmd” command to play an external command file. The command string format is the same for any command. Also, consider using the “shell: external_app” command to execute an external application during animation.- Args:
- p0:
‘key_num’ specifies the keyframe
- p1:
‘cmd_num’ specifies the command number
- p2:
‘command’ specifies the command to execute
- Examples:
ensight.anim_keyframe.keyframing("ON") ensight.anim_keyframe.create_keyframe() ensight.view_transf.zoom(0.561365) ensight.anim_keyframe.create_keyframe() ensight.view_transf.zoom(0.561365) ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.command(1,1,"view:","full_screen","on") ensight.anim_keyframe.command(1,2,"view:","hidden_surface","on") ensight.anim_keyframe.command(2,1,"play:","/usr/tmp/ensight_cmds.cmd") ensight.anim_keyframe.run()
- Returns:
zero on success, non-zero on error