-
animation path stroke
Hey there,
I ve made animated a path in the way that i set the starting anchor point in the first keyframe then i took a step forward to the next frame and added another anchor point which is then keyframed and so on.
so the path grows from anchor point to anchor point in each keyframe.now because the path is very long (about 3000 anchor points in the end of the animation) i need an automation for the following :
I want the path stroke to be only visible from most recent anchor point in the the keyframe i am in ( for example in keyframe number 10 ) 5 anchor points back. that means from anchor point 10 to 9, from 9 to 8, 8 to 7, 7 to 6 and 6 to 5.so just for understanding when im at the 50th keyframe where i already have 50 anchor points set, in that keyframe i only want to see the last five lines also.
so that i get a construct of 5 lines in result.
I hope anyone gets what i mean and can help me out.
I cannot find anythin on google considering effects working with the anchor point numbers.Does anyone know if/ how it is possible do? i think it should work with a script
but i dont know how to delete certain vertices via scripti got it to select the path somehow and i can get the vertices array ( in the var Verts ) but i dont know how to remove specific vertices in specific keyframes …
var theComp = app.project.activeItem;
var theLayer = theComp.layer(1);
//var thePath = theComp.selectedProperties[0];
var myProperty = theLayer.content("Form 1").content("Pfad 1").property(2).value;var Verts = theLayer.content("Form 1").content("Pfad 1").property(2).value.vertices;
best wishes,
Alfred Steiner

