Thank you Christoph for your advice, is there any way I can understand the graphics mode now. For my graphics I am unseeing a system that is avaluble for animation and all of it is vector. However it's output are bitmaps so I am limited in it's quality. My graphics so fare as that way of working has been O.K. but if anything of that becomes a good production then I couldn't produce larger graphics. <br>
<br>I understand some of the vector point system but never got much good work with Inkscape.<br><br>Thank you<br><br>Wena<br>
<blockquote>
----Original Message----<br>From: scribus-request@lists.scribus.net<br>Date: 05/06/2015 13:00 <br>To: <scribus@lists.scribus.net><br>Subj: scribus Digest, Vol 87, Issue 10<br><br>Send scribus mailing list submissions to<br> scribus@lists.scribus.net<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://lists.scribus.net/mailman/listinfo/scribus<br>or, via email, send a message with subject or body 'help' to<br> scribus-request@lists.scribus.net<br><br>You can reach the person managing the list at<br> scribus-owner@lists.scribus.net<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of scribus digest..."<br><br><br>Today's Topics:<br><br> 1. Python scripter - scribus.setFont() and<br> scribus.setTextAlignment() ? -- Solution (Gregory Pittman)<br> 2. Re: Python scripter - scribus.setFont() and<br> scribus.setTextAlignment() ? -- Solution (William Bader)<br> 3. Re: Graphics instructions? (Christoph Sch?fer)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 04 Jun 2015 21:52:32 -0400<br>From: Gregory Pittman <gpittman@iglou.com><br>To: Scribus User Mailing List <scribus@lists.scribus.net><br>Subject: [scribus] Python scripter - scribus.setFont() and<br> scribus.setTextAlignment() ? -- Solution<br>Message-ID: <557100E0.3090903@iglou.com><br>Content-Type: text/plain; charset=utf-8<br><br>I somehow lost this email from my client, but here it is copied from the<br>Archives:<br>*************************<br>I am trying to run the following (very simple) script:<br><br>#!/usr/bin/env python<br># -*- coding: utf-8 -*-<br><br>import sys<br>try:<br> import scribus<br><br>except ImportError:<br> print "This script only works from within Scribus"<br> sys.exit(1)<br><br>n = scribus.selectionCount()<br><br>for count in range(0,n):<br> textbox = scribus.getSelectedObject(count)<br> scribus.messageBox('Error:', textbox);<br> scribus.setFont('Arial Regular', textbox)<br> scribus.setTextAlignment(scribus.ALIGN_CENTERED, textbox)<br> scribus.setTextColor("White", textbox)<br> scribus.setFillColor("Red", textbox)<br><br><br>However it fails after one iteration. The error message is:<br><br>Traceback (most recent call last):<br> File "<string>", line 8, in <module><br> File "/home/.../SetTableHeading.py", line 17, in <module><br> scribus.setFont('Arial Regular', textbox)<br>NoValidObjectError: Cannot use empty string for object name when there is<br>no selection<br><br>If I remove the function calls scribus.setFont() and<br>scribus.setTextAlignment(), the script runs fine, but I dont know why...<br><br>I am running Scribus 1.4.3 and python 2.7.6 under Ubuntu 14.04.2 LTS.<br><br>I am not able to find any solution to this - any suggestions?<br><br>regards,<br>Anders<br><br>*****************************<br><br>I'm not quite sure why this doesn't work, but I am able to accomplish<br>what you're looking for (I think) with a modified syntax. Basically,<br>instead of relying on the count of the selection, I create a list of<br>frame names, then feed that list into your text manipulations...<br><br>*************<br>#!/usr/bin/env python<br># -*- coding: utf-8 -*-<br><br>import sys<br>try:<br> import scribus<br><br>except ImportError:<br> print "This script only works from within Scribus"<br> sys.exit(1)<br><br>n = scribus.selectionCount()<br>boxes = []<br><br>for x in range(n):<br> frame = scribus.getSelectedObject(x)<br> boxes.append(frame)<br><br>for textbox in boxes:<br> scribus.messageBox('Error:', textbox);<br> scribus.setFont('Arial Regular', textbox)<br> scribus.setTextAlignment(scribus.ALIGN_CENTERED, textbox)<br> scribus.setTextColor("White", textbox)<br> scribus.setFillColor("Red", textbox)<br><br>*************<br><br>Greg<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 4 Jun 2015 22:38:12 -0400<br>From: William Bader <williambader@hotmail.com><br>To: Scribus User Mailing List <scribus@lists.scribus.net><br>Subject: Re: [scribus] Python scripter - scribus.setFont() and<br> scribus.setTextAlignment() ? -- Solution<br>Message-ID: <BLU179-W66101AD79FE0454AAB7525C4B20@phx.gbl><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br><br>> Date: Thu, 4 Jun 2015 21:52:32 -0400<br>> From: gpittman@iglou.com<br>> To: scribus@lists.scribus.net<br>> Subject: [scribus] Python scripter - scribus.setFont() and scribus.setTextAlignment() ? -- Solution<br>> <br>> I somehow lost this email from my client, but here it is copied from the<br>> Archives:<br>> *************************<br>> I am trying to run the following (very simple) script:<br>> <br>> #!/usr/bin/env python<br>> # -*- coding: utf-8 -*-<br>> <br>> import sys<br>> try:<br>> import scribus<br>> <br>> except ImportError:<br>> print "This script only works from within Scribus"<br>> sys.exit(1)<br>> <br>> n = scribus.selectionCount()<br>> <br>> for count in range(0,n):<br>> textbox = scribus.getSelectedObject(count)<br>> scribus.messageBox('Error:', textbox);<br>> scribus.setFont('Arial Regular', textbox)<br>> scribus.setTextAlignment(scribus.ALIGN_CENTERED, textbox)<br>> scribus.setTextColor("White", textbox)<br>> scribus.setFillColor("Red", textbox)<br>> <br>> <br>> However it fails after one iteration. The error message is:<br>> <br>> Traceback (most recent call last):<br>> File "<string>", line 8, in <module><br>> File "/home/.../SetTableHeading.py", line 17, in <module><br>> scribus.setFont('Arial Regular', textbox)<br>> NoValidObjectError: Cannot use empty string for object name when there is<br>> no selection<br>> <br>> If I remove the function calls scribus.setFont() and<br>> scribus.setTextAlignment(), the script runs fine, but I dont know why...<br><br>Arial is a Windows font, and some Linux systems do not have it.<br>I have the code below in one of my test scripts.<br> try:<br> scribus.setFont("Arial Regular", txt)<br> except:<br> try:<br> scribus.setFont("FreeSans Medium", txt)<br> except:<br> pass<br>Regards,William<br><br> <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.scribus.net/pipermail/scribus/attachments/20150604/92893c02/attachment.html><br><br><br>------------------------------<br><br>Message: 3<br>Date: Fri, 5 Jun 2015 07:18:14 +0200<br>From: "Christoph Sch?fer" <christoph-schaefer@gmx.de><br>To: scribus@lists.scribus.net<br>Subject: Re: [scribus] Graphics instructions?<br>Message-ID:<br> <trinity-b41f5b13-054b-4a0b-902c-bd3d6d1b621a-1433481494572@3capp-gmx-bs41><br> <br>Content-Type: text/plain; charset=UTF-8<br><br><br><br>> Gesendet: Mittwoch, 03. Juni 2015 um 18:57 Uhr<br>> Von: "wena-parry@talktalk.net" <wena-parry@talktalk.net><br>> An: scribus@lists.scribus.net<br>> Betreff: [scribus] Graphics instructions?<br>><br>> <br>> <br>> <br>> I had read on hear, I think of a book on Graphics with Scribus, <br>> If so is it been updated for v1.5??<br>> Wena D.Parry<br><br>Hi Wena,<br><br>We didn't publish an official manual for the 1.4.x series because life and the catastrophies it can entail prevented us from doing so. Since Scribus 1.5.0 is the equivalent of an alpha or beta release, we certainly won't publish a book on it. When we get close to the 1.6.0 release we will have to update the online manual, which is a huge undertaking in itself, given the countless changes and new features. Once that's finished, we may contemplate to work on a printed "official manual" again.<br><br>HTH,<br><br>Christoph<br><br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>scribus mailing list<br>scribus@lists.scribus.net<br>http://lists.scribus.net/mailman/listinfo/scribus<br><br><br>------------------------------<br><br>End of scribus Digest, Vol 87, Issue 10<br>***************************************<br><br></blockquote><br>