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

Making a rectangular line

Explorer ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

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

Views

277

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
Adobe
Community Expert ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

I would create a brush.

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

Copy link to clipboard

Copied

Follow Monika's suggestion and create a brush.

It's easy to do.

Draw the two lines.

image.png

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

image.png

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

Copy link to clipboard

Copied

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.png

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

Copy link to clipboard

Copied

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

- Mark

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

Copy link to clipboard

Copied

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.png

Cordialement René

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

Copy link to clipboard

Copied

LATEST

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

- Mark

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

Copy link to clipboard

Copied

Bonjour Rene,

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

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

Copy link to clipboard

Copied

Bonjour Beff, tu as mon adresse mail...

Cordialement René.

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