Skip to main content
Inspiring
November 24, 2024
Answered

wiggle expression - undefined value

  • November 24, 2024
  • 1 reply
  • 249 views

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 has been closed for replies.
Correct answer Airweb_AE

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
November 24, 2024

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]];