Skip to main content
dublove
Legend
Dec 1, 2026 5:35 PM UTC
Question

How to set the 'Grid Alignment' in the paragraph panel to the default 'None'?

This doesn't seem to be available in the English version.
When I had no choice, I tried to set the "grid alignment" in the paragraph panel to none, but couldn't find a way.
And if I select some text, how do I set their 'grid alignment'?

There is information here, but I don't know how to start.
https://www.indesignjs.de/indesignapi/indesign/GridAlignment.html

This doesn't seem right either:

var d = app.activeDocument;
//d.textPreferences.gridAlignment = GridAlignment.NONE
d.gridAlignment = GridAlignment.NONE;

 

    17 replies

    rob day
    Community Expert
    Community Expert
    Dec 1, 2026 7:20 PM UTC

    Look in the Paragraph object

     

    //text selection
    var s = app.activeDocument.selection[0]
    s.gridAlignment = GridAlignment.NONE
    $.writeln(s.paragraphs[0].gridAlignment)
    //returns NONE

     

    https://www.indesignjs.de/indesignapi/indesign/Paragraph.html

     

     

    Translate
    dublove
    dubloveAuthor
    Legend
    Dec 2, 2026 3:52 AM UTC

    HI ​@rob day 

    I need to set default values

    It's strange that when nothing is selected, or when a text box is selected, the menu operation supports setting the "grid alignment method".
    But using scripts won't work.

    I saw a “TextDefault”, what is it?

    Translate
    Inspiring
    Dec 2, 2026 11:22 AM UTC

    d.textDefaults.gridAlignment?

    Translate