Changing shape of an object following a motion path

I have a software simulation video provided by a client. In it the video annoyingly scrolls up and down while I have placed a “highlighting” shape over an area of the video.

I can make the shape follow a path in sequence with the scrolling, but I would also like to slightly change the dimensions of the shape during the motion path, as the background video also changes at the same time.

Is there a way I can change the dimension of the shape while it follows the path?

Bob

You should be able to do this.

Perhaps there are multiple approaches.

My offering is through the use of JavaScript.
The manual (see pgs 329-331) - has many options to adjust the dimensions/placement on screen.
Some examples

// Here is a simple animation
$(prez.object("objectName").node).animate({left: "700px"},5000);

// Set specific height and width
prez.object("objectName").size(50,50);

// Use a scale multiplier for the X and Y
prez.object("objectName").scale(1.2, 1.2);

// use when doing a Left/Right slide
prez.object("objectName").top(25);
prez.object("objectName").top(225);

// Use when doing a top/bottom slide.
prez.object("objectName").left(750);

There are others but hopefully this helps with some ideas for approaching it.