Copy link to clipboard
Copied
Hello,
could someone tell me How to fill a block with a grid (0,5 cm x 0,5 cm for example with 0.2 mm thick lines) in indesign ?
Thank you from France... 😉
Fabrice
Thanks again... 😉
In fact, I had a bug on my file... (??)
I tested the script on a new file and ... ALLELUYA !! it works.
Thank you for your patience and your precious help.
Fab
Copy link to clipboard
Copied
Hi Fabgroove,
Are you are asking for a table with 5 cm square cells or are you asking for grid lines on the document where you can create your own text boxes or image blocks?
Please clarify so we can provide you with the best answer for your desired outcome.
-Dax
Copy link to clipboard
Copied
Hello and thank you for your answer.
In fact I wanted to know if we could create a form of filling as in illustrator ... We would fill a shape not with a color but a shape ... In this case here a square of 5mm x 5mm with a line of 0 , 2 mm thick ....
So I would like to fill a block so as to represent a grid ...
Is that clearer ?
Copy link to clipboard
Copied
Bonjour,
Tout d'abord, tu aurais plus de chances d'obtenir des réponses en français en postant sur le forum francophone : Forums en français
Pour répondre à ta question, on ne peut pas créer de motifs comme dans Illustrator, mais il suffit que tu crées une série de lignes de l'épaisseur souhaitée de manière à obtenir un carré un peu plus grand que les 5 mm dont tu as besoin, de grouper ces lignes. ensuite, tu copies ce groupe (ou tu coupes), tu sélectionnes le carré de 5 x 5 et tu « colles dedans ».
Copy link to clipboard
Copied
Bonjour,
oui, le forum français m'aurait été en tout cas plus facile... 😉
Merci pour le tips,... C'est ce que j'ai fait jusqu'alors...
Dommage que l'on ai pas cette fonction de remplissage de motif dans Indesign... Peut-être un jour...
Merci encore pour votre aide.
Fabrice
Copy link to clipboard
Copied
There is a thread from about a year ago where my old prepress manager was after the same thing, and Peter Kahrel wrote a script that did just that: Grap Paper Script
Copy link to clipboard
Copied
Merci beaucoup. Oui, c'est exactement ce que je cherche, sauf que je n'ai pas réussi à adapter le script à mes dimensions (quadrillage uniforme de 5 mm).
Tant pis, je ne maitrise pas la programmation.
Merci encore.
Thank you so much. Yes, that's exactly what I'm looking for, except that I have not been able to adapt the script to my dimensions (5mm uniform grid).
Too bad, I do not master the programming.
Thanks again.
Copy link to clipboard
Copied
Hi FABGROOVE ,
I guess you mean Peter Kahrel's script here:
The one that does 1 mm, 5 mm and 10 mm divisions?
Be brave, edit the code!
Comment out the following lines 48, 50, 51 and 53 like below.
Also edit the values of the remaining two for distinct millimeter values:
// horizontal (10, '0.75pt');
horizontal (5, '0.2mm'); // Changed to millimeter values.
// horizontal (1, '0.25pt');
// vertical (10, '0.75pt');
vertical (5,'0.2mm'); // Changed to millimeter values.
// vertical (1, '0.25pt');
The script will do 5 mm divisions, only with 0.2 mm strokes.
Save the code as text file without formatting with suffix *.jsx and a meaningful name like: FiveMillimeterGrid.jsx
Then install the script file so InDesign can see it in the User folder of the Scripts panel. How to install the script file:
Information, script locations, payments/donations | Peter Kahrel
Draw out a rectangle on the page or select a rectangle.
To run the script double-click the name of the script in the User folder of your Scripts panel.
Regards,
Uwe
Copy link to clipboard
Copied
Thank you very much for wanting to help me ...
I tried to change the code from what you sent me, but it does not work...
Often it makes me a block filled with a color with an outline of the same color.
I may be really bad ... sorry.
Online 48, I have nothing ...
Apparently, do not put "comma" but points for values ... I'm not sure.
Here is my original code in screen copy ...
Anyway, thank you for your help, I appreciate it enormously.
Fab
Copy link to clipboard
Copied
Hi Fab,
so you wanted to add a grid with a 1 mm distance and 14 pt strokes?
No? No… 🙂
horzontal( );
vertical( );
are function calls.
The first value inside the function call is for the distance.
The second value is for the stroke weight.
Both values in the call are separated with a comma.
For a 5 distance ( in millimeters ) and a 0.2mm stroke weight you will do:
horizontal( 5 , "0.2mm" );
vertical( 5 ,"0.2mm" );
and not:
horizontal( 1 , "14pt" );
vertical( 1 , "14pt" );
Do not do commas in fraction numbers. Just use a dot instead.
One half is 0.5 in JavaScript and not 0,5 .
Try again 🙂
Regards,
Uwe
Copy link to clipboard
Copied
Thanks again... 😉
In fact, I had a bug on my file... (??)
I tested the script on a new file and ... ALLELUYA !! it works.
Thank you for your patience and your precious help.
Fab
Copy link to clipboard
Copied
AH AH AH....
In fact, it was not a bug on my file ...
I had simply disabled the Graph Paper layer that is created by the script ... Stupid !!
Run Forest... run !!! 😉
Fab