Class: ProcessingNode

ProcessingNode()

new ProcessingNode()

Initialise an instance of a ProcessingNode.

This class is not used directly, but is extended to create CompositingNodes, TransitionNodes, and EffectNodes.

Source:

Methods

destroy()

Destroy and clean-up the node.

Source:

destroy()

Destroy and clean-up the node.

Source:

getProperty(name)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to get.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition.

getProperty(name)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to get.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition.

setProperty(name, value)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to modify.

value Object

The value to set it to.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel

setProperty(name, value)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to modify.

value Object

The value to set it to.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel

ProcessingNode()

new ProcessingNode()

Initialise an instance of a ProcessingNode.

This class is not used directly, but is extended to create CompositingNodes, TransitionNodes, and EffectNodes.

Source:

Methods

destroy()

Destroy and clean-up the node.

Source:

destroy()

Destroy and clean-up the node.

Source:

getProperty(name)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to get.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition.

getProperty(name)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to get.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
console.log(monoNode.getProperty("inputMix")); //Will output [0.4,0.6,0.2], the default value from the effect definition.

setProperty(name, value)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to modify.

value Object

The value to set it to.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel

setProperty(name, value)

Sets the passed processing node property to the passed value.

Parameters:
Name Type Description
name string

The name of the processing node parameter to modify.

value Object

The value to set it to.

Source:
Example
var ctx = new VideoContext();
var monoNode = ctx.effect(VideoContext.DEFINITIONS.MONOCHROME);
monoNode.setProperty("inputMix", [1.0,0.0,0.0]); //Just use red channel