Column

With the Column function, you can retrieve values from columns in your scene and you can add and remove them.

The following are the Column functions:

add
clearKeyFrame
getColorForXSheet
getColumnListOfType
getCurrentVersionFor Drawing
getDisplayName
getDrawingColumnList
getDrawingName
getDrawingTimings
getDrawingType
getElementIdOfDrawing
getEntry
getName
getNextKeyDrawing
getNextKeyDrawing
getPos
getTextOfExpr
importSound
isKeyFrame
move
numberOf
rename
removeSoundColumn
setColorForXSheet
setDrawingType
setElementIdOfDrawing
setEntry
setKeyFrame
setTextOfExpr
type
update

Example

In this script, a loop is run on each column to retrieve the name and type of each column. If a column is a Drawing column, the element is also printed retrieved. All this information is printed to the shell that started Toon Boom Harmony.

function printColumnInfo()

{

n = column.numberOf();

System.println("Columns");

for (i = 0; i < n; ++i)

{

var line;

name = column.getDisplayName(i);

type = column.type(name);

line = i + " " + name + "(" + type + ")";

if (type == "DRAWING")

line += " element = "

+ column.getElementIdOfDrawing(name);

System.println(line);

}

}

Related Topics 

Scripting Reference