Why my swatches become color chart of model?

Problem is when I drag a color swatch and then in the color chart he Panel immediately transforms the color chart, color chart of model. Which is what I don't want. How can I fix it?

Thank you

forgt talking about AI m using the CC version HAVE 17.1

Do not drag the object in the swatches Panel. Instead, select the object, the development of filling and use the new button in the shade

Tags: Illustrator

Similar Questions

  • Color chart of model move when exported to PDF and read in Preview/GoodReader

    I tried for days find an answer to this issue, but have failed. You should also know that I am a self-taught user Adobe Creative Suite. I'm working on a Mac with CS6.

    I work for a small publisher that produces knitting books. The problem is this: our tech editor has created graphics in Illustrator using the color chart of model function. (These are graphic knit. Each square contains a shade of motif representing the knit stitch).

    I then place these cards in their format native .ai in an Indesign file and exporting to PDF. In Acrobat, the charts look fabulous. In the drive of the preview Mac and GoodReader, tables do this...

    Screen Shot 2013-12-10 at 11.40.59 AM.png

    ... the model color chart move around inside their places. Each of these points must be placed inside their places. First, when I resize the application framework, the nuances of the model move I have re-size of the frame. Any ideas on what could happen here?

    I tried to save the graphics as PDF files and putting those in the InDesign file. Does not help. Export diagrams as images (jpg or tif) works, but I need to make ridiculously high resolution/size for the quality of the vector image. I would rather put .ai files in the .indd file if possible.

    Try to use the file > object > expand on a copy of the original before making the PDF for placement.

  • Record the color chart of model

    I created a shade of reason and (apparently) registered, but when I try to open it from another document, can't find it. If I search my hard drive I don't is not, even if I have (several times) saved in the folder of the color chart. Any tips? CS6/Mac

    You should be able to find them in def...

    But you can also load the browsing the other library > and select an Illustrator document that has the desired shade.

  • Ignore the models and processes of color chart by pushing to table

    How can I go on ignoring process colors and color chart of model when you press shades in a table? So far, I've been able to exclude the swatches by name, but ColorType.CMYK does not seem to do... Here is the excerpt in question...

    //Get Document Swatches 
    
    
    var swatchList = docRef.swatches;
    
    
    var colorList = [];
    
    
    
    
    for(var k=0; k< swatchList.length; k++) {
        if (swatchList[k].name.toLowerCase() != "thru-cut" && swatchList[k].name.toLowerCase() != "[registration]"// 
        && swatchList[k].name.toLowerCase() != "[none]" && swatchList[k].name.toLowerCase() != "cut line" //
        && swatchList[k] != ColorType.CMYK){
           
           colorList.push(swatchList[k].name);
               }
           }
    

    I'm passing on the syntax for ColorType offshore? While I'm there at - it a way to clean this list to make things more easy Add/Remove in the future. Ideally, I think I'd have a table that contains just the color chart to ignore... something like this:

    var ignoredSwatches = ["thru-cut", "[registration]"]
    
    for (var k=0; k<swatchList.length; k++) {
         if swatchList[k].name.toLowerCase() != ignoredSwatches {
              colorList.push(swatchList[k].name);
              }
         }
    

    Thanks in advance, people.

    Ok. I figured out the syntax to ignore certain types of color which is the following:

    &&  swatchList[k].color.typename != "CMYKColor"
    

    the syntax is the same for pattern or RGB colors as well. If this problem is solved.

    does anyone have an idea on how to create a list of color via a table instead of include the variable [index].name.toLowerCase () each time?

    the way I have it works fine, but I can't imagine that this is the right way.

  • Why does my color chart disappear randomly?

    I have a MAC and use CS4.

    Sometimes, when I use illustrator my color chart is here and easy access, to change the colors or values... blahlblahblah

    Other times I have No color swatches in my window color, and no cursor no bars in the color slider window (no values can be adjusteded / no bar to adjust)

    If I use the menu bar in the box color (top-right) and change the CMYK or RGB colors, I can change the color.

    It's a bit annoying, because I can't understand why this happens.

    I would like to show you guys a screenshot, but like I said it happens to chance...

    When you open an image pixel, PDF or EPS rather than an Illustrator file or rather than create a new file, there will be no shade.

  • Color chart color sorting in InDesign

    Some of the major publications that I work on build up a gazillion of swatches, and I'd like to be able to sort out them. In the past I did manually, by CMYK value. But this takes time and often translates visually convoluted arrangements. The Greens are not all together, we pastels of the reds and yellows, etc.. I would like to do it with a script, to save time and make more perceptually useful and enjoyable.

    Any help or advice would be much appreciated. Or if you are an Angel script, maybe you want to write to me. I've written the scripts before, but I don't know the best way to navigate the nuances, or how to sort them into folders or to group them.

    The base sort method I want is to regroup the nuances in records as follows (each point of the bullet would be a file separate in the palette swatches - or maybe just grouped together in a simple list - could be an option in the script... and the following each bullet formula describes the criteria for colors in this group and how they would be sorted) :

    • Magenta: If M > 127 and CYK < 64, sorting by density
    • Red: If MY > 127 and CK < 64 and M > = O, sorting by density
    • Oranges: If MY > 127 and CK < 64 and Y > M, sort by density
    • Yellow: If Y > 127 and CMK < 64, sorting by density
    • The hot Greens: If > 127 and MK < 64 CY and Y > = C, sorting by density
    • Cool Greens: CY if > 127 and MK < 64 and C > there, sorting by density
    • Cyans: If C > 127 and MYK < 64, sorting by density
    • Blues: If > 127 CM and YK < 64 and C > = M, sort by density
    • Purples: If > 127 CM and YK < 64 and M > C, sort by density
    • Dark colors: all values are > 85, sort by dominant CMY, then by density
    • Pastels: all values are < 15, sort by dominant CMY, then by density
    • Gray: no matter where the CMY values are +/-5 compared to their average (which includes also CMY = 0), sorting by dominant to CMY value then by density.
    • Everything else: sort by dominant CMY then by density


    (In the section above, "If MY > 127" means, "if M and there are both individually less than 127 ' etc ')


    For gray calculation: average = (C + M + Y) / 3


    For the sort of density: density = L of (L * a * b), or other formula to calculate the value of lightness/darkness such as: density = (C * 0.49) + (M * 0.6) + (Y * 0.07) + (K * 0.91)


    For color chart RGB, convert RGB colors and process to CMYK?


    Remove all of the tones in their own folder (or top).


    Drop all gradients in their own folder (or the end of list).

    Hi MPrewitt,

    Have fun with your idea, although I'm still getting a large number of samples unassigned in the 'other' category (last group).

    My script allows you to play with the thresholds that you have provided, you will probably want to restore the original values.

    In any case, here's the code so far:

    ////////////////////////////////////////////////////////////
    //
    //  SWATCH SORTER for InDesign - v.1.001b - indiscripts.com
    //
    ////////////////////////////////////////////////////////////
    
    #targetengine 'SwatchSorter1001b'
    
    $.global.hasOwnProperty('ProgressBar')||(function(H/*OST*/,S/*ELF*/,I/*NNER*/)
    {
        H[S] = function ProgressBar(/*str*/title, /*uint*/width, /*uint*/height)
        {
            (60<=(width||0))||(width=340);
            (40<=(height||0))||(height=60);  
    
            var H = 22,
                Y = (3*height-2*H)>>2,
                W = new Window('palette', ' '+title, [0,0,width,height]),
                P = W.add('progressbar', { x:20, y:height>>2, width:width-40, height:12 }, 0,100),
                T = W.add('statictext' , { x:0, y:Y, width:width, height:H }),
                __ = function(a,b){ return localize.apply(null,a.concat(b)) };  
    
            this.pattern = ['%1'];  
    
            W.center();  
    
            // ---
            // API
            // ---  
    
            this.msg = function(/*str*/s,  v)
            // ---------------------------------
            {
                s && (T.location = [(width-T.graphics.measureString(s)[0])>>1, Y]);  
    
                T.text = s;
                W.update();
            };  
    
            this.show = this.reset = function(/*str*/s, /*uint*/v)
            // ---------------------------------
            {
                if( s && s != localize(s,1,2,3,4,5,6,7,8,9) )
                    {
                    this.pattern[0] = s;
                    s = __(this.pattern, [].slice.call(arguments,2));
                    }
                else
                    {
                    this.pattern[0] = '%1';
                    }  
    
                P.value = 0;
                P.maxvalue = v||0;
                P.visible = !!v;  
    
                this.msg(s);  
    
                W.show();
                W.update();
            };  
    
            this.hit = function(x)
            // ---------------------------------
            {
                ++P.value;
                ('undefined' != typeof x) && this.msg(__(this.pattern, [].slice.call(arguments,0)));
                W.update();
            };  
    
            this.hide = function()
            // ---------------------------------
            {
                W.hide();
            };  
    
            this.close = function()
            // ---------------------------------
            {
                W.close();
            };
        };
    
    })($.global,{toString:function(){return 'ProgressBar'}},{});
    
    $.global.hasOwnProperty('SwatchSorter')||(function(H/*OST*/,S/*SELF*/,I/*NNER*/)
    {
        H[S] = S;
    
        //======================================================
        // DATA AND SHORTCUTS
        //======================================================
    
        I.O_ROOT = app;
        I.O_LOCKED = { 'None':1, 'Black':1,'Paper':1, 'Registration':1 };
    
        I.CM_MIX =     +ColorModel.MIXEDINKMODEL;
        I.CM_PROCESS = +ColorModel.PROCESS;
        I.CM_REG =     +ColorModel.REGISTRATION;
        I.CM_SPOT =    +ColorModel.SPOT;
    
        I.CS_CMYK =    +ColorSpace.CMYK;
        I.CS_LAB =     +ColorSpace.LAB;
        I.CS_MIX =     +ColorSpace.MIXEDINK;
        I.CS_RGB =     +ColorSpace.RGB;
    
        // Keep colors and tints together.
        I.O_ORDER = { 'Color':1, 'Tint':1, 'Gradient':3, 'MixedInk':4 };
    
        I.BUILD_CLUSTERS = 1;
        I.CLUSTER_MASK = 0xF000;
        I.O_CLUSTERS = {
            '_0'     : 'Magentas',    // 0x0000
            '_4096'  : 'Reds',        // 0x1000
            '_8192'  : 'Oranges',     // 0x2000
            // ---
            '_16384' : 'Yellows',     // 0x4000
            '_20480' : 'Warm Greens', // 0x5000
            '_24576' : 'Cool Greens', // 0x6000
            // ---
            '_32768' : 'Cyans',       // 0x8000
            '_36864' : 'Blues',       // 0x9000
            '_40960' : 'Purples',     // 0xA000
            // ===
            '_49152' : 'Grays',       // 0xC000
            '_53248' : 'Darks',       // 0xD000
            '_57344' : 'Pastels',     // 0xE000
            '_61440' : 'Others',      // 0xF000
            };
    
        //======================================================
        // CMYK ROUTINES
        //======================================================
    
        I.F_APPLY_CMYK_TINT = function(/*0..100[4]&*/CMYK, /*]0,1]*/t)
        //----------------------------------
        {
            CMYK[0] *= t;
            CMYK[1] *= t;
            CMYK[2] *= t;
            CMYK[3] *= t;
        };
    
        I.F_TO_CMYK_KEY = function F(/*0..100[4]*/CMYK,  d,a,v,i,t)
        //----------------------------------
        {
            const mABS = Math.abs,
                  mMIN = Math.min,
                  mMAX = Math.max;
    
            const INK_MIN = 50,
                  INK_MAX = 35,
                  GRAY_VAR = 5,
                  DARK_MIN = 70,
                  PASTEL_MAX = 25;
    
            F.DENSITY || (F.DENSITY=[49,60,7,91]);
            F.BUFFER || (F.BUFFER=[0,0,0,0]);
    
            for( d=0, a=F.BUFFER, v=F.DENSITY, i=-1 ; ++i < 4 ; (d+=v[i]*(t=CMYK[i])), a[i]=-(INK_MAX>t)||+(INK_MIN>>= 3; // <= 0xA1B
    
            for( t=(0<=a[3]), i=-1 ; (!t) && (++i < 3) ; t = 0 > a[i] && 0 < a[(1+i)%3] && a[(2+i)%3] );
    
            if( 3 > (i&=3) )
                {
                // CMY CLASSES (0x0000 -> 0xAA1B).
                // ---------------------------------------------
                //              DOM SUB DENSITY(12b)
                //              [i] [t] [d]
                // ---------------------------------------------
                // Magentas:    00  00  xxxx xxxx xxxx
                // Reds:        00  01  xxxx xxxx xxxx
                // Oranges:     00  10  xxxx xxxx xxxx
                // ---------------------------------------------
                // Yellows:     01  00  xxxx xxxx xxxx
                // Warm Greens: 01  01  xxxx xxxx xxxx
                // Cool Greens: 01  10  xxxx xxxx xxxx
                // ---------------------------------------------
                // Cyans:       10  00  xxxx xxxx xxxx
                // Blues:       10  01  xxxx xxxx xxxx
                // Purples:     10  10  xxxx xxxx xxxx
                // ---------------------------------------------
    
                ++t && (t -= CMYK[(2+i)%3] <= CMYK[(1+i)%3] );
                t |= (i<<2);
                return d | (t<<12);
                }
    
            // ---
            // Darks, pastels, grays, others
            // ---
    
            d >>>= 2;
            i = 0;
            t = 3;
            while( v = CMYK[0] + CMYK[1] + CMYK[2] )
                {
                // Other classes (0xC000 -> 0xFFFF)
                // ---------------------------------------------
                //              MK  CTG DOM  DENSITY(10b)
                //                  [i] [t]  [d]
                // ---------------------------------------------
                // Grays   (M)  11  00  00   xx xxxx xxxx
                // Grays   (Y)  11  00  01   xx xxxx xxxx
                // Grays   (C)  11  00  10   xx xxxx xxxx
                // Grays   (K)  11  00  11   xx xxxx xxxx
                // ---------------------------------------------
                // Darks   (M)  11  01  00   xx xxxx xxxx
                // Darks   (Y)  11  01  01   xx xxxx xxxx
                // Darks   (C)  11  01  10   xx xxxx xxxx
                // ---------------------------------------------
                // Pastels (M)  11  10  00   xx xxxx xxxx
                // Pastels (Y)  11  10  01   xx xxxx xxxx
                // Pastels (C)  11  10  10   xx xxxx xxxx
                // ---------------------------------------------
                // Others  (M)  11  11  00   xx xxxx xxxx
                // Others  (Y)  11  11  01   xx xxxx xxxx
                // Others  (C)  11  11  10   xx xxxx xxxx
                // ---------------------------------------------
    
                v /= 3;
                t = ( CMYK[1] < CMYK[2] || CMYK[1] < CMYK[0] ) << ( CMYK[2] < CMYK[0] );
    
                // Grays
                // ---
                if( GRAY_VAR >= mMAX(mABS(CMYK[0]-v),mABS(CMYK[1]-v),mABS(CMYK[2]-v)) ) break;
    
                // Darks
                // ---
                if( ++i && DARK_MIN < mMIN.apply(null,CMYK) ) break;
    
                // Pastels
                // ---
                if( ++i && PASTEL_MAX > mMAX.apply(null,CMYK) ) break;
    
                // Others
                // ---
                ++i; break;
                }
    
            t |= 0x30 | (i<<2);
            return d | (t<<10);
        };
    
        I.F_CONVERT_TO_CMYK = function(/*Color*/o,/*ColorSpace*/cs,/*ColorValue*/cv,  r)
        //----------------------------------
        {
            try {
                // Convert to cmyk space if possible.
                // This might fail due to imported swatches.
                // ---
                o.space = I.CS_CMYK;
                r = o.colorValue;
    
                // Revert to initial color props.
                // ---
                o.properties = { space:cs, colorValue:cv };
                }
            catch(_)
                {
                // Not implemented
                // if( I.CS_RGB==cs && 3==cv.length ) r = I.FN_RGB_TO_CMYK_APPROX(cv);
                }
    
            return r || false;
        };
    
        I.F_COLOR_TO_CMYK = function(/*Color*/o,  r,cv,cs)
        //----------------------------------
        {
            r = false;
    
            if( I.CM_MIX == +o.model ) return r;
    
            cv = o.colorValue;
            cs = +o.space;
    
            r = I.CS_CMYK == cs ? cv : I.F_CONVERT_TO_CMYK(o,cs,cv);
    
            return r;
        };
    
        //======================================================
        // PARSING
        //======================================================
    
        I.F_TO_FULL_KEY = function(/*uint*/order,/*[c,m,y,k]*/CMYK,/*str*/name,/*uint*/id)
        //----------------------------------
        {
            return String.fromCharCode(0x40+order,I.F_TO_CMYK_KEY(CMYK)) +
                   name + '\x01' + id;
        };
    
        I.F_PARSE_Color = function(/*Color*/o,/*str*/name,/*uint*/id,  a,k)
        //----------------------------------
        {
            if( I.O_LOCKED.hasOwnProperty(name) ) return '';
    
            if( !(a=I.F_COLOR_TO_CMYK(o)) ) return '';
    
            return I.F_TO_FULL_KEY(I.O_ORDER['Color'],a,name,id);
        };
    
        I.F_PARSE_Tint = function(/*Tint*/o,/*str*/name,/*uint*/id,  bc,a,k)
        //----------------------------------
        {
            bc = o.baseColor;
    
            if( I.O_LOCKED.hasOwnProperty(bc.name) ) return '';
    
            if( !(a=I.F_COLOR_TO_CMYK(bc)) ) return '';
    
            I.F_APPLY_CMYK_TINT(a,o.tintValue/100);
    
            return I.F_TO_FULL_KEY(I.O_ORDER['Tint'],a,name,id);
        };
    
        I.F_PARSE_Gradient = function(/*Color*/o,/*str*/name,/*uint*/id)
        //----------------------------------
        // Not implemented
        {
            return '';
        };
    
        I.F_PARSE_MixedInk = function(/*Color*/o,/*str*/name,/*uint*/id)
        //----------------------------------
        // Not implemented
        {
            return '';
        };
    
        //==========================================================================
        // ORDERING
        //==========================================================================
    
        I.F_APPLY_ORDER_CLUSTERS = function(/*ProgressBar*/PB,/*str{}*/data,/*Swatches*/coll,  n,o,i,k,s,t)
        //----------------------------------
        {
            const CM = I.CLUSTER_MASK,
                  OC = I.O_CLUSTERS;
    
            n = data.length;
            PB.reset("Assigning groups... (%1 / %2)",n);
    
            o = {};
    
            for( i = 0 ; i < n ; ++i )
                {
                PB.hit(1+i,n);
                if( !(k=data[i]) ) continue;
    
                s = '_' + (CM & k.charCodeAt(1));
                if( !OC.hasOwnProperty(s) ) continue;
                s = OC[s];
    
                k = k.substr(2).split('\x01');
                if( !(t=coll.itemByID(parseInt(k[1],10))).isValid ) continue;
    
                (o[s]||(o[s]=[])).push(t);
                }
    
            n = o.__count__;
            i = 0;
            t = I.O_ROOT.colorGroups;
            PB.reset("Creating group %1... (%2 / %3)",n);
            for( k in o )
                {
                if( !o.hasOwnProperty(k) ) continue;
                PB.hit(k,++i,n);
                t.add(k,o[k]);
                o[k].length = 0;
                }
        };
    
        I.F_APPLY_ORDER_FLAT = function(/*ProgressBar*/PB,/*str{}*/data,/*Swatches*/coll,  n,i,k,t,o,d)
        //----------------------------------
        {
            n = data.length;
            PB.reset("Reordering swatches... (%1 / %2)",n);
    
            for( i = 0 ; i < n ; ++i )
                {
                PB.hit(1+i,n);
                if( !(k=data[i]) ) continue;
                k = k.substr(2).split('\x01');
                if( !(t=coll.itemByID(parseInt(k[1],10))).isValid ) continue;
    
                t = t.getElements()[0]; // !important!
    
                switch( t.constructor.name )
                    {
                    case 'Color':
                        o = t.duplicate();
                        t.remove(o);
                        o.name = k[0];
                        break;
                    case 'Tint':
                        o = t.properties;
                        d = o.tintValue > 50 ? -.001 : +.001;
                        o.tintValue += d;
                        o = I.O_ROOT.tints.add(o);
                        t.remove(o);
                        o.tintValue -= d;
                        break;
                    default:
                        // not implemented
                    }
                }
        };
    
        I.F_PROCESS_ALL_SWATCHES = function(/*ProgressBar*/PB,/*Swatches*/coll,  ei,a,names,ids,i,n,t,k)
        //----------------------------------
        {
            ei = coll.everyItem();
    
            a = ei.getElements();
            names = ei.name;
            ids = ei.id;
    
            i = n = a.length;
    
            // Parsing swatches
            // ---
            PB.reset("Parsing swatches... (%1 / %2)",n);
            while( i-- )
                {
                PB.hit(n-i,n);
                t = a[i];
                k = 'F_PARSE_' + t.constructor.name;
                a[i] = I.hasOwnProperty(k) ? I[k](t,names[i],ids[i]) : '';
                }
    
            // Sorting
            // ---
            PB.reset("Sorting colors...");
            a.sort();
    
            // Reordering swatches
            // ---
            I['F_APPLY_ORDER_' + ((I.BUILD_CLUSTERS && 'colorGroups' in app) ? 'CLUSTERS' : 'FLAT')](PB,a,coll);
    
            a.length = 0;
        };
    
        //==========================================================================
        // IDLE MANAGER
        //==========================================================================
    
        (I.F_IDLE_TASK = ('idleTasks' in app) ?
        function F(/*?fct*/callback,  t)
        //----------------------------------
        {
            t = app.idleTasks.length;
    
            // Cleanup
            // ---
            if( t && (t=app.idleTasks.itemByName(F.Q.name)).isValid )
                {
                t.eventListeners.everyItem().remove();
                t.remove();
                }
    
            // Set callback (if any)
            // ---
            if( 'function' == typeof callback )
                {
                app.idleTasks.add({ name:F.Q.name, sleep: F.Q.rate }).
                    addEventListener(IdleEvent.ON_IDLE, callback, false);
                }
        }:
        function F(/*fct*/callback)
        //----------------------------------
        {
            if( 'function' == typeof callback ) callback();
        }
        ).Q = {name:'Task'+S, rate:25};
    
        (I.F_EXIT_PROCESS = function F()
        //----------------------------------
        {
            // Stop the task
            // ---
            I.F_IDLE_TASK();
    
            // Close the PB
            // ---
            F.Q && (F.Q.close());
    
        }).Q = 0;
    
        //==========================================================================
        // API
        //==========================================================================
    
        S.run = function(/*?Document*/doc,/*bool=0*/NO_CLUSTERS,  PB,t)
        //----------------------------------
        {
            I.BUILD_CLUSTERS = +!NO_CLUSTERS;
    
            PB = new ProgressBar(S + ' \xA9indiscripts.com',400,100);
    
            if( ('panels' in app) && (t=app.panels.itemByName('$ID/Swatches')).visible ) t.visible = false;
    
            doc || (doc=app.properties.activeDocument);
    
            if( doc instanceof Document )
                {
                doc.preflightOptions.properties = { preflightOff: true };
                t = doc;
                }
            else
                {
                t = app;
                }
    
            if( ('colorGroups' in app) && 1 < t.colorGroups.length )
                {
                t.colorGroups.itemByRange(1,-1).ungroup();
                }
    
            I.O_ROOT = t;
    
            app.doScript('I.F_PROCESS_ALL_SWATCHES(PB,t.swatches);',
                ScriptLanguage.javascript,
                undefined,
                UndoModes.entireScript,
                ''+S
                );
    
            PB.reset("Refreshing the GUI. Please, wait...");
    
            if( 'panels' in app )
                {
                app.panels.itemByName('$ID/Swatches').visible = true;
                }
    
            I.F_EXIT_PROCESS.Q = PB;
            I.F_IDLE_TASK(I.F_EXIT_PROCESS);
        };
    
    })($.global,{toString:function(){return 'SwatchSorter'}}, {});
    
    SwatchSorter.run();
    

    @+

    Marc

  • Color chart added via JSX is not persistent

    If (!) colorID in swatchlist))) {}

    missingswatches [colorID] = colorNodeName;

    return;

    }

    var targetLayerName = tpNodeID + '_' + tpNodeName,

    app.activeDocument = this_doc,

    this_cw = this_doc.groupItems.getByName (mycw),

    myswatch = swatchlist [colorID],

    myswatchname = swatchlist [colorID] .name,

    swatchexists = false,

    Newswatch;

    try {}

    var checkExistence = this_doc.swatches [myswatchname];

    swatchexists = true;

    Alert ('swatch' + myswatchname + "exist");

    }

    {} catch (err)

    Alert ('swatch' + myswatchname + 'did not exist');

    Newswatch = this_doc.swatches.add ();

    Newswatch.Name = myswatchname;

    Newswatch.Color = myswatch.color;

    Newswatch.TypeName = myswatch.typename;

    }

    If (swatchexists = true) {}

    var operateOnTrue = checkPathType (this_cw.pageItems.getByName (targetLayerName));

    this_doc.swatches [myswatchname] .color = operateOnTrue.fillColor;

    } else {}

    var operateOnFalse = checkPathType (this_cw.pageItems.getByName (targetLayerName));

    operateOnFalse.fillColor = newswatch.color;

    }
    This is a function I wrote to review some documents and draw from their shades. We have a naming system for our color charts and it matches the ID to choose one to add.
    My problem is that it adds the perfectly fine nuances (both the element and the Swatch Library for the current document with the name, id, and the correct information), but then when you add a new shade, it completely ERASES the nuances in the library of the current document, while keeping color on layers.

    Is there something I am doing wrong? It looks like a bug in artificial intelligence more than anything else - why add a completely shade would eliminate my Swatch Library?

    Thank you.

    I don't know if this applies to you, but I have had what seems like a similar problem earlier on a project that copies the nuances between the documents in question.

    The gist of the problem is that when you copy a shade from one document to the other the swatch.color object stores the parent document as a property according to the type of color (IE SpotColor). When you put this swatch.color in a new document or different this property retains its value of document parent and seem to cause issues such as the nuances that disappears or swatches get renamed to "deleted the overall color" because I guess that the parent of shades is linked to another document.

    So, where I orginally had something like the following for all colors:

    var swatchInfo = oldDocRef.swatches.getByName('MyColor');
    var newSwatch = newDocRef.swatches.add();
    newSwatch.color = swatchInfo.color;
    newSwatch.name = swatchInfo.name;
    

    She had to be added differently depending on the type of color:

    var swatchInfo = oldDocRef.swatches.getByName('MyColor');
    switch(swatchInfo.color.typename) {
      case 'CMYKColor':
      var newSwatch = newDocRef.swatches.add();
      newSwatch.color = swatchInfo.color;
      newSwatch.name = swatchInfo.name;
      break;
      case 'SpotColor':
      var newSwatch = newDocRef.spots.add();
      newSwatch.color = swatchInfo.color.spot.color;
      newSwatch.colorType = swatchInfo.color.spot.colorType;
      newSwatch.name = swatchInfo.name;
      break;
    }
    

    So basically if it is a spot color, you need to dig into the subject of color, so you do not copy the parent property. Still not sure if this is your exact problem but maybe a value of a control.

  • By default the color chart - can they be changed?

    The vast majority of my work in InDesign requires that I have colors of our company responsible as swatches to select various elements. I did a file .ase containing only these colors. What I would really like to do now is to include it in my color chart by default so that new document I create will already have them loaded, instead of having to load them separately.

    Is this possible? If so, how should I do this?

    I use the ID CS6 v8.0.2 on a Win7 sp1 machine.

    Thank you!

    Susan

    Load them without opening the files. All future files you create will get them.

  • I'm looking for shades of color like Winsor Newton color chart to use Photoshop CC

    I'm looking for shades of color like Winsor Newton color chart to use Photoshop CC. Does anyone know where to get these color charts to use with photoshop CC?  . And is it safe to download. Thank you

    DeviantArt is fairly reliable Winsor Newton swatches of rnbluvva on DeviantArt

  • How to remove the user defined color chart in illustrator cc

    How can I remove groups swatch defined by the user in the menu in illustrator CC drop down 'open the Swatch Library? I'm on a Mac Book Pro 13.

    Hi Peter,.

    You can navigate to: Applications > Adobe Illustrator CC 2015 > Presets > en_US > color chart, and there, you can manually delete the user defined color chart.

    Thank you

    OM

  • Cannot drag and drop a pattern to the color chart

    I have a PC with Windows 10 so maybe that's part of the problem.

    I've been working with a very detailed model and using the function drag / move in the color chart with no problems.  Then all of a sudden it stopped working.  Any thoughts?  I can drag and drop other items in, but not this model more.  Any thoughts?

    Try and select the object complete, then object > model > done. This can generate a more descriptive error message. Will there be a clipping mask in your work?

  • the color chart "load" command does not in InDesign 2014 and 2015

    The "load the color chart" command in the Panel color chart does not in InDesign 2014 and 2015. Cannot click the Pantone or any other collection, they are all faded.  I have already trashed the Preferences folder and restarted ID and Mac. It started only once I have updated to the latest version of CC, but now it affects 2014 and 2015.  Don't know what to do, I don't like reinstalling one or the other.  Tried to go back to the CS6.  All solutions anyone?  Thank you!

    Screenshot 2015-07-20 13.14.21.png

    Color chart of load control is for loading samples from other documents or a swatch file.

    Use the new swatch command to add a color.

  • I need assistance in the import of certain vectors, watercolor color chart and other creative market (step by step instructions).  Im a newbie to Illustrator and need help.

    I need assistance in the import of certain vectors, watercolor color chart and other creative market (step by step instructions).  Im a newbie to Illustrator and need help.

    Should be the subject of the file > open.  After the download.  The swatches will come with the file.

  • I use CS3 AI... .the color chart menu DISAPPEARED

    I use CS3 AI... .the menu of color chart has DISAPPEARED, even if the color chart is check under the WINDOW. ALL that is there is now a red slash... According to the usual 'help' was totally useless.

    Here's the screenshot: how in hell do this back?

    Thanks in advance,

    Carl S.

    AI-SCREEN.jpg

    Open a raster file is mainly the reason why there is no nuance in a file.

    If you want to have shades in a file from the beginning: you must create a new file and then place the raster in her file.

    But you can also simply load or create samples later.

  • How can I recover my "color chart" (CS6)?

    How can I recover my Swatches Panel that I messed up?

    Window > swatches.

    Drop down above right

    Reset the color chart...

Maybe you are looking for

  • wireless connection with the non-administrateurs problem

    We use our cell phones to A60122 satellite with Windows 2000 in a windows 2000 domain. Only a local administrator can use the wireless network adapter. Any other user gets a ' no connection / cable disconnected "error. They cannot even log on - field

  • Green Back word on screen

    I could not find any information on this baffling question... On the lower right corner of my laptop, the screen is the word 'Return' in green. When I put the cursor on the word, I just get a blue rotating circle. I never pressed key on the keyboard

  • E3000 Router Configuration cascade

    I have the game following up in a home in Brooklyn, NY:

  • Freezing and disc hard short failure of dst

    Hi, I have a g6-2213sa. A week ago my laptop started to freeze almost instantly, I looked online and decided to use the built in refresh option. Unfortunately, this did not help, after using f2 tests, I discovered that I had a disk failure hard dust

  • Problems of synchronization to blackBerry Smartphones software 4.6

    When I synchronize messages that I've deleted or moved to a personal folder continue to appear on my device, I checked and double-checked all my settings and do not know why he continues to leave messages on my machine. This is an email from work via