executeCommand("Shy") to specific Layer and Refresh Preview cache
Hi,
Im actually doing a button to execute command to Shy an specific layer called: app.project.item(1).layer("Pos").property("Position")
And then refresh the Preview green bar at the top of timeline. Because after effects CC 2015 always trying to save some cache in that green line, and i dont want it, so i need a command or something in javascript to refresh that green bar.
For the Shy Command is here : app.executeCommand(app.findMenuCommandId("Shy"))
But how to apply the shy command in my specific layer???? and then refresh preview????
(I dont need the Button Panel) Just the lines of code of my question.
Thank you in advance