Correct - we only set variables for the main stock.
The variable names are listed in Help (link atop of the FFC UI) in the Appendix.
The JDF details are documented in the FFCore SDK. You can sign up here: The FreeFlow Core SDK
One last thing - it seems this varaible was changed to $FFwfJob.mainStockName$
I missed that when I updated the documentation... (taking a note for the SP3 documentation)
That explains it, $FFwfDoc.color$ is for the printing color mode (aka CMYK vs K Only printing). It is not related to the media.
Color is working ok for me using the following text:
Name: $FFwfJob.mediaDescription$
Width: $FFwfJob.mediaWidth$
Height: $FFwfJob.mediaHeight$
Weight: $FFwfJob.mediaWeightMetric$
Thickness: $FFwfJob.mediaThickness$
Color: $FFwfJob.mediaColor$
Alright I'd try this. Does a similar workaround exist for $FFwfDoc.color$? You can test with JDF 3 or JDF 5 and should see the same issue.
JDF 3 for reference:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 Xerox Corporation. All rights reserved. -->
<JDF JobID="JobID-7955" JobPartID="JobPartID-7957" Type="Combined" Types="DigitalPrinting" Version="1.4" xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResourcePool>
<RunList ID="R1">
<RunList Run="1">
<LayoutElement>
<FileSpec MimeType="application/pdf" URL="file:///C:/FreeFlow%20Core%20v4%20SDK/JMF%20Samples/Brochure%20-%20Low%20Res.pdf" />
</LayoutElement>
</RunList>
</RunList>
<LayoutPreparationParams ID="LPP1">
<!--
Media Reference
-->
<MediaRef rRef="M1" />
</LayoutPreparationParams>
<!--
Media Attributes map to Stock Attributes:
@DescriptiveName - Stock Description
Unlike ProductID, DescriptiveName is not a unique identifier. Instead, it is another stock attribute
@Dimension - Stock Width and Height defined in points
@MediaColorName - Stock Color
@MediaType, @MediaTypeDetails, @MediaSetCount - Stock Type and Sequence
@MediaType: Paper; @MediaTypeDetails: Cardstock, ContinuousLong, ContinuousShort, Labels, MultiPartForm, Stationery, Postcard, <custom values>
Full Cut Tab Stock: @MediaType: Paper; @MediaTypeDetails: FullCutTabs
Pre Cut Tab Stock: @MediaType: Paper; @MediaTypeDetails: PreCutTabs, TabStock; @MediaSetCount: Sequence Number
Ordered Stock: @MediaType: Paper; @MediaTypeDetails: <custom value>; @MediaSetCount: Sequence Number
Transparencies: @MediaType: Transparency; remove @MediaTypeDetails
@Weight - Stock Weight
@Thickness - Stock Thickness defined in microns. 1 micron = .001mm
@FrontCoatings, @BackCoatings - Coating and Coating Type
One Side: @FrontCoatings; no @BackCoatings
Two Sides: @FrontCoatings; @BackCoatings
Values: None, Glossy, HighGloss, Semigloss, Satin, Matte
@Texture - Stock Finish
Valid Coating options: Uncoated, One Side
Value: Calendared, Smooth, Vellum, Uncalendared
Note: Values to map to printer-specific values based on the smoothness of the paper (e.g. Calendared will always be the smoothest value)
@GrainDirection - Stock Grain Direction
Value: XDirection (maps to Short), YDirection (maps to Long)
@HoleType: - Drilled Stock
Value: R3-generic
@PrePrinted: - Preprinted Stock
Value: true, false
Note: @PrePrinted and @MediaType are mutually exclusive. The JDF should contain one or the other element but not both
@RecycledPercentage: - Recycled Stock
Value: 0 or attribute missing maps to not recycled, any other value maps to recycled
Note: @RecycledPercentage and @MediaType are mutually exclusive. The JDF should contain one or the other element but not both -->
<Media DescriptiveName="XeroxCXPlanet20_65C ! 17x11" Dimension="648.0 792.0" MediaColorName="Goldenrod" MediaType="Paper" MediaTypeDetails="PreCutTabs" MediaSetCount="5" Weight="90" Thickness="1000" FrontCoatings="Glossy" Texture="Calendared" GrainDirection="XDirection" HoleType="R3-generic" PrePrinted="true" RecycledPercentage="10" ID="M1" />
<CustomerInfo CustomerJobName="03 - Stock Attributes" ID="CI1" />
<Component Class="Quantity" ComponentType="FinalProduct" ID="C1" />
</ResourcePool>
<ResourceLinkPool>
<RunListLink Usage="Input" rRef="R1" />
<LayoutPreparationParamsLink Usage="Input" rRef="LPP1" />
<CustomerInfoLink Usage="Input" rRef="CI1" />
<ComponentLink Usage="Output" rRef="C1" />
</ResourceLinkPool>
</JDF>
Thanks - I just tried it and sure enough it seems there's a bug with that variable (although other variables seems to be working ok).
Two things: Please submit to the hotline.
Also - as a workaround, Create the JDF with the stock name in both the ProductID and the DescriptiveName attributes.
Use the $FFwfJob.mediaDescription$ variable to add the stock name to the banner page.