Florida_ssp Posted February 5, 2016 Share Posted February 5, 2016 Hi, I am pretty new to FP, and know very little coding. I have a project. On each page there are three numbers, sequential. Page two continues with the numbering. So, Page one has 4001, 4002, 4003. Page 2 has 4004, 4005, 4006 and so on. I've been creating an excel spreadsheet with three columns of the proper numbers. Works fine.. however.. is there a way to create a numbering rule for future use that skips every two numbers? Quote Link to comment Share on other sites More sharing options...
step Posted February 5, 2016 Share Posted February 5, 2016 If you're using FusionPro 8 or later, it's really easy. All you have to do is set a global variable in the OnJobStart callback rule to initialize the number. Like this: OnJobStart number = 400; // Edit this starting number if needed Then you create a text rule: return number++; Make sure "Re-evaluate this rule for every text flow" is checked. That's the most important step because that makes FusionPro run the rule for every text frame it's called in. So, every time the rule is called, it increments 'number' by 1. Your first text frame will show "401", the second will show "402" and so forth throughout the job. Quote Link to comment Share on other sites More sharing options...
Florida_ssp Posted February 8, 2016 Author Share Posted February 8, 2016 Worked perfectly! Thanks so much! Woot! 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.