• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

The left page becomes the right page, is the problem of dislocation of the picture solved?

Advocate ,
Jul 05, 2024 Jul 05, 2024

Copy link to clipboard

Copied

The left page becomes the right page, is the problem of dislocation of the picture solved?

The original object should be moved left or right for 3mm.

01.png02.png

 

TOPICS
Bug , Feature request , How to , Import and export , Scripting

Views

182

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 11, 2024 Jul 11, 2024

Copy link to clipboard

Copied

If you anchor the image in a text frame you can control the placing when it moves pages 

 
0rxRcJTAHgEr.png

 

Then add a page and it will shift correctly

 

KAmrKnEunqXG.png

 

Here's an example file

Enjoy the picture of my dog with a perm 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 11, 2024 Jul 11, 2024

Copy link to clipboard

Copied

Do you put an object in a text box?
This doesn't make much sense ...
I may have 300 pages

 

Do you put an object in a text box?
This doesn't make much sense ...
I may have 300 pages

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 11, 2024 Jul 11, 2024

Copy link to clipboard

Copied

There's no other way to get images to automatically align towards/away from the spine.

There's a feature request open here

https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/20396779-ob...

 

And another here 

https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/33862330-ob...

 

 

Usually you would align text and images in a layout,  the image usually stays with the text. 

Are you saying you may have 300 pages of just images? 

No text? The images will be placed page by page and pages may move.

 

Hard to know what you want as you don't describe your scenarios very well. 

You presented 1 image on 1 page and asked for a solution.

 

The solution I provided solves your issue perfectly. 

 

If you have 300 pages of just images you don't need to use facing pages.

You could use single pages and then place your image on each page ensuring you have the image positioned as you like.

 

If your image needs to flow with text, I highly recommend anchoring your images in the text frames so the text moves the image moves. 

 

Hard to know what your workflow is. 

 

-----------
I've taken an idea here by @Peter Kahrel and adjusted the script

So it will align left page images to the right
and right page images to the left

But it does ALL images on ALL pages 

If you need something more specific you'll have to tell us

#target indesign

// Function to align images on even and odd pages
function alignImages() {
    var pages = app.activeDocument.pages.everyItem().getElements();

    for (var i = 0; i < pages.length; i++) {
        var pageItems = pages[i].pageItems.everyItem().getElements();

        // Check if there are any items on the page
        if (pageItems.length > 0) {
            if ((i + 1) % 2 === 0) {
                // Align page items to right for even pages
                app.activeDocument.align(pageItems, AlignOptions.RIGHT_EDGES, AlignDistributeBounds.PAGE_BOUNDS);
            } else {
                // Align page items to left for odd pages
                app.activeDocument.align(pageItems, AlignOptions.LEFT_EDGES, AlignDistributeBounds.PAGE_BOUNDS);
            }
        }
    }
}

// Check InDesign version for compatibility
if (parseFloat(app.version) < 6) {
    alignImages();
} else {
    app.doScript(alignImages, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Align Images on Even and Odd Pages");
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

This is not very scientific, not very advanced.
It affects all the objects, or all pages, including those unnecessary to adjust pages.
If you can perform the selected page or the selected object, it may be better

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

I told you this in my reply

 

You have to be more specific to your needs 

I've illustrated several options.

 

I'm not a mind reader


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

I have never thought that scripts can solve this problem.
I thought this was adobe's bug.

 

When the left page becomes the right page, the horizontal supporting page will cross the midline.
The script only allows these objects that exceed the midline 3mm (a range of 2.5 ~ 3.5mm).
Don't deal with the objects that have not crossed the middle line, these are given to the ID to do it yourself.
There is also a situation to note that all the objects on page 2 are groups together.

 

Maybe is Safe that only processe the selected page, For all pages, it may cause trouble.
.

 

8996.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

I'd anchor those in the Text as I showed you earlier 

once you anchor them into the text frame and set it up it will never go wrong again.

 

Script is ok - but means running it time and time again, and if you forget to run it, then you will make a mistake. 

 

I'll take a look and see what can be done on the script, but my personal workflow is to anchor those background colours into the text frames.

 

Practically this can be done - but if you use layers, like
Text Layer
Background Layer

That work flow is not possible.

I'll take another look at a script option for you - to pick up images/frames only close to the spine or have crossed the spine.

 

But I don't know if it will work for every scenario.
I'll give it a go.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

Anchor in the text?
This is not applicable or intuitive. This will affect design typesetting.
I think the feasible way is to move left or right for 3mm

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

Sure, if it's not possible for you to use this way we will take a look at at the script closer.
I can get the even pages to behave for only items that cross the spine.
But I cannot get the odd pages to work - I don't know why the script is not working for Even Pages - leave it with me and I'll try figure it out.

I'm almost there.
To clarify
You will need to select all on the page (CMD A) as I can't seem to target an active spread at the moment *possible to get script to select all on page and deselect so it looks seamless - I'll try*
Then run the script and items near the spine will align again

But I can't quite get it to work - I'm on it

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

I thought this was adobe's bug.

 

With a Facing Page document the page items are not going to move relative to the spine, so this is expected behaviour. If I make an object on a page to the left of the spine and set it to bleed, the Transform panel shows the X position as -.125" (my bleed is .125"):

 

Screen Shot 8.png

 

If I swap the pages the spine is now to the left of the page, and the Transform panel still shows the X position as -.125" relative to the left side trim of the page (the spine).

 

Screen Shot 9.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

LATEST

I didn’t understand it, and the "displacement" in the object style seemed to only move to the right.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines