Danovh Posted December 16, 2013 Share Posted December 16, 2013 I looking for a rule that will suppress a field if copy fit can't fit all the text. Hope someone can help. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted December 17, 2013 Share Posted December 17, 2013 Are you using full-flow copyfitting, by checking the "Adjust text to fit" box on the Overflow Options dialog? If so, you can edit the OnCopyfit rule like so, adding the text in green: if (!Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72))) [color=SeaGreen]{[/color] ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); [color=SeaGreen]FusionPro.Composition.CurrentFlow.content = ""; }[/color] Quote Link to comment Share on other sites More sharing options...
Danovh Posted December 17, 2013 Author Share Posted December 17, 2013 Thanks Dan, but that didn't do the trick for me, what is that added text actually doing? What I did was change the 6 to a 4 in the copy fit rule like so if (!Copyfit(new MagnifyAttributes("text", 25, 400, 4, 72))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); Thanks again Dan, I appreciate the help. Quote Link to comment Share on other sites More sharing options...
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.