Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Making a standard set of rulers?

  • Making a standard set of rulers?

  • Eric Chard

    March 2, 2021 at 7:03 pm

    Making a standard set of rulers?

    Technical Question

    I’d like the capability to create with one keystroke (launch a script) my own custom set of rulers created. Like, “Borders 10 pixels inside the comp, plus center X and Y rulers”.

    Is that possible? Has someone already done it?

  • Walter Soyka

    March 2, 2021 at 9:44 pm

    Very possible! Here’s the code for a script to do exactly as you describe. Let me know if you have any questions.

    app.beginUndoGroup("Create guides");


    var VERTICAL_GUIDE = 1;

    app.project.activeItem.addGuide(HORIZONTAL_GUIDE, 10);

    app.project.activeItem.addGuide(HORIZONTAL_GUIDE, app.project.activeItem.height - 10);

    app.project.activeItem.addGuide(HORIZONTAL_GUIDE, app.project.activeItem.height / 2);

    app.project.activeItem.addGuide(VERTICAL_GUIDE, 10);

    app.project.activeItem.addGuide(VERTICAL_GUIDE, app.project.activeItem.width - 10);

    app.project.activeItem.addGuide(VERTICAL_GUIDE, app.project.activeItem.width / 2);


  • Walter Soyka

    March 2, 2021 at 9:45 pm

    Oh, and Adobe quietly added a feature to export and import guides a few releases ago. These features are available through the View menu.

  • Eric Chard

    March 5, 2021 at 4:04 am

    Thank you very much!

Viewing 1 - 4 of 4 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy