Scribusoid

Recent Posts

Pages: 1 ... 3 4 5 6 7 8 9 [10]
91
Scripts and Plugins / Change the height of the document
« Last post by digirew on September 15, 2020, 07:42:40 pm »
Hello,

Im trying to change the height of the document that is already opened via. a script.

is there an API for this? or how would I go about doing this?
92
Linux / Unable to start Scribus after an update
« Last post by Archibaldix on September 15, 2020, 06:16:44 pm »
Dear all,
Has anyone ever had the following problem:
After updating my system, I cannot launch Scribus.
I uninstalled it then reinstalled it 5 times : it doesn't work.
When I run the program the result is: nothing opens, not even a welcome image ...
I have searched on lots of places I can not find any solution...

I notice there is maybe something related with a bad font ? I did not venture in that direction, not knowing how to do it.

I also don't know which command line I have to indicate here to be able to find a help.
I run Linux Mint 19.2 Tina on a MacBook Pro i7 Mid-2010.

In advance Thank you very much for any help
A.
93
General Discussion / Re: How to replace all frames in a page with another one
« Last post by Pumpkin on September 14, 2020, 07:43:46 pm »
yes, you probably need scribus 1.5.5 or 1.5.6svn for pasteObject().

1.5 versions are mostly compatible with each other.

but you cannot edit with scribus 1.4 documents that you have modified with scribus 1.5...



It worked perfectly! Thank you so much!!!
94
Beginner Talk / Re: How do I find the transparent element?
« Last post by utnik on September 14, 2020, 07:00:45 pm »
…a png with transparent background will still be transparent.

yes, but technically spoken, this isn't a transparency any more. the partly transparent areas of the .png file will be cut somewhere around 10% opacity (with a sharp edge between full opacity and full transparency) – the .pdf file will really be flat.

utnik
95
Scripts and Plugins / Re: Shrink textframe to amount of text?
« Last post by a.l.e on September 14, 2020, 06:51:14 pm »
yes you can do this with a script and there might be a script around that those it.

i could not find it in my collection, but you can have a look at this script

https://github.com/aoloe/scribus-script-collection/blob/master/text-vertical-align/text-vertical-align.py

and find out how to do it...

ciao
a.l.e
96
General Discussion / Re: How to replace all frames in a page with another one
« Last post by a.l.e on September 14, 2020, 06:48:58 pm »
yes, you probably need scribus 1.5.5 or 1.5.6svn for pasteObject().

1.5 versions are mostly compatible with each other.

but you cannot edit with scribus 1.4 documents that you have modified with scribus 1.5...
97
Scripts and Plugins / Re: Shrink textframe to amount of text?
« Last post by digirew on September 14, 2020, 06:44:40 pm »
Thanks,

However is it possible to do this via. script? and not the application (GUI) itself?


Andrew
98
General Discussion / Re: How to replace all frames in a page with another one
« Last post by Pumpkin on September 14, 2020, 06:39:21 pm »
this script does what you want:

- copy the new item
- select all the old items
- run the script

Code: [Select]
items = []
for i in range(n):
    items.append(scribus.getSelectedObject(i))

for item in items:
    pos = scribus.getPosition(item)
    dx, dy = pos
    scribus.pasteObject()
    new_item = scribus.getSelectedObject()
    pos = scribus.getPosition(new_item)
    dx, dy = dx - pos[0], dy - pos[1]
    scribus.moveObject(dx, dy, new_item)
    scribus.deleteObject(item)

here is a downloadable version of a full script:

https://raw.githubusercontent.com/aoloe/scribus-script-collection/master/replace-all-selected-items.py/replace-all-selected-items.py




Hi a.l.e, I tried run the script the way you said, and there is an error message said 'module' object has no attribute 'pastObject'. Do you have any idea what could be the reason?
Thank you!
99
General Discussion / Re: How to replace all frames in a page with another one
« Last post by Pumpkin on September 14, 2020, 05:16:05 pm »
Thank you so much! I'm new to Scribus and have never thought of using scripts to do anything. I need to take a look at how to use it but thank you so much for the script!
100
Beginner Talk / Re: How do I find the transparent element?
« Last post by a.l.e on September 14, 2020, 03:24:52 pm »
ok, i did a quick test:

- a shape with opacity < 100 % wills show up with 100% opacity
- a gradient with a transparent part will show up as full black (probably the other color)
- a png with transparent background will still be transparent.

... so you seem to be mostly right!
Pages: 1 ... 3 4 5 6 7 8 9 [10]
palmate