-
Combining two expressions
I’m trying to combine two scripts to achieve the path shown in this image: https://members.shaw.ca/pdebay/spiral.jpg
I started with a ‘bounce between two points’ expression:
origin = [thisComp.width/2, thisComp.height/2];
dest = effect(“end”)(“Point”);
amp=24;
decay=1.2;
dest + (origin – dest)*(Math.exp(-decay*time)*Math.cos(amp*time));and tried to combine (by way of an average) with a circular motion (orbit around middle of comp) expression, but the result is the bottom path in the image.
Any help is appreciated in achieving the top path.
thanks, Pdebster