animate_transparency#
- anim_keyframe.animate_transparency(p0: str) int #
Toggles use of animated transparency.
This command can be turned on at any time during keyframe recording. If it is on, any transparency modifications made to parts during keyframe specification will be animated during playback. This can be used to create video effects such as fades.- Args:
- p0:
‘toggle’
ON
OFF
- Examples:
ensight.anim_keyframe.keyframing("ON") ensight.anim_keyframe.create_keyframe() # WARNING: following line includes OBSOLETE call (ensight.part.select_partname_begin). ensight.part.select_partname_begin("(CASE:Case 1)Isosurface part") ensight.part.modify_begin() # WARNING: following line includes OBSOLETE call (ensight.part.opaqueness). ensight.part.opaqueness(0.0) ensight.part.modify_end() ensight.anim_keyframe.create_keyframe() ensight.part.modify_begin() # WARNING: following line includes OBSOLETE call (ensight.part.opaqueness). ensight.part.opaqueness(1.0) ensight.part.modify_end() ensight.anim_keyframe.create_keyframe() ensight.anim_keyframe.animate_transparency("ON") ensight.anim_keyframe.run()
- Returns:
zero on success, non-zero on error