Skip to main content
Inspiring
Nov 24, 2024 4:57 PM UTC
Answered

wiggle expression - undefined value

So i have been using PT_autoexpres plugin for ages. For simple wiggle, loop operations. But.. all of a sudden the code does not work anymore. I am stumped however how to fix it. 

 

On the first line i know get: Error: undefined value used in expression (could be an out of array subscript?)

'Wig Amt - Position' links to an expression control slider .

 

The code is:

freq = 1;

amp = thisLayer.effect("Wig Amt - Position")(1);

result = wiggle(freq, amp);

[result[0],result[1],value[2]];

This topic is closed to new replies. Start a new post to keep the conversation going.
Airweb_AECorrect answer
Legend
Nov 24, 2024 5:04 PM UTC

Apply the expression to a 3D layer

or remove value[2] if the layer is 2D:

 

freq = 1;
amp = thisLayer.effect("Wig Amt - Position")(1);
result = wiggle(freq, amp);
[result[0],result[1]];

 

1 reply

Airweb_AECorrect answer
Legend
Nov 24, 2024 5:04 PM UTC

Apply the expression to a 3D layer

or remove value[2] if the layer is 2D:

 

freq = 1;
amp = thisLayer.effect("Wig Amt - Position")(1);
result = wiggle(freq, amp);
[result[0],result[1]];

 

Translate