Notch Notch Manual 0.9.23
 Light | Dark
GetEnvelopeValue()

GetEnvelopeValue()

Purpose #

Retrieves the calculated value (post modifiers and keyframes) of a float property in a node.

The retrieved value is from the last frame.

Syntax #

float GetEnvelopeValue(String field_name);

Parameters

field_namethe field name (NB: Does not require the group name)

returns a float of the resulting calculated value from the last frame.

Example #

function Update()
{ 
    layer = Document.FindLayer("My Layer");
    node = layer.FindNode("Frame Buffer");
    value = node.GetEnvelopeValue("Position X");
}