debrief / ppt_renderer

Development project to produce body of scripts for manipulating PPT slide
Eclipse Public License 2.0
2 stars 0 forks source link

Insert set of coordinates for animation #5

Closed IanMayo closed 6 years ago

IanMayo commented 6 years ago

Here are two sets of coordinates. Experiment with inserting them.

The outer rectangle is 800 wide by 600 tall.

These coordinates will have to be scaled to match the size of the rectangle that will contain them.

Here are the coordinates for the path. A: 100,100 200,100, 300,200 450,300 400,250 350,200 B: 300,300 250,250 200,250 150,150 130,120 140,150 160,140

UPDATE . I've attached a file containing coordinates to be used, please.

Seeing this PPT running will be a Huge Milestone. I'll be excited to show it to my users.

Note: we can move the coordinates into a structured format, if you like. You could wrap them in XML, if you wish.

Note 2: here is a spreadsheet that includes the transforms necessary to move from Debrief screen coordinates to PowerPoint coordinates

Steps:

rectangle coords in animation dimensions

TL =  coordinateTransformation(mapX, mapY, mapCX, mapCY, 0, 0, 1, 1)
BR = coordinateTransformation(mapX + mapCX, mapY + mapCY, mapCX, mapCY, 0, 0, 1, 1)

rectangle represented as animated target values

animX = TL.x
animY = TL.y
animCX = BR.x - TL.x
animCY = BT.y - TL.y

Now loop through coordinates with: (x,y) = coordinateTransform(x, y, dimensionWidth, dimensionHeight, animX, animY, animCX, animCY)

IanMayo commented 6 years ago

Sample set of coordinates, plus the times of each step.

times_and_coordinates.txt

IanMayo commented 6 years ago

Ok, I've exported them using the GPX standard. It should be easier for you to parse & process this data in XML format.

Note: the lat/lon values aren't degrees on the world. They x and y screen coordinates that we will be using.

purvil12c commented 6 years ago

For references: http://c-rex.net/projects/samples/ooxml/e1/Part4/OOXML_P4_DOCX_animMotion_topic_ID0EFMLHB.html

IanMayo commented 6 years ago

New requests:

IanMayo commented 6 years ago

Scaling not done. Pushed to #22