Drawing/text

This module provides functions to retrieve text layers in the Toonboom vector drawings.

Notes:
  • This module being a query, its name is Drawing.text with text in lowercase to distinguish from Drawing.Text which is for operations on text layers.

Methods

(inner) getTextLayers(arg)

This function returns the text layers in the drawing identified by the drawing key and art
Example
var nodeDrawingKey =
  {
    node : "Top/Drawing",
    frame : 1
  };
  var drawingKey = Drawing.Key(nodeDrawingKey);
  var t = Drawing.text.getTextLayers({ drawing: drawingKey, art: 2}); // line art
  System.println(t.length + " text layers in the drawing");
Parameters:
Name Type Description
arg Object
Properties
Name Type Description
drawing DrawingKey The drawing key.
art int The art identifier
Returns:
The list of text layers present in the drawing