wtv-r3-space-engine

This module allows access to wTVision's R3 Space Engine by implementing its socket API in NodeJS and provides easy access node module to it's funcionalities as well as an HTTP Rest API to access the engine remotely

Usage no npm install needed!

<script type="module">
  import wtvR3SpaceEngine from 'https://cdn.skypack.dev/wtv-r3-space-engine';
</script>

README

R3 Space Engine Controller

This module allows access to the R3 Space Engine by implementing it's socket API in NodeJS and providing easy access to its funcionalities for nodejs developers.

The module is in typescript and is transpiled to ES6 so the --experimental-modules flag is required for proper loading of the module

  import { R3SpaceEngine } from 'wtv-r3-space-engine'

  async function doDemo() {
    let r3 = new R3SpaceEngine('localhost', 9001)
    r3.setDebug(true) // turn this off when done debugging
    await r3.connect()
    scene = await r3.loadScene('SampleProject', 'SampleScene')
    scene.setExport('tText', 'Hello World')  
    scene.takeOnline()
    scene.playTimeline('In')
  }

doDemo()