Is there any way 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 comic book word bubbles.
Full version:
I'm trying to create a script that would create a word bubble based on a single line. The intended use should speed up the comic book lettering process. For this particular iteration, I'm trying to grab the pathPoints of one line, and use that to create the word bubble. However, I was really hoping to find a way to execute the code to "Make Compound Shape", so I can modify the balloon tail later, ie - non-destructive.
Here's what I have so far.  Thanks to everyone in advance!
D
if ( app.documents.length > 0 ) {     var doc = app.activeDocument;     var artLayer = doc.layers[0];     // CURRENT ITERATION: Find the one and only line, and extract it's begin 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     var ellipse = artLayer.pathItems.ellipse(pointBegin[1], pointBegin[0], 225.0, 225.0, false, true ); //([top] [,left] [,width] [,height] [,reversed] [,inscribed])     ellipse.stroked = true;         var data = {             "anchors": [                 [pointEnd[0]+2, pointEnd[1]+2],                 [pointBegin[0], pointBegin[1]],                 [pointEnd[0]-2, pointEnd[1]-2]             ]     }        // CREATE BALLOON TAIL     var linez = doc.pathItems.add();     linez.stroked = true;    // loop thru the data.anchors     for(var i in data.anchors){         var point = linez.pathPoints.add();        point.anchor = data.anchors[i];        // if it's not the first or the last...whatever, it's only 3 points, so just say 2        //if((i != data.anchors.length - 1)&& i!=0)        if(i == 2){             point.rightDirection = [pointBegin[0]+2, pointBegin[1]-2];             alert("rightDirection: " + point.rightDirection);             point.leftDirection = [pointBegin[0]+2, 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 HELP HERE!!! How do I call     //app.executeMenuCommand ("makeCompoundShape"); }

Great question, Monika.
I was looking to create one with where the balloon tail is angled at the top or bottom, depending on how the initial path is drawn.
In later iterations, the balloon size would be generated based on the text going into it. I have already written code that pulls the dialogue into Illustrator. The hope was I could pull it directly into the word bubble. Specifically, a rounded balloon tail, angled up or down, with a round word bubble that's been 'scrunched' for lack of a better term. It should look something like the following examples:

Similar Messages

  • Is it possible to change the colour of the Pages' skin, since it is grey, is there any way to change it and make it less tedious?

    Is it possible to change the colour of the Pages' skin, since it is grey, is there any way to change it and make it less tedious?

    fruhulda wrote:
    If you see any grey"background" if is on the left and that is the comment field.
    Hi fruhulda
    It's not the comment field which is a restrictive description.
    In fact it's the window's background.
    Yvan KOENIG (VALLAURIS, France) lundi 26 septembre 2011 12:08:45
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Having installed thunderbird, and subsequently disinstalled, Safari cannot find Mail.app anymore. This is rather annoying, since I cannot send links or web contents anymore from winthin Safari. Is there any way to reinstall Safari or make Mail visible?

    Having installed thunderbird, and subsequently disinstalled it, Safari cannot find Mail.app anymore.
    This is rather annoying, since I cannot send links or web contents anymore from winthin Safari.
    Is there any way to reinstall Safari or make Mail visible to it?
    E.O.

    Open Mail's Preferences, and change the default email reader back to Mail

  • Help on Help - is there any way to code "\n" on help information

    I'd like to be able to format the help information by adding newlines as well as forcing it to appear at a certain column
    I'd like to put a "\n" in my help; is there any way to do so?
    I also notice that when you have multiple dictionaries in 1 AFC, the help information is pre-determined based off of some criteria, and some dictionaries have their help aligned on 1 column, while another dictionary has their help aligned on another. This looks very unsightly to a user who doesn't 'see' the different dictionaries. How can we intentionally adjust these help margins?
    And is there a way to play with the margins for the prompts as well? some of my labels are very long and when they wrap, especially if I've used &nbsp, the first line is indented, but all subsequent lines go back to the same margin and it looks quite bad.

    I haven't found a way to make the help text from different dictionaries  line up.  One workaround is to set the field display width the same for  the fields in both dictionaries.  The help is lined up with the longest  field in each dictionary.  As for the new line in the help text, the  help text is HTML, so a break tag "
    " will create a new line.   You can put any valid HTML in the help text and it will be rendered.

  • Is there any way to connect via Bluetooth an apple device to a Samsung device????

    Can I connect an apple device via Bluetooth to an Samsung device (no jailbreak)???

    It may depend on exactly what you mean by "connect". See this support document iOS: Supported Bluetooth profiles. My understanding is that iOS doesn't support file or contact sharing over Bluetooth.
    tt2

  • Is there any way to make all the inputComponents readon-only in a page

    Hi All,
    Is there any way by which we can make all the inputComponents belong to a specific iterator as read-only..?
    Depending on some condition I want to make all the editable components which belong to a particular iterator, in page to read-only. I can put an expression in the read-only property of all the inputFields
    and make them read-only depending on a condition. But this is going to be difficult as we have a lot of pagefragments and Task-flows.
    So I think I can do it programmatically. I can add this method as an method binding in the container jsff. So that it will do the job for all the pages [pages may be inside a region also ].
    Can any one give a similar code segment to do this..?
    Is this approach going to impact performance badly..?
    Any comments...
    Thanks

    Hi Chacko
    Have a look at [Advanced View object Techniqies|http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#sthref3138] at the bottom Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
    <pre>
    Example 38-32 Preventing Insert, Update, or Delete Based on Custom Properties
    public class CustomViewRowImpl extends ViewRowImpl {
    public boolean isAttributeUpdateable(int index) {
    if (hasEntities() &&
    ((isNewOrInitialized() && !isInsertAllowed()) ||
    (isModifiedOrUnmodified() && !isUpdateAllowed()))) {
    return false;
    return super.isAttributeUpdateable(index);
    protected void setAttributeInternal(int index, Object val) {
    if (hasEntities()) {
    if (isNewOrInitialized() && !isInsertAllowed())
    throw new JboException("No inserts allowed in this view");
    else if (isModifiedOrUnmodified() && !isUpdateAllowed())
    throw new JboException("No updates allowed in this view");
    super.setAttributeInternal(index, val);
    public void remove() {
    if (!hasEntities() || isDeleteAllowed() || isNewOrInitialized())
    super.remove();
    else
    throw new JboException("Delete not allowed in this view");
    protected void create(AttributeList nvp) {
    if (isInsertAllowed()) {
    super.create(nvp);
    } else {
    throw new JboException("Insert not allowed in this view");
    // private helper methods omitted from this example
    </pre>
    Hope, this will help you :)
    Regards,
    JavaDeVeLoper

  • Is there any way by which I can not use Thunar Sys Tray icon?

    I am using stalonetray in OpenBox in Arch and when I copy-paste or cut-paste files in Thunar, a sys tray icon pops up. I don't want it to pop up.
    Is there any way by which I can make it to not pop up?

    Trilby wrote:
    I haven't used thunar for a while - but I don't remember it ever doing this before.  I just verified that it doesn't here (freshly installed thunar, and cut-pasted, copy-pasted, etc, and I didn't get a tray icon.
    Are you sure this isn't some other tool, like a clipboard manager?  Are their any tooltip popups or menus available on the tray icon and/or what happens when you click the icon?
    No. I use only Thunar. When I hover on the icon it says that "1 file operation running" when a copy-paste or cut-paste operation happens and when I left click and right click on it, it shows the copying window of thunar. The icon shows two small yellow folders placed diagonally. It's the same icon that appears on the file operation progress window of Thunar. I don't know whether Numix has anything to do with the specific icon though.
    Last edited by chosentorture (2015-01-11 00:13:32)

  • When my Gen 6 nano fades to black the unit shuts off completely and the music stops. is there any way to fix this?

    When my Gen 6 nano fades to black the unit shuts off completely and the music stops. Is there any way to fix this?

    Make sure the headphones are plugged ALL the way in, meaning the white part of the headset is flush with the body of the Nano and no silver from the headphone's plug can still be seen.
    You posted this in the iPod Touch forum, when you should have posted this in the iPod Nano forum.
    B-rock

  • Hi everyone! ive been stolen my ipad mini 15 days ago, i did set up pass code but ididnt turn on Find my Iphone, are there any ways to track my ipad mini locate?thanks 4 ur help?

    hi everyone! ive been stolen my ipad mini 15 days ago, i did set up pass code but ididnt turn on Find my Iphone, are there any ways to track my ipad mini locate?thanks 4 ur help?

    No.
    What To Do If Your iDevice or Computer Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Mac Computer
           Find My Mac can be used from Find My Phone at iCloud.com and via Find
           My Phone on your iDevice.
          The following is third-party anti-theft software:
               1.  STEM 2.1
               2.  MacPhoneHome 3.5
               3.  MacTrack 7.5.0
               4.  VUWER 1.7
               5.  Sneaky Bastar* 0.2.0
               6.  Undercover 5.1.1
               7.  LoJack for Laptops
               8. Hidden 2.0
               9. Prey 0.6.2

  • My laptop is broken and I don't want to buy a new one. Is there any way to recover my music from itunes via my ipad?

    My laptop is broken and I don't want to buy a new one. Is there any way to retrieve all of my music on itunes via my ipad and can I manage my itunes account only on my ipad?

    Ladymac33 wrote:
    My laptop is broken and I don't want to buy a new one.
    Okay, that's your choice.
    Ladymac33 wrote:
    Is there any way to retrieve all of my music on itunes via my ipad and can I manage my itunes account only on my ipad?
    Is the media already on the iPad?  If not, iTunes purchases can be redownloaded if they are still available in iTunes.  Non-iTunes purchases would need to be synced from iTunes on a computer.

  • Don't have money for new tech or headphones. I want to watch a movie from my laptop via AirPlay (watch a movie straight from Apple TV), but hear the sound on my headphones attached to my MB Air.  Is there any way to do this??

    I don't have money for new tech or headphones. I want to watch a movie from my laptop via AirPlay (watch a movie straight from Apple TV), but hear the sound on my headphones attached to my MB Air.
    Is there any way to do this??
    http://superuser.com/questions/853821/watch-a-movie-straight-from-apple-tv-but-h ear-the-sound-on-my-headphones-on-my

    Thanks for your help.  Since I'm uninterested in loading all my photos (the only option) into photostream, I won't be able to use the settings in ATV.  I guess I'm just stuck with using iPhoto on my MB Air.  Thanks again.
    paul

  • Is there any way to connect disabled iPad to network via external software?

    Hello,
    My iPad is disabled because of a Bluetooth mishap (my keyboard in my coat pocket tried to enter my password too many times). So I can't enter my password on the screen. Unfortunately I didn't back up the last few weeks of documents in any way, via either iCloud or syncing. And I just can't erase all the work I've done--it's irreplaceable to me.
    Is there any way to connect the iPad to a WiFi network through external software, maybe using the lightning connector?
    I ask because in iCloud I marked the iPad as Lost (in Find My iPhone), so I may get another chance at entering my password if the iPad can get online to receive the signal. But because it's disabled it won't connect to a network.
    Many thanks for any help!

    Not a big surprise unfortunately...  time to get an iPhone I guess!
    Thanks for the answer Sir!

  • I sent in my iPod nano to the replacement program about two weeks back. However, I checked the status of the repair and it still says it has not been received yet. Is there any way to follow up on where the nano could be? I sent it via FedEx.

    I sent in my iPod nano to the replacement program about two weeks back. However, I checked the status of the repair and it still says it has not been received yet. However, my boyfriend sent in his the same time I did and his repair status says repair being diagnosed. I still have the "receipt" of the package when they first sent it to me. I sent it via FedEx. Is there any way to follow up on where the nano could be or maybe find out if I can still get a replacement even though my nano might be lost in transit?

    I sent it via FedEx. 
    Call FedEx.  They will be able to track their own packages.  They will let you know if your iPod Nano was delivered and to who!

  • I'm using TestStand/Labview to do a string value test. Is there any way to use a variable in the edit string value test?? This forces you to hard code a string to test against.

    I'm using TestStand 2.0/Labview 6i to do a string value test. Is there any way to use a string variable in the edit string value test instead of an actual string?? This forces you to hard code a string to test against.

    Hi ART,
    You can also use the LimitLoader step to load your string into to step similar to the Numeric Step type.
    There should be an example of this in the Resource Library | TestStand
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Is There any way to improve the performance on this code

    Hi all can any one tell me how to improve the performance of this below code.
    Actually i need to calculate opening balance of gl account so instead of using bseg am using bsis
    So is there any way to improve this code performance.
    Any help would be appreciated.
    REPORT  ZTEMP5 NO STANDARD PAGE HEADING LINE-SIZE 190.
    data: begin of collect occurs 0,
           MONAT TYPE MONAT,
           HKONT TYPE HKONT,
           BELNR TYPE BELNR_D,
           BUDAT TYPE BUDAT,
           WRBTR TYPE WRBTR,
           SHKZG TYPE SHKZG,
           SGTXT TYPE SGTXT,
           AUFNR TYPE AUFNR_NEU,
           TOT   LIKE BSIS-WRBTR,
    end of collect.
    TYPES: BEGIN OF TY_BSIS,
           MONAT TYPE MONAT,
           HKONT TYPE HKONT,
           BELNR TYPE BELNR_D,
           BUDAT TYPE BUDAT,
           WRBTR TYPE WRBTR,
           SHKZG TYPE SHKZG,
           SGTXT TYPE SGTXT,
           AUFNR TYPE AUFNR_NEU,
    END OF TY_BSIS.
    DATA: IT_BSIS TYPE TABLE OF TY_BSIS,
          WA_BSIS TYPE TY_BSIS.
    DATA: TOT TYPE WRBTR,
          SUMA TYPE WRBTR,
          VALUE TYPE WRBTR,
          VALUE1 TYPE WRBTR.
    SELECTION-SCREEN: BEGIN OF BLOCK B1.
    PARAMETERS:  S_HKONT LIKE WA_BSIS-HKONT DEFAULT '0001460002' .
    SELECT-OPTIONS: S_BUDAT FOR WA_BSIS-BUDAT,
                    S_AUFNR FOR WA_BSIS-AUFNR DEFAULT '200020',
                    S_BELNR FOR WA_BSIS-BELNR.
    SELECTION-SCREEN: END OF BLOCK B1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'S_HKONT'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      SELECT MONAT
             HKONT
             BELNR
             BUDAT
             WRBTR
             SHKZG
             SGTXT
             AUFNR
             FROM BSIS
             INTO TABLE IT_BSIS
             WHERE HKONT EQ S_HKONT
             AND   BELNR IN S_BELNR
             AND   BUDAT IN S_BUDAT
             AND   AUFNR IN S_AUFNR.
    *  if sy-subrc <> 0.
    *    message 'No Data' type 'I'.
    *  endif.
      SELECT SUM( WRBTR )
             FROM BSIS
             INTO COLLECT-TOT
             WHERE HKONT EQ S_HKONT
             AND BUDAT < S_BUDAT-LOW
             AND AUFNR IN S_AUFNR.
    END-OF-SELECTION.
      CLEAR: S_BUDAT, S_AUFNR, S_BELNR, S_HKONT.
      LOOP AT IT_BSIS INTO WA_BSIS.
    IF wa_bsis-SHKZG = 'H'.
       wa_bsis-WRBTR = 0 - wa_bsis-WRBTR.
    ENDIF.
        collect-MONAT  = wa_bsis-monat.
        collect-HKONT  = wa_bsis-hkont.
        collect-BELNR  = wa_bsis-belnr.
        collect-BUDAT  = wa_bsis-budat.
        collect-WRBTR  = wa_bsis-wrbtr.
        collect-SHKZG  = wa_bsis-shkzg.
        collect-SGTXT  = wa_bsis-sgtxt.
        collect-AUFNR  = wa_bsis-aufnr.
        collect collect into  collect.
        CLEAR: COLLECT, WA_BSIS.
      ENDLOOP.
      LOOP AT COLLECT.
        AT end of HKONT.
          WRITE:/65 'OpeningBalance',
                 85  collect-tot.
          skip 1.
        ENDAT.
        WRITE:/06 COLLECT-BELNR,
               22 COLLECT-BUDAT,
               32 COLLECT-WRBTR,
               54 COLLECT-SGTXT.
        AT end of MONAT.
          SUM.
          WRITE:/ COLLECT-MONAT COLOR 1.
          WRITE:32 COLLECT-WRBTR COLOR 1.
          VALUE = COLLECT-WRBTR.
          SKIP 1.
        ENDAT.
        VALUE1 = COLLECT-TOT +  VALUE.
        AT end of MONAT.
          WRITE:85 VALUE1.
        ENDAT.
      endloop.
      CLEAR: COLLECT, SUMA, VALUE, VALUE1.
    TOP-OF-PAGE.
      WRITE:/06 'Doc No',
             22 'Post Date',
             39 'Amount',
             54 'Text'.
    Moderator message : See the Sticky threads (related for performance tuning) in this forum. Thread locked.
    Edited by: Vinod Kumar on Oct 13, 2011 11:12 AM

    Hi Ben,
    both BSIS selects would become faster if you can add Company Code BUKRS as 1st field of WHERE clause, because it's the 1st field of primary key and HKONT is the 2nd field of primary key.
    If you have no table index with HKONT as 1st field it's a full database access.
    If possible, try to add BUKRS as 1st field of WHERE clause, otherwise ask for an additional BSIS index at your basis team.
    Regards,
    Klaus

Maybe you are looking for

  • Reversal from Purchase Order to Payment

    Dear All, In our company the Purchase dept wrongly booked the PO for vendor Y, instead of booking for vendor X.  Depends on the PO remaining dept's passed the GRN, Invoice and payment for vendor Y.  we made the payment to vendor with the incorrect ve

  • Upload Form - Uploading to a specific directory.

    Ive set up an upload form to upload to a directory, but I need to be able to pick the directory that I want the file to go into. Is this even possible without having to buy some developer kit? Im using DW CS3 and ColdFusion.

  • PO Publish from Supplier to send the confirmation

    Hi, In SNC once PO is published by Supplier then agian Supplier cannot modify the PO.Here client wants SNC to allow Publishing of PO  as many number of times (i.e.allowing to resend the confirmation ). i.e.Assume supplier confimed PO with Delivery da

  • Another Gallery problem 6681 :(

    HI, This is one of the many problems that i have with my gallery.When i'm viewing pictures (Gallery>Images>Picture/image) one of three pictures goes blank.Just like that without any reason.and then i should go back to images root folder and then to o

  • Posts that scroll off the bottom

    Is it just me? When a post gets pushed down off the bottom of the lists, how do you access it again? I see no "Page 2" or "Next Page" option as ALL other forums have. I wanted to answer the very last post at the bottom of the list, and right before m