Creating a new pattern swatch

I'm working on a script that should, among other things, create a new pattern swatch from a groupItem in the document.
I managed to create the new pattern swatch and name it using:
myNewPatternSwatch = app.activeDocument.patterns.add();
myNewPatternSwatch.name = <the_swatch_name>;
The only thing I can't figure out is how to get my groupItem into the new pattern swatch.
Any idea?
Your help will be appreciated.

I don't think you can… Sorry it's not very helpful… Patterns were the sure way to crash a script too although I have not tried in CS5…

Similar Messages

  • How can I create a new pattern?

    How can I create a new pattern?

    Sorry but is this doesn't appear to be a question about Apple Remote Desktop, Apple's software for managing networked Macs and the topic of this forum. I'd suggest you post in the forum for the version of Mac OS X you're running.
    Regards.

  • Move new pattern swatch

    Thanks for taking the time to read my question. I have a pattern swatch that I created in an .ai file. How can I move it so that I can use it in a new file?
    Thanks,
    Brad

    You can copy an object from one file to another and the swatch will come with it if the copied object uses that swatch. Or, in the new file, select Open Swatch Library > Other Library from the Swatches panel menu.
    In future, remember to tell us the version number(s) of program(s) you are asking about.

  • Adjusting a created pattern swatch

    Hello all,
    I've been searching around for a solution to my problem, it seems so basic that i'm suprised i can't find anything on the subject (maybe i use the wrong therm's).
    I have the following question, is it possible to adjust a pattern after it has been created ? So what i have done is made some artwork with vector graphics in a document, dragged it into the swatches pannel to create a pattern swatch of it. So far so good, i can apply the swatch to a rectangle f.e. and it will get filled with my artwork. But now i want to  be able to adjust the fill color of my pattern, i haven't been able to adjust the pattern swatch itself, the only thing i can do now is adjust the original artwork, create another swatch and apply it again to my rectangle.
    Is there a way that i can adjust the pattern instead of having to adjust my original artwork, and create another swatch of it ?
    Any help would be very cool
    Grts!, Samuel

    Samuel,
    You should be able to drag the pattern swatch into the Artboard, when nothing is selected ther, and modify (you may use the Direct Selection Tool to pick spefific parts), and drag it back to form a new pattern swatch or Alt/OptionDrag it back upon the original swatch to replace it.
    You may search for Modifying patterns in the Help file to see updates to the way described.

  • Creating a new swatch palette

    I can't find this in the Help or Manual, so can anyone help me with this please?
    In Photoshop CS5, how can I create a new custom swatch palette for a project I'm working on?  I'd like to create a blank palette that I can add my own named swatches to, and load as needed.
    Of course, then the question is:  what's the name of PS's default palette, so I can bring it back when I move on to other things?
    Thanks for your help.

    To make your own custom swatches palette, edit the default one you have. From the swatches flyout menu choose >> save swatches.
    Then use load swatches to load these into other projects.

  • How to  create new pattern for se38 with  200 line

    Hi ,
             i want  to create a new pattern as a template  for  report.
    when i checked  it allows me to write only 100  lines.  but in our prj we do use  200 lines of template  .how do i create it .

    Hi,
    Try this following code in the first line of the report in SE38
    Report sy-repid line-count 200.
    Regards,
    Mansi.

  • Illustrator - Pattern Swatch / Clipping mask issue

    I'm currently working in Illustrator CS6. I'm creating pattern swatches and have successfully created 20 - but 4 are giving me the following issue.
    When I drag the perfect swatch tile into swatches it appears as so instead of the perfect tile:
    "New pattern swatch 3" has a white space on the right. Which sometimes when I create the swatch takes up half of the 'swatch.'
    When I go to create a shape and apply the pattern, I am left with an empty box.
    When I double click to adjust the pattern I get this dialog box:
    When I go to adjust the bounding box, to see where my pattern is - this crazy mess happens:
    Further investigation and deleting items to see whats happening:
    Bits of my pattern appear, but not sure why the other bars are there.
    I'm having this issue with four very different patterns. But I have also succesfully created more complicated ones. Not sure why this is happening.
    Any help is greatly appreciated!

    Hey everyone,
    I am in the same version, same file. I have also tried starting from scratch in another file just to make sure. Same issue.
    I have templates of what i want my patterns to be, so I have tried to make the patterns both ways. Starting from my original art - expanding all shapes and making them so they will tile perfectly.
    1. with clipping mask. 2. released mask, and expanded shape. 3. perfect tile.
    from scratch, made to tile perfectly.
    Same issue for both:
    To make sure it wasn't only this one I tried a different pattern that was giving me the same error before hand.
    I tried with original art which didn't work, so I quickly recreated with squares. Same tile, one time it was empty producing same issue as above. And second time it did this:
    1. What tile is supposed to look like       2. Tile applied to shape - but the pattern swatch icon is empty?
    Maybe this is a program bug?

  • Pattern swatches CS6

    I'm new to Illustrator, so I might just be missing something obvious, but when I create a new pattern I only seem to be able to access the swatch within the file I created it in. I want to be able to access my created pattern swatches in any illustrator file I'm working in, is this possible?
    thanks!

    save them as a swatch library (under the palette menu), open your new swatch library, make it 'persistent' (tick item in its little menu).

  • Pattern Swatch Colours

    Hello
    Has anyone experienced the problem where the colour of an object created from a pattern swatch is different from the colours that were used to create the pattern swatch in the first place.
    This happens in CMYK and RGB documents, happens on several different computers (haven't had the chance to try a different printer) and happens no matter what colour management is used. We have tried all sorts of things to solve this, but each time the colour of anything using the pattern swatch is distincly different to the original colour used to make the pattern swatch.
    It says the colour has the same values and on the screen it looks the same, but when it is printed out the original and the pattern are definitely different.
    Any help and advice would be useful.
    Thanks

    I am having exactly the same problem.
    The colours of a pattern fill print very differently when it is expanded.
    All the colours in the pattern swatch are CMYK. They look identical on screen when the pattern fill is expanded.
    When printed, the mustard yellow, the appley-lime green, and the purpley-grey look completely different.
    I'm using CS6 Illustrator, FOGRA39. I'm wondering if this is a printer issue maybe?
    This is really frustrating and very worrying as I use pattern swatches a lot, and colours need to stay the same as they are approved.
    I've found this thread and another one from 2010 with what sounds like the same issue (Pattern Swatch Colours) but neither have been resolved.
    Please help if you have any ideas!

  • New Pattern Brush issue

    I'm trying to create a new pattern brush with just a line and arrowhead at the end.  I've tried following the instructions that the help screen provided and am getting stuck.  When I choose to create a new pattern brush the only options available for the different segments are "None", "Original" and "Fish Pattern".  How do I get the colored line and arrow available?  All I'm trying to do is create a simple line with an arrowhead that doesn't change shape when I extend the length of the line.  So far it's been a nightmare for me.  Any help will be greatly appreciated!

    I need to make two lines each a different length but with the same size arrowhead.
    Remember that you can apply multiple strokes to a path.
    Create a Graphic Style that involves two strokes: One stroke is an ArtBrush for the shank of the arrow; the other stroke is a PatternBrush containing the end(s) of the arrow. See item 6 below:
    JET

  • Create Pattern Swatch from Placed Image in Javascript

    I need to create a large number of pattern swatches from some .jpg file on disk. I've figured out how to script the insertion of the .jpgs into my AI document as placed images:
         // Embed the image into the document.
         file = new File("MyImage.jpg");
         var document = app.activeDocument;
         var newPlaced = document.layers["swatches"].groupItems.createFromFile(file);
         newPlaced.name = "MyImage_Placed";
    This works fine and the item shows up in the correct layer as an embedded image.
    Now I want to create a PatternSwatch (I think) from that Image.
    To create a new swatch the code starts out as:
         newSwatch = document.swatches.add();
         newSwatch.name = "MyImage_Swatch";
    but now I'm stuck! How do I associate the new PlacedItem with the swatch I just created? I can see the swatch in the palette so I'm partway there.

    When you say you would drag the image itself into the Swatch Palette and it would show the image itself? How would then use this swatch? Can you give an example of what you would apply a jpeg to as a swatch? The only palette that I can think of off the top of my head that you can drag a jpeg into and have the icon appear as the jpeg is the Symbols Palette. Is is possible that you were using the Symbols Palette in the past and not the Swatch Palette?

  • Can pattern swatch be created programmatically?

    Is it possible to created a pattern swatch programmatically?
    I could find information on creating custom color swatches using xml format but don't know about pattern swatches.
    Please help me!

    We're using in-memory queues provided with
    The following FAQ, written in 2004m, indicates that in-memory queues cannot be created dynamically. However, the FAQ is old. I'm wondering OC4J 10.1.3.1 or higher (i.e. 11g) now allows dynamic creation of in-memory queues.
    http://www.oracle.com/technology/tech/java/oc4j/1012/collateral/oc4j-faq-jms-1012.html
    I haven't found a newer FAQ that indicates whether in-memory queues can now be created dynamically using OC4J 10.1.3.1.

  • Saved pattern swatches are not found on New Windows

    Hi guys,
    I have created some pattern swatches in Illustrator CS6. But I cannot see the saved pattern swatches every time I open a new window, is this normal?
    Some help, please.
    Thank you.

    In order to have them in all your files you need to save them into a custom new document profile.
    Startup Profiles – A Great tool to Customize your New Documents « Adobe Illustrator blog

  • InDesign CC swatch palette issues when creating a new color or updating a current color...

    InDesign CC has crashed on me three times in a row and still won't fix it's problem...EVEN AFTER my computer and all the programs were shut down overnight! I was in the swatch palette to create a new swatch. I had a current one selected to base the new one off of. I went under "create new swatch," the palette came up, my mouse auto-scrolled when I clicked and it landed on "DIC color." Now, the DIC fields won't disappear even when I'm in CMYK or RGB. And when I try to change it to CMYK or RGB or the color values, it crashes InDesign. When I load it back up, the problem still exists. How do I reset it???

    THANK YOU! It worked exactly for what I needed it to fix. I have been out of the Graphic Design game for a couple years and forgot a lot of quick fixes. I really appreciate it!

  • Illustrator slowing down after creating a pattern swatch

    I am creating pattern swatches in Illustrator and every time I do my computer slows down to the speed of tar in winter. Anyone have a solution?
    Anyone else had this problem before?
    Please help me!!!
    Muffin )

    Flush Cache
    delete users\(username)\library\preferences\com.adobe.mediabrowser.plist
    Reset your preferences.
    Cmd-Opt-Ctrl-Shift when restarting AI on a Mac or Alt-Crtl-Shift on a PC to reset to the defaults.

Maybe you are looking for

  • How may iphones can you synch with 1 PC and Itunes

    I need to synch a number of iphones that are IOS 4xx  to iTunes to activate Phone unlocking. Is there a limit to the number of devices I can synch using 1 Laptop and a copy of Itunes? Can you use Itunes in a "Kiosk" Mode

  • How to include std text(Created in So10) in text node?

    Hello, How to include the Standard Text( created in So10 ) into Text Node. I had typed the Standard text name in the TEXT NAME : ZXXX       Text Object : TEXT        TEXT ID : ST       LAnguage : &CONTROL_PARAMETERS-LANGU& But, I am unable to look at

  • Cant activate imessage on ipod touch

    hey guys, im really facing a weird problem, whenever i try to sign in with my apple id to activate imessage it jjust passes the first screen without giving any errors and when i click verify it just takes me back to the sign in screen, so i cant get

  • Do I need to render before saving?

    Hi, Do I need to render the video before the final render in the output format I want? As I add titles and effects, I'm currently rendering the video - primarily because it's easier for me to work on the project if I can watch smoother video. At the

  • Deficit of BA Stck.in qual.insp 1 EA : 270/MAP101 AB01 0001 0000069184

    Hi , in transaction MB11 we are doing a movement 331 on warehouse 001 of 1 pieces material. we receave the following error : Deficit of BA Stck.in qual.insp 1 EA : 270/MAP101 AB01 0001 0000069184 We check also MMBE and the goods are avalaible. Wath C