Skip to main content
Wulx
Participating Frequently
May 20, 2016
Answered

executeCommand("Shy") to specific Layer and Refresh Preview cache

  • May 20, 2016
  • 1 reply
  • 728 views

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

This topic has been closed for replies.
Correct answer Alex White

You can shy your layer exercuting this code:

app.project.item(1).layer("Pos").shy = true;

I'm not sure about refreshing the cache. But you can try those commands:

app.executeCommand(10200);    // purge "All memory and disk cache" dialog

app.executeCommand(2373); // "All Memory" without dialog

1 reply

Alex White
Alex WhiteCorrect answer
Legend
May 20, 2016

You can shy your layer exercuting this code:

app.project.item(1).layer("Pos").shy = true;

I'm not sure about refreshing the cache. But you can try those commands:

app.executeCommand(10200);    // purge "All memory and disk cache" dialog

app.executeCommand(2373); // "All Memory" without dialog