Z.tagCall(...)

function tagCall(tag: string, func: string, ...args: any[]): any[];

Used to call a common function on all the nodes with the given tag.

Parameters

Parameter Type Description
tag string The tag to search for.
func string The name of the common function to call.
args any[] A variable-length list of arguments to pass to the given functions.

Returns

An array of the return values from each function call performed.

Example

// Search for objects with the tag 'RED' and call the 'color' function on them.
Z.tagCall("RED","color",[1,0,0,1]);

// Same as calling symbol.nodes.myNode.color([1,0,0,1]); on a group of nodes
zapcode branded_zapcode i