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

Making a rectangular line

Explorer ,
Feb 16, 2022 Feb 16, 2022

Hello,

 

I have a problem like this: how to make a rectangular line to the existing line by script, but always on the right side to the direction of vector line ? Like this on the example ?

 

Thank you,

TOPICS
Draw and design , Scripting
529
Translate
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
Adobe
Community Expert ,
Feb 16, 2022 Feb 16, 2022

I would create a brush.

Translate
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 ,
Feb 16, 2022 Feb 16, 2022

Follow Monika's suggestion and create a brush.

It's easy to do.

Draw the two lines.

image.pngexpand image

Select them and drag them into the Brushes panel. Choose Art Brush.

image.pngexpand image

Paint with the Brush tool. Be aware that the direction that you drag the brush can flip the colors in the two lines, so always drag in the same direction or else use the Brushes panel to change the direction of a line you've drawn.

You can draw with any tool, not just the Brush tool, and then click on the brush you want to use in the Brushes panel.

image.pngexpand image

 

Translate
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 ,
Feb 17, 2022 Feb 17, 2022

Bonjour Belf,

J'ai travaillé sur ce script spécialement pour toi pour des prunes...

La version la plus simple du script:

La couleur par défaut (blue)

Le script vous montre le sens du tracé afin de choisir le coté gauche ou droit.

Pour coef, ce serait trop long à expliquer.

shape.pngexpand image

René

PS

La version plus complète.

Ici, si "Applies style" n'est pas coché, le type de trait peut être modifié.
La boîte de dialogue peut être permanente pour le tracé de plusieurs traits.

shape.pngexpand image

 

Translate
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 ,
Feb 17, 2022 Feb 17, 2022

Very cool, @renél80416020! Are you sharing your script?

- Mark

Translate
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 ,
Feb 17, 2022 Feb 17, 2022

Bonjour M1b,

Je regrette, j'ai réalisé ce script à la demande de Beff mais il n'a pas suivi, je voudrais récupérer une rémunération pour le temps passé.

Le script en lui même n'est pas très difficile à faire mais pour Beff, les tracés comportaient souvent de très petits segments de droite aux extrémités. Le script doit dans ces cas là modifier légèrement le tracé (la copie) avant de traiter le but du script (c’est la raison du paramètre coef).

La distance entre les points du segment extrémité doit être supérieure à dec.

decalage.pngexpand image

Cordialement René

Translate
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 ,
Feb 17, 2022 Feb 17, 2022
LATEST

I understand, René. There is often a great amount of work handling the edge-cases. All the best.

- Mark

Translate
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
Explorer ,
Feb 17, 2022 Feb 17, 2022

Bonjour Rene,

I want this script very much. Let's talk.

Translate
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 ,
Feb 17, 2022 Feb 17, 2022

Bonjour Beff, tu as mon adresse mail...

Cordialement René.

Translate
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