Contact Us

CATEGORIES

Whoops…Nothing found

Try other keywords in your search

Cue Network Command (Output - JavaScript)

 0 Minutes

 0 Likes

 3132 Views

Pixera offers a way how to send out an API command via the cues.

  1. Set API output 1 to internal JavaScript. no IP, no Port.

  2. Set Cue API output to output 1

The easiest way (and most robust, considering possible future changes) to access the environment from a cue handler is to use the g_cue object that is preloaded when the script is run. 
It gives access to the instance of the cue whose script is being executed.e.g. g_cue.getTimeline().play() will play whichever timeline the cue is in. 

In principle the JavaScript API has the same members as the json api so the documentation is relevant for both. Regrettably, the "static" functions (associated with a class but not with an instance) like getInst() do not currently work in JavaScript.
Example:

function onCue()
{
Pixera.Timelines.getTimelineFromName("Timeline 1").getLayerAtIndex(0).unMuteLayer();
}

See also Cue Network Command (pixc) 


PIXERA 25.1  | 22. July 2025 | J.B.


 

Was this article helpful?