Iterate through a set of scatter graph objects (paths) and replace with Brush or Symbol instances.

I am trying to write write a script for Adobe Illustrator (AS or JS) which takes a set of objects and one by one replaces them with a brush style applied to a single point (one anchor path) or a symbol instance. Needs to be accurate as it's a graph with 300 'points'.
Looking for help with the following tasks:
Selecting all the paths belonging to a particular layer named "Replace". (Even if User input to a dialogue is required I only know how to use layer item numbers)
How to get the central co-ordinates of a small path that makes a shape like a triangle, square, circle or diamond. Some of the sets are compound paths but they are all symmetrical but for the triangle and I want the centre (X,Y) to assign as properties for the Brush anchor point or Symbol anchor point.
How to change layers from one layer (containing the set of paths) to a new drawing layer (where script will create the symbols/brush instances)
What I'm also wondering:
Would it be best to iterate the sample set and get cords and draw create the new symbol instance (possibly in a new layer and possibly delete the originating path) one by one as it were? Or be best to run through all the points and create a data record of all the co-ordinates then iterate a second time and create all the objects using the co-ordinates for symbol (X,Y) anchor properties
All I have to work from is the sample Adobe Script that creates a tree symbol the duplicates it around the edges of the page. Not quite there yet :-)
One of the reasons I'm doing this is that I can then stretch the graph to expose the data and not have to transform each to get the shapes back into shape but mainly because some of the paths are very jaggy and ugly out of the stats program (Excel?!).
Sample File: link
Before is like this: After is like this:

Jaggy like this

Similar Messages

  • How can i reset my app store setting? i have signed in and out with my own apple id but i used a different one at first and that one is not going away

    How can i reset my app store setting?
    I have signed in and out with my own apple id but i used a different one at first a few years ago and that one is not going away how do i change it to my own apple id?

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple ID to another. Apple does not merge Apple IDs. You will never be able to access your content bought with one Apple ID with a new Apple ID. Your only option is to delete the content and buy it again with the new Apple ID.

  • I was trying to set up my aunt's iphone 3gs with itunes but accidently backed up her phone with my phone information so now all her contacts, photos, and notes are all gone and replaced with my phone information. Is there anyway I can restore it back?

    I was trying to help my aunt set up her phone to itunes on my computer but when it asked me whether I wanted to set it as new device or use the backup from previous iphone data, I clicked restore from backup. I didn't realize that clicking that option would delete all of her information on the phone and relace it with mine. Her contacts, phones, notes, and all of her information are gone and replaced with mine just like my phone. Is there any way I can restore her phone because she really needs all those information orignally stored on her phone? She just got her phone not long ago and didn't backed up any of her information on her phone.

    If her data was not backed up or synced to something, it's gone. Sorry.

  • Moving selected objects up and down with keyboard is automaticly applying a colour fill.

    Hi,
    My InDesign is strangely applying a colour fill when i move an objects up or down using the directional arrow in my keyboard. If the colour pallet is open. Nudging an object up makes the pallet disappear on the first press. It then reappears on the second press while filling the object (text frame) with black. This is instensly frustrating. How can I stop this? Suggestions would be very appreciated.
    I have already reset the preferences.
    Cheers,

    Thanks for your reply.
    I fixed the problem by replacing the keyboard!
    Cheers,
    Nick Meadows
    0421 976 704
    www.nickmeadows.com
    Date: Fri, 30 Mar 2012 06:01:22 -0600
    From: [email protected]
    To: [email protected]
    Subject: Moving selected objects up and down with keyboard is automaticly applying a colour fill.
        Re: Moving selected objects up and down with keyboard is automaticly applying a colour fill.
        created by Peter Spier in InDesign - View the full discussion
    I have to ask if you reset the prefs uing one of the methods in this thread: Replace Your Preferences If not, there's a good chance you left out one of the files, so please try again using one of the listed methods. And please tell us the OS and your version of ID, including the patch level. Obviously this is not normal behavior. It sounds as if the Swatches panel has focus when you are pressing the arrow keys.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4302200#4302200
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4302200#4302200. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in InDesign by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I remove one failing hard drive from raid set and replace with new one

    Last Friday apparently one of my raid drives started failing.
    As I mentioned on this forum I started getting continous beeping.
    I was finally able to get the raid working at a degraded level.  I ordered a replacement hard drive which is arriving today.
    (In the meantime I made twice daily backups of my work.....)
    Below was the message I got from the browser based raid software:
    Blahblah 09    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 10    1000.2GB     Free                 SamSung HD103SJ
    Blahblah 11    1000.2GB   RaidSet Member SamSung HD103SJ
    Blahblah 12    1000.2GB   RaidSet Member SamSung HD103SJ
    (See this earlier thread if you wish!)
    http://forums.adobe.com/thread/727867?tstart=0
    At one point when I did the checked the browser interface I saw the message Failed and Degraded
    As I said, I was able to work over the weekend on the degraded system.
    This morning I got the beeping again and did the rescue and now I am running a "full raid" without the notice that one raid was "Free".
    In any case, the new hard drive is arriving today.
    What steps should I take to incorporate the new drive into the raid system.
    I have one OS drive
    and 4 tb raid drives.   One needs to be replaced with the new one that I am getting today.
    Thanks
    Rowby

    Harm,
    Regarding your comment:
    Re: How do I remove one failing hard drive from raid set and replace with new one
    Please tell me how to read the serial number from an individual drive rather easily, without un-installing them:
    If you select the proper drive to change out, you only need to remove one drive and look at its serial number...
    Step 1: Identify bad drive serial number using Areca's tools
    Step 2: Turn off the computer
    Step 3: Remove what you think is the bad drive based on following your numbered cable method, marked hot-swap bays, whatever
    Step 4: Verify that the serial number matches the "bad drive" serial number from step 1; if it does great, proceed; if it does not match, go back to step 3
    Step 5: Change out the CORRECT drive - that's the bottom line for this whole procedure
    Cheers,
    Jim

  • How can I iterate through the TextObjects of a Report object?

    Post Author: EMoscosoCam
    CA Forum: Other
    Hello(Using Crystal Reports XI Release 2 and Visual Basic 6)I have the name of a TextObject as a string. I would like to make something like this:Dim objReport As CRAXDRT.Report' once initialized from an RPT fileobjReport.TextObjects(strName).Supress = TrueOf course, there is not such a thing as a TextObjects collection. Is there a similar way to do what I want? Consider that the TextObject's name to be supressed is a string, and that I do not have it before-hand.Thanks a lot.

    Post Author: JonathanP
    CA Forum: Other
    Hi;
    You can loop through every section, then through every object, and check to see if it is a TextObject or not.
    ie:
    Dim I As IntegerDim X As IntegerFor I = 1 To Report.Sections.Count    For X = 1 To Report.Sections.Item(I).ReportObjects.Count        If Report.Sections(I).ReportObjects.Item(X).Kind = crTextObject Then            Report.Sections(I).ReportObjects.Item(X).TextColor = vbRed        End If    Next XNext I
    Regards,
    Jonathan

  • Web Object Widget and replacing Variables in the URL

    I am using the new Web Object Widget in Captivate 7 and need some help with setting up the URL for the widget correctly.  If I hard-code a static web page address, the widget works fine.  The problems comes up when I need to slightly change the tail-end of the web address depending on who is taking the course.
    I need to dynamically append some variable information onto the web address that we will be calling such as:
    http://www.someplace.com/customizeforstudent.htm?Student_Name=$$studentName$$&Student_ID=$$studentId$$
    Is there any way to dynamically load the variable information into this widget when the student takes the course?
    I know that I was able to use the samples on captivatedev.com to do this web page variable replacement when I used JavaScript on a button so I know it can be done that way. 
    (see: http://captivatedev.com/2013/08/08/javascript-solution-launch-a-url-with-captivate-variabl es-as-parameters/ )
    The down-side of the captivatedev.com example is that it forces the web page to show up "outside" the course (either in a new window or it takes over the browser window the course is playing in.  I want to use the web object widget so I can stay "within" the normal flow of the course we are developing.
    I have been able to get the student name and student id from our LMS using JavaScript (thanks again to http://captivatedev.com).
    Whatever process we come up with needs to work not only with Flash, but also HTML5.
    Thank you for your time.
    Randy

    Hi BubbaRB and welcome to the forums.  I love it when people have great questions regarding integration.. and this is an area that Adobe Captivate needs to be better at!  It would be nice if the stock web page widget in Cp 7 had the ability to substitute Cp user variables in the URL to make for dynamic rendering of the web page, but unfortunately that's a limitation of the stock widget.
    The web page widget on CaptivateDev.com is capable of variable substitution in the URL.  You just need to enclose the variable with double dollar signs $$cpQuizInfoStudentID$$.
    http://captivatedev.com/2012/08/07/adobe-captivate-6-x-widget-web-page-widget/
    This widget works for SWF and HTML5 output for Cp 6 and 7 and there's a free trial available.

  • Object loaded and saved with Read and Write Datalog are not compatible with packed library

    Hi all,
    I often use packed libraries to distribute my software.
    My problem is the following:
    I save a LabVIEW object of a class (MyClass) that is not included in a packed library using "Write datalog" (for example saved file is MyObject.dat).
    If I load MyObject.dat using "Read Datalog" but using "MyCLass" saved in packed library as "Record type", Read Datalog generates an error or anyway loaded data is inconsistent.
    In other word, if I save an object using as "Record Type" MyClass not included in a packed library and then I load saved file using the MyClass included in a packed library, file cannot be loaded.
    Can you help me?
    Thank all

    I think you are running into an issue created by namespacing.
    Point is, that lvlib as well as lvlibp create a level of namespacing:
    I would expect that level of namespaces being part of the datalog file.
    So essentially, if the class is not encapsulated in the very same namespace when reading in which it was written, it should fail with exactly the error you are describing.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Can I set up my own domain email and FTP with iCloud?

    Hi,
    I have my own domain name and I would like to have my own domain email using iCloud. Is that possible?
    Also, if I buy storage, can I set up a FTP so I can share files with working clients?
    I noticed Google Apps let you do these things but since I am a Mac guy I am wondering if iCloud would be easier to set up and manage it.
    Thanks for any feedback.

    You cannot use your own domain name with iCloud email - it handles only its own email. The only thing you can do is forward email from your domain's email account to iCloud, but then you can't answer using it as you can only send using iCloud's outgoing server with the iCloud address as the 'From' address.

  • Problem setting up shared printer between PC and Mac with 10.6

    I am trying to setup a shared printer between my Mac and PC. I have a HP K80 attached to my PC (which has Vista Home Premium). I have a Macbook pro with 10.6. I have shared the printer on the PC side. From the Mac I have added the printer via Windows Printer sharing, but for some reason I cannot print to the printer. Everytime I try to print, the job just pauses. Is there something I am doing wrong?

    Thanks I installed the gutenprint drivers and tried this, and now all working:
    http://guides.macrumors.com/Printingto_a_Shared_PCPrinter
    Printing to a Shared PC Printer
    This article describes how to print from Mac OS X to a shared printer connected to a Windows XP machine. It assumes the computers are already networked and that you can access the PC's files. These instructions are relevant for Mac OS X 10.2 upwards. The instructions may work with Vista. I don't have the means to try it.
    1. Find the IP address of your PC - go on Start > Run. Type in cmd and click run. Now type in ipconfig /all and hit enter. This should give you the machine's IP address.
    2. Share the printer. Open up Printers and find the one you want to share. Right-click and choose Share. Now click the 'Share this printer' radio button. Now choose a sharing name. Keep it simple - e.g. HP, Office, PC etc.
    3. Open a web browser on your Mac and type localhost:631 in the address bar
    4. You should now have the Common UNIX Printing System web interface up. Click the 'Add Printer' link.
    5. Type a name for the printer, making sure you don't include /, # or space characters. Click continue.
    6. Select Windows Printer via SAMBA from the Device list and click continue.
    7. For the URI, you need to include a username and password for an account on your PC. You then need to enter a URI in the following format: smb://username:password@ipaddress/printer. So for example smb://johndoe:[email protected]/HP
    8. Choose your printer's make, or if you have a PPD file for the printer, choose that. Click continue and choose your printer's model. Now click Add Printer.
    9. Done! You now have a list of options for changing the various properties of the printer.
    You don't need to be on the same workgroup or domain as your PC, just the same subnet. If both your Mac and PC are connected to the same router, either wired or wirelessly, then you should be on the same subnet.
    Thanks guys

  • How do I remove a favicon once set and replace with a new one?

    I want to replace an existing favicon with a new one and it won't allow me.  does anyone have a work around?

    File > Site Properties & select the layout tab. You can delete and upload a new favicon image at the bottom

  • Hello Creative Cloud Illustrator Community. Help Please! This is with regard to compound paths and transparencies. I have set some type on a circle and then created outlines. I then placed the outlined type on a black stroked ring which I then selected "o

    Hello Creative Cloud Illustrator Community:
    Help Please!
    This is with regard to creating a compound path:
    I have set some white type on a circle and then created outlines. I then placed the outlined type on a black stroked ring which I then selected "outlined stroke." I then put both "outlined" graphical elements on a separate solid bkg. (all 3 are on the same layer). Lastly, I then selected the top two elements and went to "make" a "compound path" (because I want the type to be the "holes" so I can see through to the background). However, the only effect I get is the white outlined type turning black (the same color as the black ring). What am i doing wrong? I can achieve the desired result with simple boxes but it won't work with a circular type path, a stroked ring and a solid bkg.
    Any help on this would be greatly appreciated!
    Thank You!

    Thanks for the response Jacob.
    Unfortunately, I tried your suggestion with no success. BTW, minus front is now Subtract. Apparently, by clicking option>subtract, it works in the same way as minus front. I tried this to no avail.
    Let me reiterate please.
    I have 3 graphic elements-all on the same layer:
    1. Background: Gold circle with a fill and no stroke.
    2. Middle: Black ring (Stroked) inside gold background circle.
    3. Top: White copy set on a circular type path and placed directly on top of middle black ring.
    Both the middle black ring and top type path HAVE BEEN CONVERTED TO OUTLINES.
    LASTLY, I select the Middle and Top, go to Compound Paths and choose "Make" and my white copy turns to black. Wrong!
    WHAT I WANT TO HAPPEN: I want the white copy to become HOLES, so the GOLD background shows through.
    Any solutions would be very much appreciated!

  • Iterate through AS3 object

    Can anybody help me iterate through an Actionscript object in C
    The equivalant AS3 code would be:
    For (var key:String in someObject) {
    Thanks

    Hi,
    see this: https://blogs.oracle.com/groundside/entry/refresh_problems_using_adaptive_bindings
    Also, please read this:
    SQL injection - Wikipedia, the free encyclopedia
    Because this is what you will have to implement protection for to defend your database from damage.
    Frank

  • Iterate through a treemap object

    how can 'iterate' through treemap object like you can with an ArrayLIst
    like:
    Iterator it = arraylist.iterator();

    Here is an example:
    TreeMap users = (TreeMap)session.getAttribute("users");
    Iterator i = users.entrySet().iterator();
    while (i.hasNext()) {
    Map.Entry e = (Map.Entry)i.next();
    if (e != null) {
    String key = (String)e.getKey();
    if (key != null && key.length() > 0) {
    String value = (String)e.getValue();
    } // end if key not null
    } // end if entry not null
    } // end while

  • Iterate through the child Objects in a components

    I have a custom component named myComp that has three TextInputs. And in the main application there is a button that adds this component dynamically to the VBox named myVBox, I would like to know how to iterate through the added components and show the text inside each of the TextInputs in an Alret box. I am pretty new to flex and I couldn't find any examples for it.
    Thanks,

    Sample code,
    Custom Component
    MyComp1.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml">
         <mx:TextInput id="txt1" width="100" />
         <mx:TextInput id="txt2" width="100" />
         <mx:TextInput id="txt3" width="100" />
    </mx:HBox>
    Application
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
         xmlns:mx="http://www.adobe.com/2006/mxml"
         layout="absolute"
         creationComplete="init()">
         <mx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import com.MyComp1;
                   private function addComponent(event: MouseEvent): void {
                        var myComp1: MyComp1 = new MyComp1();
                        myVBox.addChild(myComp1);
                   private function getText(event: MouseEvent): void {
                        var alertMsg: String = "";
                        for (var i: int = 0; i < myVBox.getChildren().length; i++) {
                             if (myVBox.getChildAt(i) is MyComp1) {
                                  var myComp: MyComp1 = myVBox.getChildAt(i) as MyComp1;
                                  alertMsg += myComp.txt1.text + "\t" +
                                                 myComp.txt2.text + "\t" +
                                                 myComp.txt3.text + " \n"
                        Alert.show(alertMsg);
              ]]>
         </mx:Script>
         <mx:VBox width="100%" height="100%">
              <mx:Button label="Add Comp" click="addComponent(event)" />
              <mx:Button label="Get Value" click="getText(event)" />
              <mx:VBox id="myVBox" width="100%" height="95%">
              </mx:VBox>
         </mx:VBox>
    </mx:Application>
    Hope this helps you

Maybe you are looking for

  • Closing Illustrator CS5 in Windows 7

    I recently installed my copy of Illustrator from the Web Premium Package on a new computer on which Windows 7 Pro 64bit is the OS.  I have no problen with the program until I exit it.  I close the proigram by going to File > Exit, as one would normal

  • Can I person use the same key for Apple software multiply times when he formats his computer?

    Lets say I bought Apple Final Cut Studio comes with the six discs and serial. Can I use that serial multiply times on my Apple Mac Pro 12 Core when I reformat It? Cause I always format my computers and I don't have to re buy the software to activate

  • Error while posting the Delivery

    Dear All,                At the time of PGI posting i am getting an error" Valuated stock Becomes negative  9.70 See long text.. but the stock is available in the unrestricted use more than the delivery quantity  in material master accounting view is

  • PCL Commands in XML Publisher

    Is it at all possible to send PCL commands to the printer in XML Publisher like it is in Oracle Reports. We need to be able to change the print tray in the XML Publisher template. In Brazil there is a legal requirement to print the Nota Fiscal with 2

  • How do I get my MX420 to print out a fax that is in its memory?

    How do I get my MX420 to print out a fax that is in its memory?