Jump to content

Recommended Posts

Posted

Hello,

I am designing a card game in Affinity Publisher and Designer (both v1.9.1) on my Mac.

I have a data file that contains image paths, card text, various details, and formatting data such as layer visibility, text color, and object/region fill colors (could be RGB or hex).

I have successfully used the Data Manager to import the file, and the Fields studio to assign text and image path content to a Data Merge layout object. But I cannot figure out if I can control the formatting or visibility of layers via that data file.

If I were programmatically building an SVG in python, I can read such a file, and render the given elements with the desired formatting specified by the data file. But after seeing AP's Data Merge in action, I scrapped that effort, especially since I'm not a SVG wizard. And of course, AP & AD are so much nicer to exist in rather than staring at abstract code wondering why my layering is busted.

I realize I could split my data into several subsets, and then create AP layouts for each version (with the text, layers, and visibilities set to all the needed permutations), then export and slice to be merged again into a master for printing on card stock for play testing. But I'm trying to avoid that sort of busy-work, and it sounds prone to manual errors.

I've also considered pre-rendering static resources in the desired formatting permutations, and then just setting those elements in AP Data Merge as a simple image path, but that's one more step to the process.

Posted
7 hours ago, kientructayho said:

But I cannot figure out if I can control the formatting or visibility of layers via that data file.

You cannot, none of the Affinity applications have any support for scripting.

7 hours ago, kientructayho said:

I've also considered pre-rendering static resources in the desired formatting permutations, and then just setting those elements in AP Data Merge as a simple image path, but that's one more step to the process.

I think this would be your best bet.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

  • 1 year later...
Posted (edited)
On 3/30/2021 at 10:37 AM, Old Bruce said:

You cannot, none of the Affinity applications have any support for scripting.

I think this would be your best bet.

Say I wanted to change the color of a layer based on a variable determined in my data merge file. Would it be possible for me to change the color of a layer for each iteration in the column? So the first page would be red, the second yellow, the third blue, etc.

Edited by jacobwilson9600
Posted
5 hours ago, jacobwilson9600 said:

Say I wanted to change the color of a layer based on a variable determined in my data merge file. Would it be possible for me to change the color of a layer for each iteration in the column? So the first page would be red, the second yellow, the third blue, etc.

Short. No! There is no way with data merge to define page/layer colors within the data merge database file.

MAC mini M4 | MacOS Sequoia 15.5 | 16 GB RAM | 256 GB SSD 
AMD Ryzen 7 5700X | Sapphire Nitro+ RX 9060 XT 16 GB  | 32 GB DDR4 3200MHz | Windows 11 Pro 24H2 (26100.4061)

Windows 11 Pro on VMWare Virtual Machine (on Mac)
Affinity Suite V 2.6.3 & Beta 2.6 (latest)
Interested in a free (selfhosted) PDF Solution? Have a look at Stirling PDF

No backup, no pity.

  • 9 months later...

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.

Guest
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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.