JavaScript

Why does this not work ? ypos is always 0

function Initialize()
{
Log(“Change Exposed Values v0.1”);
}

function Update()
{
layer = Document.FindLayer(“CURTAIN”);
outputlayer = layer.FindNode(“Centre”);
inputlayer = layer.FindNode(“LeftHand”);
var ypos = inputlayer.GetFloat(“Transform.Position Y”);
outputlayer.SetFloat(“Transform.Position Y”, ypos);
}

Initialize();

Hey Jos,

Have you tried using GetEnvelopeValue() instead of GetFloat()?

http://manual.notch.one/1/en/topic/getenvelopevalue

Thanks,

Ryan

That works a lot better indeed :slight_smile: thank you !