Chapter 4: Scripting Reference

This chapter describes the built-in objects which can be accessed with Qt® Script.

With Qt Script, you can access the following built-in Toon Boom Harmony objects.

About
Action
Column
CopyPaste
DrawingTools
Element
Exporter
Frame
Function Curve
FileMapper
KeyModifiers
MessageLog
MovieImport
Node
PaletteManager
PenstyleManager
Preferences
Render
Scene
Selection
Sound
SpecialFolders
Timeline
ToolProperties
View

Each object has its own set of functions that can manipulate the attributes of the object.

All functions can receive the following data types as arguments. All functions return the same data types.

An integer (numerical value)

On failure, the function returns -1.

A string

When used as arguments, strings must be enclosed in quotes. On failure the function returns the null string “”.

A boolean value (true or false).

The function returns false on failure.

As arguments, these data types can be supplied in the function or can be generated by other functions.

For more information on the Qt scripting language, see the following:

Language: http://doc.trolltech.com/qsa-1.1.5/language.html
Creating Qt Scripts, including building dialog boxes:

http://doc.trolltech.com/qsa-1.1.5/qsa-5.html