So I’m very new to Java in general but I’ve been following the advice on the notch manual and looking through some scripts on here and I’d have thought my script would be fine but I’m clearly missing something and have no idea what that is.
My scripts below and if someone could give me some pointers on where I’m going wrong that would be amazing, this issue has been bugging me for a couple of days now so would love to just get it out of the way.
function Initialise()
{
Log(“Math round v.01”);
}
function Update() {
layer = Document.FindLayer(“Fire in the Monkeys Head”);
node = layer.FindNode(“Accumulator”);
var valuex = node.GetEnvelopeValue(“Value”);
var OutputA = node.SetEnvelopeValue(“Math.round(valuex)”);
}
Initialise();
Thanks in advance!
K