Notch Notch
Manual 1.0 Manual 0.9.23
 Light | Dark
GetEmbed()

GetEmbed()

Updated: 6 Sep 2024

Purpose #

Retrieves the embedded node object with the given index.

Syntax #

object GetEmbed(int node_index);

Parameters

node_indexThe array index of the embedded nodes.

returns Node Object if found or, if not found, object of type undefined.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Image 2D");
    numEmbeds = node.GetNumEmbeds();
    for (i = 0; i < numEmbeds; i++)
    {
        embed = node.GetEmbed(i);
    }
}