Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Control Layers with multiple dots

Explorer ,
Jul 03, 2023 Jul 03, 2023

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.

TOPICS
Expressions , Scripting
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2023 Jul 03, 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?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2023 Aug 04, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2023 Aug 04, 2023
LATEST

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

 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines