dynamic_plane#

anim_flipbook.dynamic_plane(p0: float, p1: float, p2: float, p3: float, p4: float, p5: float, p6: float, p7: float) int#

Specify dynamic flipbook animation of the selected 2d-clip plane part.

Used for flipbook animations of interactive isosurface, ijk-clip, and xyz-clip parts. Only applicable between commands:
anim_flipbook: interactive_part start
anim_flipbook: interactive_part stop
Args:
p0:

‘part’ GUI part number of the 2D-clip plane part to be animated

p1:

‘cid’ corner id (1, 2, 3, or 4) of the plane tool

p2:

‘XO’ initial x coordinate of the specified corner of the plane

p3:

‘YO’ initial y coordinate of the specified corner of the plane

p4:

‘ZO’ initial z coordinate of the specified corner of the plane

p5:

‘Xn’ final x coordinate of the specified corner of the plane

p6:

‘Yn’ final y coordinate of the specified corner of the plane

p7:

‘Zn’ final z coordinate of the specified corner of the plane

Examples:
#
# From the flow field part (number 1),
# create the 2D-clip plane part (number 2)
# and color it by temperature.
#
ensight.part.select_begin(1)
ensight.clip.begin()
ensight.clip.domain("intersect")
ensight.clip.tool("plane")
ensight.clip.plane(1,-7.5000e-01,-7.5000e-01,1.0000e+00)
ensight.clip.plane(2,1.7500e+00,-7.5000e-01,1.0000e+00)
ensight.clip.plane(3,1.7500e+00,1.7500e+00,1.0000e+00)
ensight.clip.end()
ensight.clip.create()
ensight.part.select_begin(2)
ensight.part.modify_begin()
ensight.part.colorby_palette("temperature")
ensight.part.modify_end()
#
# Specify interactive flipbook animation
# of the 2D-clip part.
#
ensight.anim_flipbook.interactive_part("start")
ensight.tools.plane("line")
ensight.view_transf.function("plane")
ensight.view_transf.action("translate")
ensight.view_transf.translate(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.part.select_begin(2)
ensight.part.modify_begin()
ensight.clip.plane(1,-7.5000e-01,-7.5000e-01,2.0000e+00)
ensight.clip.plane(2,1.7500e+00,-7.5000e-01,2.0000e+00)
ensight.clip.plane(3,1.7500e+00,1.7500e+00,2.0000e+00)
ensight.part.modify_end()
ensight.tools.plane("line")
ensight.tools.plane("line")
ensight.view_transf.function("global")
ensight.view_transf.function("global")
#
# Track the dynamic position of the four corners 
# of the clip plane tool.
#
ensight.anim_flipbook.dynamic_plane(2,1,-0.750000,-0.750000,1.000000,-0.750000,-0.750000,2.000000)
ensight.anim_flipbook.dynamic_plane(2,2,1.750000,-0.750000,1.000000,1.750000,-0.750000,2.000000)
ensight.anim_flipbook.dynamic_plane(2,3,1.750000,1.750000,1.000000,1.750000,1.750000,2.000000)
ensight.anim_flipbook.dynamic_plane(2,4,-0.750000,1.750000,1.000000,-0.750000,1.750000,2.000000)
ensight.anim_flipbook.move_dynamic_plane(2,5,0.000000,0.000000,1.000000)
ensight.anim_flipbook.interactive_part("stop")
#
ensight.anim_flipbook.number_to_create(10)
ensight.anim_flipbook.load()
ensight.tools.plane("OFF")
ensight.anim_flipbook.run_type("auto")
ensight.anim_flipbook.run_type("off")
Returns:

zero on success, non-zero on error