move_dynamic_plane#

anim_flipbook.move_dynamic_plane(p0: float, p1: float, p2: float, p3: float, p4: float) int#

Specify the vector in which the 2d-clip plane part is to be transformed.

Only currently applicable for “anim_flipbook: dynamic_plane” commands, i.e. for flipbook animations of interactive clip parts via the plane tool.
Args:
p0:

‘part’ GUI part number of the part to be animated

p1:

‘transform’ 1 - rotation transformation

p2:

‘dx’ x-component of the direction vector for the transformation to follow

p3:

‘dy’ y-component of the direction vector for the transformation to follow

p4:

‘dz’ z-component of the direction vector for the transformation to follow

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)
#
# Indicate the 2d-clip plane's translation
#
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