Skip to main content
May 10, 2011
Answered

Add layer to bottom of comp.

  • May 10, 2011
  • 2 replies
  • 1892 views

Ok, so I am duplicating a comp, and adding the duplicated comp to the original.

I would like to have the duplicated comp be at the bottom of the layer stack in the original comp.

Is there an easy way to do this?

Thanks in advance!

-Tyler

This topic has been closed for replies.
Correct answer Paul Tuersley

Add the layer to the comp then use the layer.moveToEnd() method. From the scripting guide:

Layer moveToEnd() method

app.project.item(index).layer(index).moveToEnd() Description

Moves this layer to the bottom position of the layer stack (the last layer).

2 replies

Paul TuersleyCorrect answer
Inspiring
May 10, 2011

Add the layer to the comp then use the layer.moveToEnd() method. From the scripting guide:

Layer moveToEnd() method

app.project.item(index).layer(index).moveToEnd() Description

Moves this layer to the bottom position of the layer stack (the last layer).

May 10, 2011

Thanks Paul! I don't know how I missed that in the scripting guide. (palm to forehead).

Todd_Kopriva
Inspiring
May 10, 2011

Speaking of palms to the forehead:

Sorry for not noticing that I was in the scripting forum. My answer was for the non-scripting case.

D'oh!

Todd_Kopriva
Inspiring
May 10, 2011

See this page for how to move the selected layer to the bottom of the layer stack.

I found that with this search.