Jump to content

Uploading dozens of colors instead of creating one at a time


Recommended Posts

So I am curious if there is a way to upload dozens of colors instead of creating one at a time. I have a few hundred different color options, CMYK variances, I need to input into FP and would love an easier way.


Any and all help is appreciated!

Link to comment
Share on other sites

I use external database files to store color names and their CMYK values. Then I create a function to create the color when I need it. This also works in MarcomCentral so that you don't have to include all the colors as assets.


Function to put in Javascript Global or external javascript file

function createColor(color) {

   //Find CMYK values of color name from colors
   x=colors.FindRecord(0, color);
   var c1 = Trim(colors.GetFieldValue(x, "C"));
   var m1 = Trim(colors.GetFieldValue(x, "M"));
   var y1 = Trim(colors.GetFieldValue(x, "Y"));
   var k1 = Trim(colors.GetFieldValue(x, "K"));

   //Create the color
   new FusionProColor(color, Int(c1),  Int(m1), Int(y1), Int(k1));

   //return the color
   return color;

Then you can call the function in any of your rules.



Example text color rule:

return '<color name="'+createColor("Color Name")+'">';

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...