Hi there.

From my experience on this, the first and last points of the stroke, position 0 and 1 of the stroke should come from the fist and final actual control points of the curve, not from the sampled cubic curve. The rest of the points between 0 and 1 can be sampled points, that way the curve matches the stroke.

start control point
shape[0].center.getPositionAnimCurve(0).evaluate(key),shape[0].center.getPositionAnimCurve(1).evaluate(key)

last control point
shape[-1].center.getPositionAnimCurve(0).evaluate(key),shape[-1].center.getPositionAnimCurve(1).evaluate(key)



Hi.

I'm using evaluate() on a brush stroke and sampling 10 points along that curve.
At the same time I'm linearly animating the writeon_end from 0 to 1 over 100 frames.
I would expect the sampled positions to line up with the writeon_end position at frames 0, 10, 20, 30, 40 etc

but they don't! Is writeon_start/end using another parametrization of the curve to draw the strokes?

Andre



--
Magno Borgo

www.borgo.tv
3D | VFX | Motion Graphics
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to