marcusm Posted September 29, 2010 Share Posted September 29, 2010 How do I apply copyfitrule to seperate variable textfields? I have one heading that have to have copyfit with special numbers to work correctly in the Copyfit rule. Then I have a Copyfit rule on producttext that have to have special numbers in the copyfit rule to work. This must be an easy rule to get this to work? Link to comment Share on other sites More sharing options...
Dan Korn Posted September 30, 2010 Share Posted September 30, 2010 Are you talking about full-flow copyfitting with the Overflow Options dialog and the OnCopyfit rule? If so, you can name each frame (flow) and apply different copyfitting parameters based on the frame name in the OnCopyfit rule, as described in the section titled, "I want different copyfitting values for different frames" in the FusionPro Rules System Guide. For example: if (FusionPro.Composition.CurrentFlow.name == "name1") { if (!Copyfit(new MagnifyAttributes("text", 50, 200, 10, 36))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); } else if (FusionPro.Composition.CurrentFlow.name == "name2") { if (!Copyfit(new MagnifyAttributes("leading", 25, 400, 10, 100))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); } else { // default copyfitting if (!Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72))) ReportWarning("Could not copyfit text in flow " + FusionPro.Composition.CurrentFlow.name); } Or are you talking about CopyfitLine or a similar per-line copyfitting function? Link to comment Share on other sites More sharing options...
marcusm Posted September 30, 2010 Author Share Posted September 30, 2010 Hi Dan! This was what I was looking for. I have also grabbed the Rules System Guide to get more info about how it's working. Many thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.