Script to create heat map in InDesign 5.0 PC?

I have a table with digits. I want to change the percentage of the fill of each cell to this digit.
Example:
enter image description here

Answer

thanx to Jarek:

Lets assume a textFrame with your table is selected;

var
          mT = app.selection[0].tables[0],
          len = mT.cells.length;

while (len-->0)
          mT.cells[len].fillTint = parseInt(mT.cells[len].contents);

Attribution
Source : Link , Question Author : Pylyp , Answer Author : Pylyp

Leave a Comment