Skip to main content
Known Participant
September 15, 2022
Question

BUG - AE either crashes or return error for too much layers requesting -index rotation propriety

  • September 15, 2022
  • 1 reply
  • 221 views

I got a compostition with a shape layer that keeps scaling up, the animation is supposed to be cascading and a at certain time all of the shapes will have to rotate following the "Ctrls" layer's rotation and a delay in time controled by a slider on the same "Ctrls" layer.

 

This is the expression I'm using to control the rotation.

r = thisComp.layer(index-1).content("main").transform.rotation;
d = thisComp.layer("Ctrls").effect("rotationDelay")("Slider")*thisComp.frameDuration;
r.valueAtTime(time-d)

 

 

Also the colors change depending of the index of the layer. And a pseudo fx with 12 colors controlers

n = thisComp.layer("Main_Tomb").index - index+2;
d = n % 12
thisComp.layer("Ctrls").effect("TombStoneColors 2")([d+2])

 

When I start repeating the yellow colored layers aound the 91th layer and cascade it to 3 frames AE will start loosing the grip on the rotation of the layers and start rotatin erradically.

If I keep duplicating above 100 for example expression errors on the rotation property that was fine so far start to appear and if I keep repeating eventually the colors expression will break and even crash AE.

 

I've uploaded 2 versions of the same file. The difference is just that I kept add layers till the bugs start showing.

This topic has been closed for replies.

1 reply

Mylenium
Legend
September 16, 2022

I would suspect your "Main_Tomb" layer is simply producing unusable values. Based on your screenshot where it's nowhere to be seen I have to assume and then it becomes a matter of your formula producing odd values. Hard to say, as the code itself seems plausible. As a st art it would probbaly help to click on that orange banner and see what those 50 expression errors actually are.

 

Mylenium

ricar2Author
Known Participant
September 20, 2022

I just send the prinscreen to show that the issue exists, did the .aep files got uploaded as well on this thread? 

The 50 errors appear after I duplicate the layesrs that use that rotation expression, that's why I think it is a bug. Bc while I have about 50 - 60 layers, everything works as intended. But after getting the layer count above 90 AE starts of loosing the grip of what its doing.

The main tomb rotation is basically starting with a angle of -15, then interpolate to -20 then +20 and +15 with about 3 to 4 frames btween each keyframe. Could that create unusued values? Bc they are even in whole keyframes.

Can you take a look and tell me if something is really of on my end?