Skip to main content
Inspiring
December 15, 2015
Question

script to include keyboard shortcuts ? and make layers selected ?

  • December 15, 2015
  • 1 reply
  • 345 views

hi

I'm working on a script to setup a comp and prepare the timeline so that what needs to be adjusted after the script has run is quickly available.

what would really help is to be able to set certain layers to be showing only their position or rotation values, exactly like hitting the keyboard shortcuts "p" or "r". but I can't find anyway to this. is it possible ?

it would also be very helpful if there was a way to make certain layers selected but "selectedLayers" is read only, is there another way ?

cheers../jl

This topic has been closed for replies.

1 reply

Legend
December 16, 2015

You can have layers be selected by calling it's selected attribute:


var myLayer = app.project.activeItem.layer(1);    //Assumes a comp is open and a layer exists

myLayer.selected = true;

You can also select properties, but I am not aware of showing only the selected properties via ExtendScript.

myLayer.property("Position").selected = true;