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

How do I do this with illustrator?

New Here ,
Oct 31, 2024 Oct 31, 2024

Copy link to clipboard

Copied

Scherm­afbeelding 2024-10-31 om 17.38.20.png

TOPICS
Performance , Print and publish , Tools

Views

301

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

correct answers 2 Correct answers

Advocate , Nov 02, 2024 Nov 02, 2024

Bonjour @JoostintheHouse,

En faite, il s'agit d'une perspective cavalière légèrement penchée.

renl80416020_0-1730582310773.png

renl80416020_1-1730582365413.png

renl80416020_2-1730582523421.png

A partir de deux profils décalés, Il s'agit de créer les facettes latérales.

René, un script peut aider à faire cela...

Remarque: Les tracés doivent être du type PathItem

renl80416020_3-1730583075591.png

 

 

 

 

 

// Auteur Landry René
// Sat, 2 November 2024 21:26:16 GMT
// Sélectioonnez deux tracés ayant le même nombre de points
// INIT --------------------
var couleur = macmykColor(0,62.18,94.12,0);
var ep =1;
// ------------------------
  va
...

Votes

Translate

Translate
Community Expert , Nov 02, 2024 Nov 02, 2024

You have to make a duplicate of a path and move it down and to the right.

Then select the teo paths and then run the script.

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 31, 2024 Oct 31, 2024

Copy link to clipboard

Copied

You could check out this tutorial: https://youtu.be/SD1HARFrszs 

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 ,
Nov 02, 2024 Nov 02, 2024

Copy link to clipboard

Copied

Bonjour @JoostintheHouse,

En faite, il s'agit d'une perspective cavalière légèrement penchée.

renl80416020_0-1730582310773.png

renl80416020_1-1730582365413.png

renl80416020_2-1730582523421.png

A partir de deux profils décalés, Il s'agit de créer les facettes latérales.

René, un script peut aider à faire cela...

Remarque: Les tracés doivent être du type PathItem

renl80416020_3-1730583075591.png

 

 

 

 

 

// Auteur Landry René
// Sat, 2 November 2024 21:26:16 GMT
// Sélectioonnez deux tracés ayant le même nombre de points
// INIT --------------------
var couleur = macmykColor(0,62.18,94.12,0);
var ep =1;
// ------------------------
  var doc = activeDocument,
      sel = selection;   alert(sel);
  var nb0, nb1, par, pjxy0, pjxy1, pJxy0, pJxy1, ch;
          if (sel.length == 2) {
            nb0 = sel[0].pathPoints.length;
            nb1 = sel[1].pathPoints.length;
            alert(nb0+"    "+nb1)
            if (nb0 == nb1) {
              repereGroup = doc.groupItems.add();

               for (var j = 0; j < nb0-1; j++){
                  par = repereGroup.pathItems.add();
                  pjxy0 = sel[0].pathPoints[j].anchor;
                  pjxy1 = sel[1].pathPoints[j].anchor;
                  pJxy0 = sel[0].pathPoints[j+1].anchor;;
                  pJxy1 = sel[1].pathPoints[j+1].anchor;
                  ch = [pjxy0,pjxy1,pJxy1,pJxy0];
                  atttribut(par,ch);
               }
              par = repereGroup.pathItems.add();
              ch = [pJxy1,sel[1].pathPoints[0].anchor,sel[0].pathPoints[0].anchor,pJxy0];
              atttribut(par,ch);
            }
          }
// -------
function atttribut(obj,ch) {
    with(obj){
      setEntirePath(ch);
      filled = false;
      strokeColor = couleur;
      strokeWidth = ep;
      closed = true;
    }
}
// -------
function macmykColor(c,m,j,k)
{ //crée une nouvelle couleur CMJN
  var cmykColor = new CMYKColor();
    with (cmykColor) {
      cyan = c;
      magenta = m;
      yellow = j;
      black = k;
    }
  return cmykColor;
}
// -------

 

 

J'ai fait au plus simple.

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 ,
Nov 02, 2024 Nov 02, 2024

Copy link to clipboard

Copied

Thanks for your approach, René.

 

Is that script supposed to work in the latest versions of Illustrator?

 

I tried it in version 29.0.1 (probably not thoroughly enough), but it does not work at all.

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 ,
Nov 02, 2024 Nov 02, 2024

Copy link to clipboard

Copied

You have to make a duplicate of a path and move it down and to the right.

Then select the teo paths and then run the script.

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 ,
Nov 02, 2024 Nov 02, 2024

Copy link to clipboard

Copied

I think I did understand that already, Monika.

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 ,
Nov 02, 2024 Nov 02, 2024

Copy link to clipboard

Copied

If you use the script that way, it should work. It did for me.

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 ,
Nov 03, 2024 Nov 03, 2024

Copy link to clipboard

Copied

Merci @Monika Gause pour votre intervention, alors que j'étais dans les bras de Morphée...

 

@Kurt Gold  Les tracés doivent être du type PathItem.

J'avais fait au plus simple...

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 ,
Nov 03, 2024 Nov 03, 2024

Copy link to clipboard

Copied

LATEST

Thanks for the clarification, René. I thoughtlessly or hastily tried it with a selection that contained at least one single grouped PathItem. That obviously did not work.

 

Sorry for the confusion.

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