dynamic_line#

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

Specify dynamic flipbook animation of the selected 1d-clip line part.

Only used for flipbook animations of interactive clip line parts.
Must be bracketed by “anim_flipbook: interactive_part start” and “anim_flipbook: interactive_part end”.
Args:
p0:

‘part’ a valid GUI part number, for a line clip

p1:

‘end’ 1 - beginning line position

p2:

‘end’ 2 - ending line position

p3:

‘X0’ X coordinate of first end point of specified line position

p4:

‘YO’ Y coordinate of first end point of specified line position

p5:

‘ZO’ Z coordinate of first end point of specified line position

p6:

‘Xn’ Y coordinate of second end point of specified line position

p7:

‘Yn’ X coordinate of second end point of specified line position

p8:

‘Zn’ Z coordinate of second end point of specified line position

Examples:
#
# Create the line clip part from the parent field
#
ensight.part.select_all()
ensight.clip.begin()
ensight.clip.domain("intersect")
ensight.clip.tool("line")
ensight.clip.line(1,5.8348e-01,1.3165e+00,1.2670e+00)
ensight.clip.line(2,3.0835e+00,1.3165e+00,1.2670e+00)
ensight.clip.end()
ensight.clip.create()
ensight.part.select_begin(2)
#
# Load and animate the clip-line part 
# between the 1st and 2nd dynamic_line positions.
#
ensight.anim_flipbook.interactive_part("start")
ensight.tools.line("ON")
ensight.part.select_begin(2)
ensight.view_transf.function("line")
ensight.view_transf.translate(1.33481,0.816460,0.266963)
ensight.view_transf.function("global")
ensight.anim_flipbook.dynamic_line(2,1,-0.750000,0.500000,1.000000,0.583581,1.316460,1.266963)
ensight.anim_flipbook.dynamic_line(2,2,1.750000,0.500000,1.000000,3.083481,1.316460,1.266963)
ensight.anim_flipbook.interactive_part("stop")
ensight.anim_flipbook.number_to_create(10)
ensight.anim_flipbook.load()
ensight.anim_flipbook.run_type("auto")
ensight.tools.line("OFF")
Returns:

zero on success, non-zero on error