Code: Select all
snapSpeed = .2
m = thisComp.marker;
thePos = [transform.position[0], transform.position[1]];
//Configuration Locations
location = [[1541,824],[2685,210]];
mNum = m.nearestKey(time).comment;
//Movement Code
if (m.numKeys > 0) {
ease_in(time, m.key(mNum).time,m.key(mNum).time+snapSpeed,thePos,location[mNum]);
thePos = location[mNum];
} else {
thePos;
}
So my idea is my team can place markers like "0" to have the object go to the coords for 0, "1" goes to coords for 1 and so on.
Help much appreciated!