Is it possible to code via Extendscript "make compound shape?

Hey there Adobe Community.

TL; Dr - how do you get ExtendScript to call 'Make Compound Shape'. It's to make cartoon speech bubbles.

Full version:

I am trying to create a script that could create a word bubble based on a single line. The intended use is expected to accelerate the comic lettering process. For this particular iteration, I am train to retrieve the pathPoints of one line and that allows to create the speech bubble. However, I was really hoping to find a way to run the code to 'Make the shape Compound', so I can change the ball tail later, IE - non-destructive.

Here's what I have so far.  Thanks to all in advance!

D

If (app.documents.length > 0) {var doc = app.activeDocument;}     var artLayer = doc.layers [0];     The CURRENT ITERATION: Find the one and only line, extract he has start and end point.     var pointEnd = doc.pathItems [0] .pathPoints [1] .anchor;     $.writeln (pointEnd "pointEnd" + "\n");     var pointBegin = doc.pathItems [0] .pathPoints [0] .anchor;     $.writeln ("pointBegin =" + pointBegin + "\n");     CREATE ELLIPSE = artLayer.pathItems.ellipse var ellipse (pointBegin [1], pointBegin [0], 225.0, 225,0, false, true); ([top of page] [, left] [, width] [, height] [, reverse] [, part]) ellipse.stroked = true;         data var = {"anchors": [[pointEnd [0] + 2, + 2 pointEnd [1]], [pointBegin [0], pointBegin [1]], [pointEnd-2 [0], pointEnd [1] - 2]]} / / CREATE TAIL BALL arcade = var doc.pathItems.add ();     Linez.stroked = true;    loop through the data.anchors for (var i in data.anchors) {var point = linez.pathPoints.add ();}        point. Anchor = data.anchors [i];        If it is not the first or the last, either, it's only 3 points, if just say 2 //if ((i! = data.anchors.length-1) & & I! = 0) if(i == 2) {point.rightDirection = [pointBegin + 2 [0], pointBegin [1] - 2];}             Alert ("run:" + point.rightDirection);             point.leftDirection = [pointBegin + 2 [0], pointBegin [1] - 2]; Data.Anchors [i];             Alert ("leftDirection:" + point.leftDirection);         } else {point.rightDirection = data.anchors [i];}             point.leftDirection = data.anchors [i];         }} ellipse.selected = true;     Linez.Selected = true;     NEED SOME HELP HERE! How can I call //app.executeMenuCommand ("makeCompoundShape"); }

It is used to be made exclusively with vbscript, or applescript but starting with CS6 also do you this with javascript

app.doScript ("actionName", "actionSetFolderName");

Tags: Illustrator

Similar Questions

  • Is it Possible terminal command via ExtendScript toolkit?

    Hello world!

    I need to use the terminal command using javascript on extendscript.

    But, I will automate the script on macintosh and windows operating systems.

    Is it possible to use both in the same code?

    For example, I have will automate the pdffonts names in pdf files. so, I use the command on a mac '/ Users/user/Desktop/fontlist/pdf pdffonts' which gives the PDF font names. It works on manually. Is it possible to use the code for mac and windows on extendscript toolkit?  or separately give a code!

    Thank you

    Peter.

    I don't know how it works on Mac, but with Windows, you can have your orders in a batch file, and then run that ExtendScript. For example, here's a script that creates a batch file and then execute it:

    var bat = File ("~\\temp.bat");
    bat.open ("w");
    bat.writeln ('start Notepad.exe "C:\\DATA\\Scripts\\results.log"');
    bat.writeln ('quit');
    bat.close ();
    bat.execute (); // This is what runs the batch file (like a double-click on it in Windows Explorer).
    

    You can detect the operating system that is running the script using $.os. On my system

    alert ($.os);
    

    Displays "64-7-Windows 6.1 Service Pack 1 (32-bit emulation)". -Rick

  • I tried to upgrade my Mac Lightroom 2015 version 6.0 to version 6.3, but it is not possible. "Code of error: U44M2P28.

    I tried to upgrade my Mac Lightroom 2015 version 6.0 to version 6.3, but it is not possible. "Code of error: U44M2P28.

    Hi [email protected],

    Please uninstall Lightroom using Adobe cleaning tool: use of the Adobe Creative Cloud cleaning tool to solve installation problems

    Then download and install the updates from Lightroom 6 from the following link: keeping up-to-date for Lightroom

    Kind regards

    Tanuj

  • Is it possible to activate the option 'make flv' for limited administrators?

    As the title says: is there a way to allow an administrator limited to use the option "make FLV? I enabled "Allow Limited administrator access meetings and content of records", but I want to activate the possibility for a limited administrator make a FLV in a record copy in a folder of content, without activating any other administrator privileges.

    Thanks in advance for any advice.

    If you give someone rights to host to the room containing the record or manage the rights of a record in the library of content, then they should be able to make a recording FLV version. You can assign the small Admin group the appropriate permissions for meetings/files and they should be able to make the FLV files offline.

  • Make a shape of a design

    Hi all


    I've been a user of photoshop very relaxed for years and know the basics of the program. However, I am a bit puzzled with a current task. I recently had a friend make a logo design based on the shape of the single color for my group. I like what it came with, but I never had any kind of hi-res or vector files to him (just a jpg of the white logo on BG), and since then he has been very busy with work and other things. I was able to pull the white in the middle of the logo (image attached to PNG format for reference) to make the shape can be used for the smaller models (stickers, etc.), but I would like to be able to size upwards without loss of quality. I tried to select color and make a path among the selection, but that didn't look right no matter how, I tried. Is it possible that something similar that I could do the form in a vector? Thanks in advance for any help.logosurf.png

    If you use Illustrator, see form generator.

    Illustrator help | Create forms by using the form BuilderTool

    .. .and compound forms

    https://helpx.Adobe.com/Illustrator/using/combining-objects.html

    I'm not very good with Illustrator, but we have a forum where folk will be (although I don't know that there are some highly successful Illustrator users here).

    Illustrator

  • How to make this shape in illustrator?

    Hello

    Shape.pngI want to make this shape in adobe illustrator, but I don't want to draw a path, is there an option that makes the sides rounded? photo shape was designed in adobe, effects, I made six sides of the polygon and there is an option in AE called "Outer roundness" that makes the sides rounded, but I can't find any option like this in illustrator, someone has an idea?

    Thank you

    To get something closer to your example, I tried the combination (using Pathfinder > unit) a (copy of the) Hexagon with corners applied and the other with a small amount of bloat (effect > Distort & Transform > Pucker & bloat), to round off the coast.

  • Windows cannot install required files. File is possibly corrupted or missing. Make sure all files required for installation are available, and restart the installation. Error code 0 x 80070017

    Try to install vista to a friend after that one completely uninstalled.  I start to install and then stops and says file corrupt or missing.  Error code 0 x 80070017

    How to clean install Vista:

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • Is it possible to debug native code via DONKEY?

    Is it possible to debug or add breakpoints on the native C code that is called using a native extension in DONKEY?

    Yes, you are debugging your application on the device of FlashBuilder as usual, and you then use the option "attached to" If the NDK IDE to attach to the running instance. You can debug natvie and FB at the same time. Very shiny!

  • Is it possible to access presets via extendscript objects?

    Using Extendscript, I am able to access video/audio effects and transitions and apply them to specified clips. However, I can't do the same with Lumetri Presets.

    Is there is any path and do the clips selected 'Presets Lumetri' and 'Presets '? Help or advice will be greatly appreciated.

    No, there are no supported APIs to enable this behavior. I added your vote to the existing demand.

  • Is it possible that Windows Live Movie Maker can be used by the XP users?

    I just pulled a cruise (Holland America) which offers courses of LARGE digital workshop. I've learned about Windows Live and RL photo gallery - what is optimal. But - MOST important - I've learned about Live Movie Maker - an improvement on the old version of WMM. WMM is not .mov files that produce new cameras. Only the .avi. I went to download the pgm MM Live and he says that Win 7 is required! There are some XPs MILLION out there and it is a pgm this cool. Any possibility there's far more that if I can use the .mov files without having to convert all of them to .avi. Or is it possible that Microsoft will be kind to us and give us live MM under Windows Essentials for XP?

    Windows Live Essentials for XP contains no Windows Live Movie Maker, as you know. We are not aware of what the developers have in mind. However, because Windows XP is a ten year old operating system, I doubt there is much chance it will be retro-compatible with Windows XP.

    There is a good reason to upgrade to Windows 7 to take advantage of all the new and improved and product changes.

    Sincerely,

  • Is it possible to download Windows DVD maker?

    Re-download DVD Maker?

    I think that my DVD creation software is corrupted.  Is is possible to remove my existing program and re-download a new copy?  If so, how?  Thank you!!

    In a command prompt (type command in the start search box, then right-click and)
    Choose run as administrator) type
     
    sfc/scannow
     
    who will check the files for corruption.
    --
    ..
    --
    "spruce75" wrote in message news: 5775ea76-9e87-4a22-917f-5f19573bed19...
    > Me my DVD creation software is corrupted. Is is possible to remove my
    > existing program and redownload a new copy? If so, how?
    > Thank you!
     
     
  • Possible with Windows Live Movie Maker 7 chapters?

    I am doing my first project. I would like to have a main menu with chapters like on a real DVD. Is this possible with a true WLMM? If so, how? Thank you!

    Hello

    You can follow the links below and check if they help you accomplish what you want.

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Movie-Maker

    http://Windows.Microsoft.com/en-us/Windows7/use-custom-settings-to-save-a-movie-in-Windows-Live-Movie-Maker

    http://www.Microsoft.com/education/teachers/guides/Windows_Movie_Maker.aspx

    If the above given links don't work then you can publish your application in the Windows Live Solution Center.

    http://www.windowslivehelp.com/product.aspx?ProductID=5

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Select code from CBWMS makes the text jump around

    Just upgraded to Dreamweaver CC and found an annoying "feature" that makes the Skączcie code when the selection of text in the long code wrapped.

    For example if there is a long single line javascript code and you select somewhere in the Middle, he instantly pushes this line to the following line similar to a line break (even if it isn't actually inserts a break of)

    This is a feature that can be disabled? Or I wonder if it is a question with my Mavericks install where reinstall it will help.

    Thanks in advance to all.

    I think that this problem is also solved with Nancy O solution:

    "Try to disable the speech recognition & dictation in the settings of your system."

    http://forums.Adobe.com/message/6147142#6147142

    Hope it's OK for this mark as 'correct' show that it has been resolved for someone else, that this could affect.

  • POSSIBLE DUAL MONITOR VIA RDP?

    Hello we intend to virutalize some customers xp on esx 3.5 upd. 3. now, here's my question

    We would like to connect thinclients via the rdp Protocol to this customers xp - is a potential double monitoring?

    We would like to extend the application they are run on the virual machine xp on both monitors of physikals that they are directly connected to computer thinclient.

    Thank you very much. neoxx

    The RDP protocol allows spanning across monitors.  In my view, however, need you two monitors of the same size and resolution.  To do this in XP/VIsta (in this case the terminal), you can create a RDP shortcut on the desktop and add/span to the target.  the target should look like this "%systemroot%\system32\mstsc.exe/span" I'm not positive, how this is done from a wyse terminal, but I know that this is possible.

    -nathan

  • the external script file... How to generate a code via a value on the table

    Hello

    I have a customer interactive report (0ver 200) with zoom before capacity... when the user clicks an individual customer, a new report (client profile) opens with the details on the customer's product, etc... I try to add the latest news through Google RSS reader in customer profile report... Following the code works very well for company ABC (symbal ABC Stock. (TO)...

    < html >
    < body >

    < script src = "http://www.gmodules.com/ig/ifr?url=http :// www.ajaxgaier.com/iGoogle/rss-reader%2B.xml & amp;" up_title = News & amp;up_feed=http%3A%2F%2Ffinance.yahoo.com%2Frss%2Fheadline%3Fs%3DABC.TO & amp; up_contentnr = 10 & amp; up_fontsize = 12 & amp; up_titlelink = & amp; up_bullet = 1 & amp; up_reload_feed = 1 & amp; up_reload_fqcy = 0 & amp; synd. = open the & amp; w = 394 & amp; h = 255 & amp; title = News & amp; border = % 23ffffff % 7C3px % 2C1px + solid + % 23999999 & amp; output = js "> < / script >.

    < / body >
    < / html >


    Is there a way to make the above dynamic code, which means that when I click on the ABC Company (from my customer interactive report), then the next page should have news and product of the client (as the code shown above) associated with the ABC company...

    But when I click on company BCE (from my customer interactive report) then the next page should have news and products clients related to business ECB...

    Thanks in advance...

    Talbot wrote:
    the foregoing suppose to work...?

    try changing:

    TO:

    Van
    Trent

Maybe you are looking for

  • serious bug in master password

    If I click on Cancel twice instead of my master password, I can use Thunderbird in any case.This is a serious bug that I believe.I use the 31.4.0, win7 sp1 version.Thank you.

  • HARD drive to upgrade SSD in Satellite L20-183

    Hello I have the Toshiba Satellite L20-183 PSL2XE - 011018G (3), with 2 GB of ram, and I'm interested to upgrade the HARD drive to * Transcend 32 GB 2.5 "IDE PATA internal SSD Solid State Disk MLC Flash model TS32GPSD330 * (http://www.newegg.com/Prod

  • After download, ' an error occurred during the preparation of the installation.

    Ok.  I'm not very good with computers, so I'm going to do my best here: I downloaded El Capitan last night, did the installation and rebooted.  The questions endless gray on the screen.  Relaunched in LANDAU several times; Install still 'stuck' 31 mi

  • How install LR3 from a CD when my new Mac is not a CD player?

    LR3 bought years ago, and it's on a CD.  I then updated in November 2015 at LR6 via download. Two of them were for a Windows computer.I have now bought a Macbook Pro and want to install LR on it.How do we install LR3 for the Macbook Pro, when the sof

  • ESXi taken and casings of VM

    Hi Experts,Just confused on the cpu sockets that we attribute to the virtual machine. It is recommended to assign multiple sockets to a virtual machine that is available on the ESXi host. For example, if the ESXI host has on 4 plugs; It will be advis