Halfling Caravan Games Posted February 6 Posted February 6 I'm working on a game project, and am data merge generating cards. I'm looking to see if there is a way for find-replace to find empty text frames so I can then delete the frames or hide them. I would love it to be fully automated, but I doubt that is possible. Example: To get the text box effect there to work as I want, I'm using a text layer with a background fill decoration containing datamerge fields acting as a mask (e.g. as the text lengthens, the paragraph lengthens, which causes the mask to extend up and reveal more of the gradient rectangle underneath). However, a good number of these cards have empty fields, and rather than putting nothing in the field, it creates an empty line which then extends up the box. If you have one line of text, you get the same mask height. What I am hoping is that I can find all of these empty text frames, and then delete them or hide them as a bulk action. Quote
Staff NathanC Posted February 7 Staff Posted February 7 Hi @Halfling Caravan Games, Hopefully I'm wrong but I as far as I can tell this isn't something that can be automated. I've not identified a way to select empty frame content via the FaR panel (maybe Regex?), but even if there is this would select/edit the text content of the layer rather than the layer itself, meaning you'd still need to manually select the text frame layers per page and delete them. Halfling Caravan Games 1 Quote
carl123 Posted February 7 Posted February 7 14 hours ago, Halfling Caravan Games said: I'm looking to see if there is a way for find-replace to find empty text frames so I can then delete the frames or hide them. There would need to be something unique about those empty text frames (e.g. Length) compared to those with text in them Without the document it may be hard to discoverer a way to do this Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Halfling Caravan Games Posted February 7 Author Posted February 7 1 minute ago, carl123 said: There would need to be something unique about those empty text frames (e.g. Length) compared to those with text in them Without the document it may be hard to discoverer a way to do this They are totally empty. The only 'character' in them is the 'section' character, and nothing else. So even with it there, the paragraph style will still force the empty text box to adjust the mask. (Screen grab below) Quote
thomaso Posted February 7 Posted February 7 7 minutes ago, NathanC said: I've not identified a way to select empty frame content via the FaR panel (maybe Regex?), As V1 user I am not experienced with the new V2 selection options but your search idea (FaR) makes me wonder if "Select Same Name" would identify empty Text Frame objects by their default layer name "(Frame Text)" whereas frames with content get their first letters as layer name. Quote To select all layers sharing the same name: With a layer selected, on the Layers panel, -click and choose Select Same Name from the pop-up menu. https://affinity.help/publisher2/English.lproj/index.html?page=pages/Layers/selectEditLayers.html&title=Selecting and editing layers Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
carl123 Posted February 7 Posted February 7 4 minutes ago, thomaso said: makes me wonder if "Select Same Name" would identify empty Text Frame objects by their default layer name "(Frame Text)" No, default names are not selectable by select same It would still be useful to see a sample of the document with at least 2 empty frames and 2 with text, all generated by the data merge thomaso 1 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Halfling Caravan Games Posted February 7 Author Posted February 7 7 minutes ago, thomaso said: As V1 user I am not experienced with the new V2 selection options but your search idea (FaR) makes me wonder if "Select Same Name" would identify empty Text Frame objects by their default layer name "(Frame Text)" whereas frames with content get their first letters as layer name. https://affinity.help/publisher2/English.lproj/index.html?page=pages/Layers/selectEditLayers.html&title=Selecting and editing layers I would probably end up having to rebuild the frames, because I am pretty sure they're all named rather than 'unnamed'. Quote
Halfling Caravan Games Posted February 7 Author Posted February 7 Just now, carl123 said: No, default names are not selectable by select same It would still be useful to see a sample of the document with at least 2 empty frames and 2 with text, all generated by the data merge The two examples above show the ones without text. Examples with text, and the layer setup. Quote
carl123 Posted February 7 Posted February 7 Select one of the empty text frames in the layers panel Then do... Select > Select Same > Shape Does that select the empty text frames in your document? Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Halfling Caravan Games Posted February 7 Author Posted February 7 1 hour ago, carl123 said: Select one of the empty text frames in the layers panel Then do... Select > Select Same > Shape Does that select the empty text frames in your document? Only on any one page. Quote
carl123 Posted February 7 Posted February 7 It should select all empty text frames on any page Which in my text document it does zoom out to see what it is selecting on each page or hit the delete key immediately afterwards to see if it has deleted the empty text frames Trying to navigate to another page to check it can result in the selection resetting Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Halfling Caravan Games Posted February 9 Author Posted February 9 Looks like it worked, even though it really isn't obvious that it is selecting them across multiple pages (e.g. if you use the page-up-down buttons under the Page Ribbon). Quote
carl123 Posted February 10 Posted February 10 What I did not realise before is that if you have the Move Tool selected you can see how many empty text frames it found (and selected) immediately after you do the Select > Select Same > Shape command Halfling Caravan Games 1 Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Recommended Posts
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.