pointAtTime_() broken?

No matter the segment or time used, it always returns the same value.

<CoreFoundation.CGPoint x=9.223372036854776e+18 y=0.0>

Tried with the latest cutting-edge and stable versions.

At then end of each line in your macro panel the points at t 0,5 are still shown, though (eg. 444). Not sure how to properly access those from the top of my head. And they seem to be relative points, bot absolute.

Is that so? I think those are just the segment descriptions, since the code prints the segment.

Yeah, it’s just the coordinates of the segment nodes

segment.pointAtTime_() seems to be only implemented for curve segments.
Until this is fixed, play around with

print(path.pointAtPathTime_(1.5))

the integer part is the node index, the fraction part is the same as in the segment.pointAtTime_().

1 Like

True