Known Participant
July 14, 2023
Answered
Create a shortcut with two actions
- July 14, 2023
- 1 reply
- 2320 views
This two steps on print:
Please save the code below in a .jsfl file and test it. If it works, you can place this file in the commands folder and assign a shortcut to it.
var dom = fl.getDocumentDOM();
var tl = dom.getTimeline();
var currentLayerIndex = tl.currentLayer;
var currentLayer = tl.layers[currentLayerIndex];
if (currentLayer.layerType === "folder")
{
tl.expandFolder(true);
tl.setLayerProperty("locked", true, "all");
tl.setLayerProperty("locked", false);
}Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.