Page 1 of 1

is there a way to get the selected (focused) layer name ?

Posted: March 6th, 2005, 2:13 am
by dan_kori
i select a layer .

then , i press a button :



{
curItem = app.project.activeItem;
if (curItem == null || !(curItem instanceof CompItem))
{
alert("plz select a comp");
}

alert(curItem.name);
}



this selects the active composition, but i want to get the selected layer .



thanks


d.k.

Posted: March 6th, 2005, 3:57 am
by Shinjipierre