Change font color using data provided

125 views
Skip to first unread message

rotero9

unread,
Jun 17, 2022, 11:25:28 AM6/17/22
to XMPie Interest Group
Hi! I'm trying to change the font color using CMYK values provided with data. I've been able to change object (circles, stars, rectangles) using the "rectangle" graphic function like this:
Rectangle(@{rectC}, @{rectM}, @{rectY}, @{rectK})

So "rectC" is a number variable that feeds from my data: |->[rectC]

I'm trying to apply the same logic to this (see below), but I cannot get it to work:
__PrivateInternalStyle("[Default]||||[0,1,0,0]")

I noticed that for "rectangle" function to work, the values have to be numbers from 0-100. The "font color" function uses numbers from 0.0 to 1. I do have data set this way, with decimals, but it still doesn't work.
__PrivateInternalStyle("[Default]||||[ @{C}, @{M}, @{Y}, @{K}]")

Is what I'm trying to do even possible for fonts? Thank you for your help in advance!

Message has been deleted

west-digital.fr

unread,
Jun 18, 2022, 1:52:51 AM6/18/22
to XMPie Interest Group
The QLingo function expects the last portion of the parameter to be a mostly numeric values.
If I understand well, you are providing a string that contains alphabetics " @{C}, " etc.
Consider this instead:

__PrivateInternalStyle("[Default]||||[ " & @{C} & ", " & @{M} & ", " & @{Y} & ", " & @{K} & "]")

Not tested, though.

rotero9

unread,
Jun 21, 2022, 10:04:53 AM6/21/22
to XMPie Interest Group
That worked! Genius. Thank you!
Reply all
Reply to author
Forward
0 new messages