FORUMS: list search recent posts

app.executeCommand() for 100% Zoom

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ilya Sire
app.executeCommand() for 100% Zoom
on Aug 10, 2017 at 8:33:39 am

Hi forum,

What is the code app.executeCommand() for 100% zoom, or key "/".

Anyone can help?
Thank you


Return to posts index

Andrei Popa
Re: app.executeCommand() for 100% Zoom
on Aug 10, 2017 at 9:51:31 am

I'm not 100% sure about this but i think the app.executeCommant() is for menu command only. David Torno has put out this massive list of commands id, but i do not think there is a reset zoom.

Andrei


Return to posts index

Ilya Sire
Re: app.executeCommand() for 100% Zoom
on Aug 10, 2017 at 9:54:39 am

Ah i see, thank you for the link, will check that.


Return to posts index


Xavier Gomez
Re: app.executeCommand() for 100% Zoom
on Aug 11, 2017 at 5:41:43 pm

You can do it without a menu command, using the viewer object:

if (app.activeViewer) app.activeViewer.views[0].options.zoom = 1.0;

(it can't be used to "Fit up to 100%" though, only absolute values).

Xavier


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]