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

Custom Angled Triangles Question

Participant ,
Nov 20, 2013 Nov 20, 2013

I'm quite suprised that powerful Illustrator does not have any easy solution for creating custom angled triangles. Is there anybody help me to create a custom angle triangle script ?

Thank you,

Best Regards.

TOPICS
Scripting
5.1K
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

correct answers 2 Correct answers

Community Expert , Nov 21, 2013 Nov 21, 2013

Triangle Maker (Side, Angle, Angle)

// Triangle Maker (Side, Angle, Angle)

// Carlos Canto - 11/21/13;

// http://forums.adobe.com/thread/1339420?tstart=0

var idoc = app.activeDocument;

var s_ssa = Window.prompt ('Enter 1 Side in points, 2 Angles in degrees, (Side, Angle1, Angle2)', '120, 30, 57', 'Triangle Maker');

var a_ssa = s_ssa.split(','); // turn into an array

var side = parseFloat (a_ssa[0]);

var angle1 = parseFloat (a_ssa[1]);

var angle2 = parseFloat (a_ssa[2]);

if (angle1+angle2<180) {

    var pat

...
Translate
Enthusiast , Apr 02, 2025 Apr 02, 2025

Inspired by Carlos' ideas, I combined the two scripts into one — TriangleMaker. It now has a triangle settings dialog and previews.

TriangleMaker.jpgexpand image

Translate
Adobe
Community Expert ,
Apr 03, 2025 Apr 03, 2025

Like I mentioned, it is easy to do, but I wonder how you would create a triangle with the script that cannot be converted to a Live Shape.

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 Beginner ,
Apr 03, 2025 Apr 03, 2025
LATEST

Going to give this a try - thanks! 

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