Skip to main content
Known Participant
July 3, 2023
Question

Control Layers with multiple dots

  • July 3, 2023
  • 3 replies
  • 271 views

So i'm trying to use a control layer to effect hundreds of dots

https://www.youtube.com/watch?v=1UaZNcVobhg&t=293s

i've watched this tutorial and its great, i can get it to work, but after 5 mins its constantly crashing After Effects when i start duplicated all the layers to make up the hundereds of dots.

each layer has this code:

x = thisComp.layer("Gradient").sampleImage(transform.position, [.5,.5]/2, true, time)[0]; 100*[x,x]

really annoying as i need to use this effect on a job.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Participant
August 4, 2023

I'm struggling with same problem.. Have you solved it?

 
Dan Ebberts
Community Expert
Community Expert
July 3, 2023

Assuming you have pre-comped your Gradient layer (like in the tutorial) you should try turning off the post effect parameter in sampleImage() and see if that improves performance, like this:

x = thisComp.layer("Gradient").sampleImage(transform.position, [.5,.5]/2, false, time)[0]; 100*[x,x]

Also, when you say "crashing After Effects", what do you mean exactlly? Are you getting any error messages?

 

Participant
August 4, 2023

I'm struggling with same problem.. Have you solved it?