Apply Random Color to Group of Objects

Hello all, thanks for taking the time to help.
Here's my issue... lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc... Is there anyway to select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly?
Let me know if this is confusing... hopefully there is some option to do this. I don't want to apply them manually...
Thanks!

Rats. The [none] (no-color) swatch is stubborn.
I was able to remove the [registration] swatch from the mix by making sure it's at the head of the palette and adding a (If swatchIndex>1) test to the script. But I can't get rid of the [none] swatch no matter what I do. Illustrator must treat it as a special case so that it cannot be referred to by index number.
Help, James!
One other thing: Not for nothing, but...
lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc.
...is not exactly the same thing as...
select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly
What you want is a uniform distribution of those six colors but in no discernible pattern. That's not true random assignment, and this script won't get you there even if got the unwanted swatches out of the mix.
No obvious solution here.

Similar Messages

  • Applied 55% transparency to group of objects, but a placed .eps file is darker than things created natively in InDesign

    hey guys,
    I'm working on a math book and for some reason, my placed .eps files (which are used for equations) are appearing darker than the other items when set to 55% opacity. I've ensured that everything is set to 100% opacity before grouping, then grouped and set to 55%. My only thought is maybe the eps is RGB when the other things are CMYK...and if this is the case, I'm not sure how to test / fix it. Other than that idea, I have no clue as to where to begin in addressing this issue.
    The cheese is real with this example.
    You can see here that I'm applying the 55% opacity to the entire group. I've also ungrouped all of the objects, made sure they're at 100% opacity, then grouped and set to 55%.
    You can see here that the text is 100% black.
    Thanks!

    Sorry, I Googled around a bit, but not quite sure what you mean by distilling the PDF. I've exported the PDF as a "High Quality PDF", and the issue still persists there. Should I alter the PDF export options some?

  • Apply Fill Color to Group Item with Applescript

    Is it possible to set the fill color of a group item using applescript and CS3? The group contains paths and text that have the same fill color with no strokes.I am able to select the group and delete it or move it (with applescript) but have had no success in setting the fill color.
    Thank you in advance for help on this question. And thanks for everything I have picked up from browsing.

    Now that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
    This works:
    tell application "Adobe Illustrator"
    set openDoc to document 1
    set ftClr1 to (first group item whose note is "Front3") of openDoc
    set ftClr1Paths to path items of ftClr1
    repeat with thisPath in ftClr1Paths
    set fill color of thisPath to {red:255}
    end repeat
    set textFrames to text frames of ftClr1
    repeat with thistext in textFrames
    set fill color of every line of thistext to {red:255}
    end repeat
    end tell
    Need help to set the fill color to a Spot Color that already exists in Swatches.
    Thanks
    Nick

  • How to apply Software Restriction policy for specific user in local group policy object ?

    I am working on implementing user based software restriction policy programmatically for local group policy object.
    If i create a policy through Domain Controller,i do have option for software restriction policy in user configuration but in local group policy editor i don't have option for that.
    When i look for the changes made by policy applied from Domain Controller in registry, they modifies registry values for specific users on path HKEY_USERS\(SID of User)\Softwares\Policies\Microsoft\Windows\Safer\Codeidentifiers
    They also have registry.pol stored in SYSvol folder in Domain Controller. When i make the same changes in registry to block any other application, application is getting blocked.
    I achieved what i wanted but is it right to modify registry values ?  
    PS:- I am using Igrouppolicyobject API

    I achieved what I wanted but is it right to modify registry values ?
    You also can modify a registry programmatically based policy. Check this:
    http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry-based-policy.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppres

    I am looking at an issue with users not getting specific group policies. 
    After searching a number of client computers I found that the following error
    The user '*' preference item in the 'User - 6th Form Students Policy {E03166E7-A848-48B5-AA93-97B848AA9C13}' Group Policy object did not apply because it failed with error code '0x80070003 The system cannot find the path specified.' This error was suppressed.
    I can find the folder in the Sysvol folder on all of the domain controllers. 
    The issue with end users seems to be that the proxy settings for internet explorer is not being applied. 
    Potential problems?
    one folder in sysvol entry is empty 
    \\<server>\SYSVOL\<domain.name>\Policies\{E03166E7-A848-48B5-AA93-97B848AA9C13}\User\microsoft\IEAK\LOCK
    or is this our issue
    The old method of configuring proxy settings  to Internet Explorer 9 has changed?
    https://support2.microsoft.com/kb/2530309?wa=wsignin1.0 
    http://thommck.wordpress.com/2013/11/08/the-new-way-to-configure-internet-explorer-proxy-settings-with-group-policy/

    Hi all 
    In administering this policy I am a little confused. 
    We have a policy that distributes proxy settings in the internet explorer maintenance settings section - however when opening this policy up in GPO editor the internet explorer maintenance section is not present.
    I plan to apply the settings via User/preferences/control panel settings/ internet settings (or registry settings from article) however I am unable to edit the settings for internet explorer maintenance and these will persist. Ideas????

  • Problem with applying fills & strokes to grouped objects in Illustrator CC

    I have this problem that I deal with everyday & I can't figure out how to fix it.
    I am always struggling with applying fills & strokes (or changing fills & strokes).
    It seems like I always have to ungroup the objects first (even if I never grouped them in the first place), or I have to clear appearance first. Sometimes I have to ungroup several times, even if it is only one object by itself, not grouped with anything else.
    I think It may have something to do with the pathfinder... like the pathfinder is creating groups when I use the divide filter.
    Even when I use the direct selection tool, to select just the object I want, it wont let me apply the fill or stroke that I want.
    Also, it seems like it has several layers of appearance... when I ungroup the object, it changes appearance (the fill or stroke changes).
    Also, if I eyedrop the object to apply its appearance to another object, the "hidden" appearance is the one that gets appled to the new object.
    The closest discussion I could find was about compound paths, but I think this is a different issue, because when I go to compound paths in the menu, it doesn't give me the option to release anythig.
    I have this problem ALL DAY LONG, every day. Please help!!

    Thanks for your reply!
    I see what you are saying, and I think is some cases that could be a helpful trick - but the problem I'm having is slighlty different.
    The object that I want to change doesn't show the actual appearance... it only shows its underlying appearance after ungrouping several times, and then when it is completely ungrouped, it visibly changes to another fill & stroke. This happens even when the object is not grouped with anything... it is just grouped to itself i guess & I am not grouping these items, they just become grouped somehow - I think because of the pathfinder. I often have to ungroup 3-5 times, which is a hassle in iteself... but sometimes I actually need to grouping to keep items togther so I can manage all the ojects & move them around as needed.
    So... the method you are suggesting could possibly solve the issue, except I don't know what the fill & stroke is until I ungroup everything, so I can't create the swatch off to the side to match it. The other thing is, it seems like I would be creating a lot of swatches, since I use lots of different fills & it seems like it would be a lot of extra work.
    Here is an example of 2 objects before using the pathfinder. Please note how the object selected & the fill & stroke boxes all jive:
    Now here are two images after using the pathfinder tool (I added another object to get the problme to happen). Please note how the fill & stroke boxes do not match the objects selected:
    This is what happens when I try to change the fill to green (the fill does not apply):
    I thought it had something to do with compound paths, but as you can see below, the menu doesn't give me an option to release compound paths:
    The final image is what happens after I ungroup the objects:
    I don't understand:
    1) why pathfinder is grouping these objects
    2) why the strokes & fills change & why the fill & stroke boxes don't match the actual fill & stroke.
    3) why I can't change the fill or stroke without ungrouping (even when using the direct selection tool).
    4) why the fill & stroke change again after ungrouping

  • How to set background color of a visio object depending on it's text

    Hello everyone,
    I am an application developer and use visio to outline process flows.
    For one visio file that I have inherited, process objects are used to represent different process group on our system. Each type of process group contain common words in the text, e.g. 'data source', 'Email', 'Data Model'.
    There are 7 visio sheets each containing several charts.
    I would like to apply a common backgroud color to specific group of objects for e.g. blue background to all visio process objects that contain the text '(Data Model)'.
    I have googled and searched the MSDN forum but without any solution so far.
    Any advice or suggestion from anyone would be most welcomed and much appreciated.
    Thank you for reading and replying.
    kind rgds

    Please try out the below macro. Replace the color with whatever value you want.
    This will iterate through all shapes in all pages in all the documents and set the foreground color of the shape with a particular color depending on the shape text.
    Sub Macro1()
    Dim document As Integer
    Dim pagecount As Integer
    Dim shapecount As Integer
    For document = 1 To Application.Documents.Count
    For pagecount = 1 To Documents(document).Pages.Count
    For shapecount = 1 To Documents(document).Pages(pagecount).Shapes.Count
    If Documents(document).Pages(pagecount).Shapes(shapecount).Text = "data source" Then
    Documents(document).Pages(pagecount).Shapes(shapecount).CellsSRC(visSectionObject, visRowFill, visFillForegnd).FormulaU = 4
    ElseIf Documents(document).Pages(pagecount).Shapes(shapecount).Text = "Email" Then
    Documents(document).Pages(pagecount).Shapes(shapecount).CellsSRC(visSectionObject, visRowFill, visFillForegnd).FormulaU = 3
    ElseIf Documents(document).Pages(pagecount).Shapes(shapecount).Text = "Data Model" Then
    Documents(document).Pages(pagecount).Shapes(shapecount).CellsSRC(visSectionObject, visRowFill, visFillForegnd).FormulaU = 2
    End If
    Next shapecount
    Next pagecount
    Next document
    End Sub
    Let me know if you face any issues

  • Applying a texture to an OrientedShape3D object?

    greetings,
    i am having problems applying a texture to an OrientedShape3D object. i am following the "recipe" and related examples in the j3d tutorial's chapter 7 on textures. my image is a 32x32 gif file that i want to texture onto an OrientedShape3D object that has 4 vertices:
    the "face" vertices for the OrientedShape3D object are:
    0.0f, 2.0f, 0.0f,
    0.0f, 0.0f, 0.0f,
    2.0f, 0.0f, 0.0f,
    2.0f, 2.0f, 0.0f
    the color for the "face" is red:
    1.0f, 0.0f, 0.0f,
    1.0f, 0.0f, 0.0f,
    1.0f, 0.0f, 0.0f,
    1.0f, 0.0f, 0.0f,
    the texture vertices are:
    0.0f, 1,0f,
    0.0f, 0.0f,
    1.0f, 0.0f,
    1.0f, 1.0f
    as i wrote my code follows the tutorial's recipe whereby i a create an OrientedShape3D, then the textured appearance, and then i apply that appearance to the OrientedShape3D object.
    when the shape is rendered i do not see the image. rather i see a color from the image but that color occupies the entire face. if i use the texture loader object to, say, scale the image then i see a rendering behavior that looks like the image is folded on itself similar to the problems the tutorial says will happen if the texture vertices are not correct.
    when i do not apply my textured appearance to the OrientedShape3D object the behavior is ok - the face of the shape is always oriented towards my eye, and remains red, as i rotate, scale, and translate the object..
    i'd really appreciate any help. thanks in advance!
    pgm...

    When you import a 3D object into Photoshop it has to be UV mapped meaning that there will be a JPEG referenced by the material file associated with the object. When you load the object, it is the JPEG which is actually a Texture layer. You can't access it with the 3D tools active but either before or after you apply the 3D adjustments you can double click on the specific texture layer which opens in a new window and then use any of the normal 2D painting/editing tools. When you save the changes to that file it will be applied to the model.
    Try opening a couple of the sample 3D models in the Goodies folder on the Photoshop install disk. Most do have JPEGs associated with them which means you will have an editable texture layer but one (at least) called Simple Robot I think has only a .mtl file which means you will see color and placement, perhaps a bump map, but there is no UV texture, just a procedural made inside the 3D app. Those aren't editable in Photoshop nor can you add a texture layer. A 3D model either has one which you can edit or it doesn't.

  • Color picker from swatches choosing random color (Illustrator CC 2014)...

    When I select a color from swatches, and use the color picker (i.e. double click fill color) for shades and whatnot, it initially shows a random color... anyone else getting this? Every single time you open the color picker it never stays at the current fill color... ugh. Now, if I pick a color from a Kuler swatch, it shows properly.

    I figured out a quick workaround to this that at least lets you continue on. When you select the object the color of which you want to know, the color picker dialog window opens. You'll see the false swatch color on the top (in this case the green) and the true color on the bottom (in this case the orange). Double click the orange color field. This will make both orange, and display the true values.
    Note that, unless you change some value, when you repeat this, it will still display the green.

  • Alternate color in group footer

    Hi
    i am using following formula to apply alternate color in detail section, section expert, color, background color-
    if Remainder(recordnumber,2)=0 then RGB(223,223,223) else RGB(255,252,255)
    but if i apply same formula to group footer section it's not working.
    how to apply alternate color in records of group footer section?
    Please give me solution.
    Thank you

    Hi,
    Add
    while printing records;
    Above the  formula and try to run it.
    Regards,
    Neo.

  • Giving particles random colors AND fade out.

    Hi all, I want to make my particles start with random colors AND fade out but it seems to be impossible to do... even though I would think its a pretty fundamental feature.
    The only way it seems to make them start with random colors is Particle Cell: Color Mode: Pick from range - and setup the gradient with the allowed colors - but then I cant fade them out. The only way it seems to make them fade out is to set Color Mode: Over Life.
    It seems quite logical that there would be a Particle Behaviour 'Fade Over Life' (similar to Scale Over Life) which you apply to the cell. Is this possible to implement some how? ideally I would also like each particle to fade in briefly as well as fading out - but i guess thats asking too much!!

    If you use the Color Mode of Pick from Range, the opacity gradient will still work "over life" - controlling opacity over the life of each particle. Just add opacity tags at the end and middle, and set the ending opacity to zero (and beginning, if you like)

  • Draw rectangle and apply fill color

    Hi
    anyone help me to draw rectangle outside artboard and apply fill color
    i want to draw 10 rectangle of same size and apply fill color using javascript
    Thak you
    appu

    Now that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
    This works:
    tell application "Adobe Illustrator"
    set openDoc to document 1
    set ftClr1 to (first group item whose note is "Front3") of openDoc
    set ftClr1Paths to path items of ftClr1
    repeat with thisPath in ftClr1Paths
    set fill color of thisPath to {red:255}
    end repeat
    set textFrames to text frames of ftClr1
    repeat with thistext in textFrames
    set fill color of every line of thistext to {red:255}
    end repeat
    end tell
    Need help to set the fill color to a Spot Color that already exists in Swatches.
    Thanks
    Nick

  • Win 2K8 R2 - Group Policy Management - Failed to Open Group Policy Object. You may not have appropriate rights. The network path was not found.

    New to Windows Server 2008 R2 Administration.
    I setup this Windows 2008 R2 Server on a Dell 2950 Poweredge server and have been migrating users off of an old NT style domain running on Samba 3.6 on CentOS.
    I have the domain setup (nicholas.sacredheartsaratoga.org), added users, and have moved users / computers over to the new domain and working.
    When attempting to setup Group Policy Objects, I continually get the "Failed to Open Group Policy Object" Error.  This is driving me nuts and seems to be a 49 error.. which I have done a ton of research on but none of the suggested fixes seem
    to be working.
    I've been working at this for a couple of weeks and really need this fixed to be able to set GPO's correctly.
    Here is my IPCONFIG /ALL
    C:\Users\Administrator.NICHOLAS.000>ipconfig /all
    Windows IP Configuration
       Host Name . . . . . . . . . . . . : NICHOLAS
       Primary Dns Suffix  . . . . . . . : sacredheartsaratoga.org
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : nicholas.sacredheartsaratoga.org
    Ethernet adapter Local Area Connection 2:
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Broadcom BCM5708C NetXtreme II GigE (NDIS
     VBD Client) #2
       Physical Address. . . . . . . . . : 00-1D-09-27-F1-63
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::542:43f2:2aaf:d903%13(Preferred)
       IPv4 Address. . . . . . . . . . . : 10.10.20.21(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : 10.10.20.3
       DHCPv6 IAID . . . . . . . . . . . : 301997321
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-7D-DC-B6-00-1D-09-27-F1-61
       DNS Servers . . . . . . . . . . . : 10.10.20.21
       NetBIOS over Tcpip. . . . . . . . : Enabled
    Tunnel adapter isatap.{41653A38-9372-4740-BB03-41950A9C9BC0}:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
    Tunnel adapter Local Area Connection* 9:
       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes

    Will post the entire contents of my gpreport as soon as my account is verified... but this is the jist of the error being reported:
    Component Status<v:group alt="Error" class="vmlimage" coordsize="100,100" style="width:15px;height:15px;vertical-align:middle;"><v:oval class="vmlimage" fillcolor="red" strokecolor="red" style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="3px" style="" to="75,75"></v:line><v:line class="vmlimage" from="75,25" strokecolor="white" strokeweight="3px" style="" to="25,75"></v:line></v:group>
    Component Name
    Status
    Last Process Time
    Group Policy Infrastructure
    Failed
    2/17/2014 2:50:06 PM
    Group Policy Infrastructure failed due to the error listed below.
    Logon failure: unknown user name or bad password. 
    Note: Due to the GP Core failure, none of the other Group Policy components processed their policy. Consequently, status information for the other components is not available.
    Additional information may have been logged. Review the Policy Events tab in the console or the application event log for events between 2/17/2014 2:50:05 PM and 2/17/2014 2:50:06 PM.
    Registry
    (N/A)
    1/4/2014 1:45:29 PM
    Security
    (N/A)
    1/4/2014 1:45:35 PM
    User Configuration Summary

  • Is there a way to show/hide a group of objects that will work in html5?

    I consider myself to have a fairly decent understanding of captivate and its functions but this recent issue has stumped me.
    I have a button with javascript attached to it that runs a typical if loop: (pseudo code to follow)
    if(variable = 1){
    show "group" and variable = 0; 
    } else{
    hide "group" and variable = 1; 
    Now normally, I would do this with single images, etc, and it would work fine.  You click the button (the image being unticked where it says "visible in output") and the image shows itself, then you click the button, and it hides.  Very standard stuff.
    My issue, is that captivate seems to let you name a group you make....but they have not given you any control of that group.
    Problem:
    I want a way to show and hide a group of objects by only clicking one button (when published to html5).
    I want to only have to reference the group and dont want to need to write a separate line of code for every single component that makes up that group (assuming the solution has to be coded).
    Is it even possible to control groups like this within captivate?
    Thanks!

    There is an adobe video that I think shows how to do exactly what you are asking.
    This is the video link:
    Lightbox-style Menu in Adobe Captivate 6 - YouTube
    At about 10min 50sec, it goes over creating a group from a number of single elements.
    At about 12min 30sec, it shows creating an action that turns the whole group on and another to turn the group off.
    When I did this myself, I used just one action that toggled the group on or off, but they show it as two actions. The idea is the same.
    I hope that helps. Apologies if I mis-understood the issue.

  • How to apply background color to link button in Flex 2

    I need to apply background color to link button as the Rollover color has  on its over event.How is this possible in Flex 2 ?I am using the above  in Xcelsius as custom component so if I apply graphics and draw rect  method it does not have any effect.Please help.

    These might help:
    http://jdevadf.oracle.com/adf-richclient-demo/components/skinningKeys/column.jspx
    http://jdevadf.oracle.com/adf-richclient-demo/components/skinningKeys/table.jspx

Maybe you are looking for