0.1.10 • Published 8 years ago

node-tk5 v0.1.10

Weekly downloads
23
License
-
Repository
github
Last release
8 years ago

#node-tk5 Node API wrapping tk5

###Install npm install node-tk5

--

To build this library, following components are needed:

  • Visual Studio 2015 with c++ installed

  • Python 2.7

  • Python environment variable PYTHON={python-dir including exe}

Install (npm): npm install "git+https://bitbucket.org/chyronhego_se/node-tk5.git" --msvs_version=2015

###Example code

#!javascript

var TitleManager = require('node-tk5').TitleManager;

var tm = new TitleManager();
var client = tm.getClient();

client.setServerAddress('127.0.0.1');
client.connect();
tm.setProject('myProject');

var cl = tm.createCommandList();
cl.loadScene('myScene.gse', 'myScene');
cl.set('node', 'Attribute', 'MyData');
var title = tm.createTitle('')
title.execute(cl);

Almost all of the api is the same as TK5, only difference is how events are signaled. The TitleManager object emits all possible events.

#!javascript

tm.on('disconnect', function() {});
tm.on('command', function(cmd) {});
tm.on('message', function(msg) {});
tm.on('pickResult', function(pickXml) {});
tm.on('zoneStateChanged', function(zoneName, state) {});
0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago