<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><br></div><div>This is why I chose not to paste it!<br></div><div><br></div><div>-u<br></div><div><br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Mon, 16 Jul 2018 18:56:13 +0000 <b>ugajin <ugajin@zoho.com></b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div>Here is the script that I first sent as an attachment... The script makes it easy to snap/align objects to the baseline grid, a feature which [perhaps for good reason] is not included natively in Scribus. -u #!/usr/bin/env python # -*- coding: utf-8 -*- # The script generates a grid and matching guides. # Set the baseline grid spacing and offset values # Useful to snap/align objects to a baseline grid. # Written using v1.5.4 # Not suitable for v1.4.7 # Author: <a target="_blank" href="mailto:ugajin@zoho.com">ugajin@zoho.com</a> # Date: October 8, 2017 import sys try: import scribus except ImportError,err: print "This Python script is written for the Scribus scripting interface." print "It can only be run from within Scribus." sys.exit(1) import math def main(argv): """A simple scripts to set baseline grid and matching guides.""" CurrentUnit = scribus.getUnit() scribus.setUnit(0) H_Guides = [] GuideHeight = float(scribus.valueDialog('Set BaseLine Grid & Guides', 'Enter value for Grid and Guide Height (pt).', '14.40') ) GuideOffset = float(scribus.valueDialog('Set Grid & Guide Offsets', 'Enter value for Grid and Guide Offset (pt).', '0.0') ) PageWidth, PageHeight = scribus.getPageSize() NumLoops = math.floor(1 + (PageHeight - GuideOffset) / GuideHeight) for i in range(int(NumLoops)): if i > 0: H_Guides.append(GuideOffset + i * GuideHeight) scribus.setBaseLine(GuideHeight, GuideOffset) scribus.setHGuides(scribus.getHGuides() + H_Guides) scribus.setUnit(CurrentUnit) scribus.messageBox('Script', '<h3>Script by ugajin</h3><p>Thanks a bunch for using setBaselineGuides and Scribus!</p><p><a target="_blank" href="mailto:ugajin@zoho.com">ugajin@zoho.com</a></p>', scribus.ICON_INFORMATION, scribus.BUTTON_OK, scribus.BUTTON_CANCEL) def main_wrapper(argv): try: scribus.statusMessage("Running script...") scribus.progressReset() main(argv) finally: if scribus.haveDoc(): scribus.setRedraw(True) scribus.statusMessage("") scribus.progressReset() if __name__ == '__main__': main_wrapper(sys.argv)<br></div><div>-------------- next part --------------<br></div><div>An HTML attachment was scrubbed...<br></div><div>URL: <<a target="_blank" href="http://lists.scribus.net/pipermail/scribus/attachments/20180716/c0be40e8/attachment.html">http://lists.scribus.net/pipermail/scribus/attachments/20180716/c0be40e8/attachment.html</a>><br></div><div>___<br></div><div>Scribus Mailing List: <a target="_blank" href="mailto:scribus@lists.scribus.net">scribus@lists.scribus.net</a><br></div><div>Edit your options or unsubscribe:<br></div><div><a target="_blank" href="http://lists.scribus.net/mailman/listinfo/scribus">http://lists.scribus.net/mailman/listinfo/scribus</a><br></div><div>See also:<br></div><div><a target="_blank" href="http://wiki.scribus.net">http://wiki.scribus.net</a><br></div><div><a target="_blank" href="http://forums.scribus.net">http://forums.scribus.net</a><br></div></div></blockquote></div><div><br></div></div><br></body></html>