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

Select Layer(s) at current time

Engaged ,
Dec 14, 2018 Dec 14, 2018

Before I code something up, is there a function in AE to select any layers that are active at the current time...

Seems like something obvious that may already exist... ?

Searched the shorcuts file, but nothing there.

Thanks!

TOPICS
Scripting
1.2K
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

correct answers 1 Correct answer

Engaged , Dec 17, 2018 Dec 17, 2018

Hey there, not exactly what I was referring to but thanks for reply.

(active means existing at the current time); So the logic, is deselect all layers and then run, to select the layers touched

by time dragger. Useful for when layers are sequenced rather than layered. Tks.

So this is the relevant code...

function ael_selectLayerAtCurrentTime(l){

  if(l.active) l.selected=true;

  if(l instanceof AVlayer){

    if(l.hasAudio){

      if(l.audioActive)l.selected=true;

    }

   

  }

}

Translate
Engaged ,
Dec 17, 2018 Dec 17, 2018

Capture.PNG

There is.

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
Engaged ,
Dec 17, 2018 Dec 17, 2018

Hey there, not exactly what I was referring to but thanks for reply.

(active means existing at the current time); So the logic, is deselect all layers and then run, to select the layers touched

by time dragger. Useful for when layers are sequenced rather than layered. Tks.

So this is the relevant code...

function ael_selectLayerAtCurrentTime(l){

  if(l.active) l.selected=true;

  if(l instanceof AVlayer){

    if(l.hasAudio){

      if(l.audioActive)l.selected=true;

    }

   

  }

}

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
Engaged ,
Dec 17, 2018 Dec 17, 2018

Sorry Alan,

I didn't understand it.

And I'm not sure if I do undestand it now...

Annotation 2018-12-18 074342.jpg

Page 87: http://blogs.adobe.com/wp-content/blogs.dir/48/files/2012/06/After-Effects-CS6-Scripting-Guide.pdf?f...

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
Engaged ,
Dec 18, 2018 Dec 18, 2018
LATEST

eg.jpg

Layer a, is active, and layer b is inactive, not to do with selection.

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