Copy link to clipboard
Copied
Copy link to clipboard
Copied
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("your_layer_name");
fl.getDocumentDOM().getTimeline().setSelectedLayers(layerIndex[0], true);
/* if you have same named layers, index 0 might not be what you want. */
Copy link to clipboard
Copied
still doesn't work
Copy link to clipboard
Copied
is there an error
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Still not working
Copy link to clipboard
Copied
the code i suggested works. if you have an error it's elsewhere.
if you want me to download your file and fix those error(s), you'll need to tell me what you want the code to do and you'll need to hire me. ie, i generally don't download and correct errors unless i'm paid.
free help i offer via the adobe forums.
Copy link to clipboard
Copied
🙃
Copy link to clipboard
Copied
thank you solved,your answer is correct
Copy link to clipboard
Copied
you're welcome.
p.s. mark the correct post, if you have time.
Copy link to clipboard
Copied
Just tried it, still doesn't work
Copy link to clipboard
Copied
You can open my project file and test it
an.getDocumentDOM().enterEditMode('inPlace');
var layerIndex = fl.getDocumentDOM().getTimeline().findLayerIndex("layer_3");
an.getDocumentDOM().getTimeline().setSelectedLayers(layerIndex[0], true);
an.getDocumentDOM().setElementProperty('firstFrame', 5-1);
an.getDocumentDOM().exitEditMode();
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more