<div dir="auto">Thanks!<div dir="auto">That should get me where I need to be.  The files are sized already. You've given me 99% of what I need and I should be able to tinker out the custom bits.</div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Meaux</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2020, 9:18 AM Gregory Pittman <<a href="mailto:gpittman@iglou.com">gpittman@iglou.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/3/20 2:47 AM, Meaux Mazey wrote:<br>
> I'm new to email list servers. I'm not seeing my post on the archive. Do I<br>
> need to resend?<br>
> <br>
> <br>
> On Sat, Jul 25, 2020 at 5:59 PM Meaux Mazey <<a href="mailto:meauxmazey@gmail.com" target="_blank" rel="noreferrer">meauxmazey@gmail.com</a>> wrote:<br>
> <br>
>> Hello world,<br>
>> I was looking for a script to batch load svg files into a scribus document.<br>
>> I found a thread from 2015 that gave the function placeSVG (filename, x,y)<br>
>> one function is not a script.<br>
>> Is there a batch script written?<br>
>><br>
<br>
Hi Meaux,<br>
<br>
I don't know what happened, but the message never showed up on the 25th.<br>
<br>
As far as your question, I think that importing SVGs has a lot of considerations that are hard to generalize, since the placeSVG() command just places the SVG without regard to its size.<br>
Here is a very small script that just places a chosen SVG at 100, 100 (I use points units). <br>
<br>
********<br>
#!/usr/bin/env python<br>
<br>
# File: impsvg.py<br>
# Imports SVG to document to current page<br>
<br>
import scribus<br>
import os<br>
<br>
mySVG = scribus.fileDialog('Select an SVG','SVG files (*.svg)')<br>
scribus.placeSVG(mySVG,100,100)<br>
<br>
********<br>
<br>
If you had a number of SVGs in a directory you could put in a command to select a directory, like<br>
<br>
svgdir = scribus.fileDialog('Select SVG Directory','Directories',isdir=True)<br>
d = os.listdir(svgdir)<br>
D = []<br>
for file in d:<br>
    if file.endswith('.svg') or file.endswith('.SVG'):<br>
         D.append(file)<br>
<br>
After this, you would have to have some scheme of where the SVGs would be placed, and go through your list D to place them.<br>
This is something like the script I wrote from creating an album of images, though there I had a much wider range to image types to consider, but this used a fixed layout:<br>
<br>
<a href="https://wiki.scribus.net/canvas/Automatic_import_of_images:_Versions_not_requiring_Tkinter" rel="noreferrer noreferrer" target="_blank">https://wiki.scribus.net/canvas/Automatic_import_of_images:_Versions_not_requiring_Tkinter</a><br>
<br>
Hopefully that's enough to get you started.<br>
<br>
Greg<br>
<br>
___<br>
Scribus Mailing List: <a href="mailto:scribus@lists.scribus.net" target="_blank" rel="noreferrer">scribus@lists.scribus.net</a><br>
Edit your options or unsubscribe:<br>
<a href="http://lists.scribus.net/mailman/listinfo/scribus" rel="noreferrer noreferrer" target="_blank">http://lists.scribus.net/mailman/listinfo/scribus</a><br>
See also:<br>
<a href="http://wiki.scribus.net" rel="noreferrer noreferrer" target="_blank">http://wiki.scribus.net</a><br>
<a href="http://forums.scribus.net" rel="noreferrer noreferrer" target="_blank">http://forums.scribus.net</a><br>
</blockquote></div>