Skip to main content
Participant
January 30, 2025
Open for Voting

Be able to have rulers transfer to other comps

  • January 30, 2025
  • 3 replies
  • 387 views

I'm currently working on a project that needs a bunch of assets in different pre-comps with the same resolution to be resized and repositioned and the fast way has been to use rulers, it would be nice if we could toggle it so rulers/guide lines stay on every comp till disabled.

3 replies

Inspiring
February 1, 2025

To make it more usefull, copy the scale and position of the layer you wish to be aligned and set their values in the copy to comps, in this case you may not need to use guides.
I'm not sure as I don't know your compositions structure

Inspiring
February 1, 2025

Hi, I've just wrote this script to copy guides from a source comp (template) to the other comps.
Select the source comp + the copy to comps then run this script.
Read the comments at the start of the scipt before using it.

//~ As I didn't find a way to make Ae respect the order of selection in the project panel
//~ the source comp must be the first alphabeticaly so you can add special character at 
//~ the start of the source comp name manualy before runnig the script. for example "_comp"
//~ else you may give it a distinctive name and change the first line of code to make the script search/compare 
//~ all the project.selection items for the specific name

//~ WARNING THE SCRIPT ASSUMES THE COPY TO COMPS DON'T HAVE ANY GUIDES IN IT

//~ THIS SCRIPT ISN'T TESTED ENOUGH, YOU SHOULD ALWAYS SAVE YOUR WORK BEFORE USING IT

//~ AND USE IT AT YOUR OWN RISK

//~ Good luck
//~ Hani

var sourceComp = app.project.selection[0];
var guides = sourceComp.guides;

app.beginUndoGroup("Copy Guides");

for (var i = 0; i < guides.length; i++) {
    var guide = guides[i];
    var orientation = guide.orientationType;
    var pos = guide.position;
    for (n = 1; n < app.project.selection.length; n++) {
        app.project.selection[n].addGuide(orientation,pos);
        }
}
app.endUndoGroup();
Community Expert
January 30, 2025

Interesting request. It seems like a pretty unique feature which may be why it hasn't been added.