Ok - they did want to do this project - so in the process of writing the
rule:
//-----------------------found on the form - converts decimal to
hex--------------------
function toHex(N) {
if (N==null) {
return "00";
}
else {
N=parseInt(N);
if (N==0 || isNaN(N)) {
return "00";
}
else {
N=Math.max(0,N);
N=Math.min(N,255);
N=Math.round(N);
return "0123456789ABCDEF".charAt((N-N%16)/16) +
"0123456789ABCDEF".charAt(N%16);
}
}
}
//-----------------------found on the form - converst decimal to
hex--------------------
//cmyk is most often represented as percentages, % * 2.55 rounding up
results in # equivalent
//then converted to hex
var c1 = toHex(Round(Field("C")*2.55,0));
var c2 = toHex(Round(Field("M")*2.55,0));
var c3 = toHex(Round(Field("Y")*2.55,0));
var c4 = toHex(Round(Field("K")*2.55,0));
var ctotal = c1+c2+c3+c4
//returns a "g" - when grow to fit enabled with webdings creates a box
return '<color cmyk=ctotal>' + "g" + '</color>';
The problems is in the return with the color tag - what format does it
need to be in? When returning the combination of the numbers - ctotal -
it doesn't seem to be in the correct format. This was the way that I
thought I coudl get the variable color back. Any advice on using that
color tag? Any other way to get a user entered number into the color
tag?
~Mark
________________________________
From: Mark Layton [mailto:[EMAIL PROTECTED]
Sent: Friday, April 18, 2008 1:03 PM
To: FusionPro Users Forum
Subject: [fusionpro] returned color incorrect?
Howdy all -
Just testing for a template - the line
return "<color rgb='ff0000'>" + "g" + "</color>";
ff0000 is rgb red - it is returning a green g - ideas?
~Mark
4.2P1d
This O'Neil Printing message may contain confidential and/or proprietary
information,
and is intended for the person/entity to whom it was originally addressed.
Any use by others is strictly prohibited.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!
Variable text on a curve and soft drop-shadows for variable text
LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade
New licenses available for $599 each at:
http://fusionpro.printable.com/store/
All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm
--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
Note: All e-mail sent to or from this address will be received or otherwise
recorded by the e-mail recipients of this forum. It is subject to archival,
monitoring or review by, and/or disclosure to someone other than the recipient.
Our privacy policy is posted on www.printplanet.com
--