
end trim to reveal motion path dinamically created•
hi all! having discovered this gem here: https://gist.github.com/yone80/389722e4d70981828b41ce3b3d4cefce which applied to the path property of a shape layer, it dinamically creates the shape of the motion path I want to automate this and make the main layer actually reveal this created shape layer. So I tought an easy way was to add a trim paths property to te shape layer, and then just link the end trim value to the main layer's position keyframes time values (1st time and last keyframe time), with a linear function. BUT what I thought it was going to be easy, I'm blocked and there is no way to make t work properly. Any ideas? so: 1. there is a main layer. 2. there is a shape layer with the awesome code Satoru Yonekura wrote, to make the shape path mimic the main layer's motion path. 3. I apply a trim path to the shape layer. 4. how to link the end trim to the main layer somwhow, to make it act as a visible motion path? 5. maybe there is no need f creating a trim effect and can be fixed inside the main expression? here is the code to add to the shape path: (I past it here so it's more easy to go thru the thread. If there is any incovenience pasting it from another source, just let me know and I will delete this and let just the link. Said that, all the copyrights, greetings and hails for Satoru Yonekura)
thanks in advance!
•
any ideas? I found this super old post, where maybe there is a possible way, it is about calculating the total distance of an animated motion track. https://forums.creativecow.net/archivethread/2/540727#540907 I think that distance can be used to measure the movin lead layer and then substract to the position til the end somehow? Here is the code Dan Ebberts and Filip Vandueren came up with:
thanks!
|