Copy link to clipboard
Copied
I'm following this tutorial https://www.youtube.com/watch?v=Qupphl-scQY and the first time I got an error message for the first part of the expression. In project settings I switched from JavaScript to Legacy ExtendScript, restarted AE and tried again: the first error solved itself but a new error appeared instead. The orange object is the parent and a 3D object if it matters. Any thoughts on how I could solve this?
s = [];
parentScale = parent.transform.scale.value;
for (i = 0; i < parentScale.length; i++){
s[i] = (parentScale[i]== 0) ? 0 : value[i]*100/parentScale[i];
}
sCopy link to clipboard
Copied
Your parent layer is a 3D layer and thus has three scale values whereas your ball is 2D. Thus the code looks for a value that doesn't exist. Tunr on 3D or modify the expression to be parentScale.length-1.
Mylenium
Copy link to clipboard
Copied
Ohh makes sense! Thank you!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now