Harmony Controller App

Hi All,

I was watching a Wacom Cintiq 27QHD unboxing video on youtube.com, with great envy! There is a controller that comes with it that lets you use programmable buttons. I think that would be really useful to have, so I came up with the idea of using my smart phone as such a device.

It could potentially be really customisable with configurable buttons. Making the app would be easy as I’m a software engineer by trade. Interfacing with harmony will not. I could develop an app to run on my PC that can trigger button press events when I tap the phone that would work but isn’t a very clean solution.

First question, does this already exist?

Does anyone know if there is a way to connect to the software via tcp/ip or an api that I could send the instruction directly to the software?

Thanks,

Tom

In theory, all you would need to do is program the app to provide the
keyboard shortcut used by Harmony to provide the desired action and
then actually have the Harmony window be the active one.

Of course this also depends specifically on what it is that you want the
controller to trigger.

You can also access some functionality through the scripting interface.
You could then run Stage from command line using

Stage -compile [qt_script_file]

or combine this with a compiled program to run different scripts in
succession.

Hi rkriz,

could you give me an example of a working command line launching a sample script on a PC, please?

Or, do you know where I can find a documtation about TB command lines?

Best regards

From the “bin” folder of Harmony:
HarmonyPremium.exe -help for command line options.
HarmonyPremium.exe -compile [your QT script name]

You can find info on QT scripting here:
https://doc.qt.io/archives/qsa-1.2.2/language.html

Perfect!

Thank you very much!!!

Sorry for getting back to the command line topic.

But, I really don’t manage to launch a script on a currently open Harmony scene.

I’m trying to launch the following script which should select the first layer in the timeline:
function selectFirstLayer()
{
selection.clearSelection();
selection.addDrawingColumnToSelection(Timeline.layerToColumn(0));
}
selectFirstLayer();

and the command line I use is as follows:
C:\Program Files (x86)\Toon Boom Animation\Toon Boom Harmony 14.0 Premium\win64\bin\HarmonyPremium.exe -scene F:\TB\TestScene\TestScene.xstage -compile F:\TB\SelectFirstLayer.js

Unfortunately, nothing happens and I get the following prompt:
Harmony Premium (HarmonyPremium.exe) version 14.0.0 build 11461 2016-06-21 14:02
:21

Starting mailbox server [49169]
OFXHost Validation and plugin cache generation started…
OFXHost Validation Completed.
Platforms detected: Intel(R) Corporation
No groups found.
Loading script: F:\TB\SelectFirstLayer.js
Total drawings in oglcache: 0

Do you have an idea what could be wrong?