Recent posts

#1
Layout Issues / Re: Copy Size of Object
Last post by hibert42 - Today at 07:50:18 PM
Yeah I already started ;)
It is a good exercise.

Currently I already can set any frame to the pages size but also to any percentage of the pages size and you can choose if you want width, height or both :)

But i won't stop there.
Going to include the following featurs to make a "Frame Tool" Script.
1. Set size not just to that of Pages, but also other objects via "last selected" or "first selected" method.
2. Set Size of multiple frames
3. Also respositioning, the same as in the alignment tool panel, but here you can just resize and align at the time
4. Also including the Align Image inside Frame from the built-in Script
5. Adding Resize Image inside Frame functionality too ...
#2
Scripts and Plugins / Re: No itemDialog?
Last post by a.l.e - Today at 06:26:06 PM
itemDialog() has only been added to the API very recently (last week...)

i guess that the last time i've generated the documentation, i was in the branch that i did use to create the scripter function...

if you're brave enough (and need that function), you can now download the community managed nightly build from gitlab:

https://gitlab.com/scribus/scribus/-/jobs/artifacts/master/raw/Scribus-nightly-x86_64.AppImage?job=appimage%3Alinux

it should be in there.

you get even less warranty than with the official scribus : - )
#3
Layout Issues / Re: Copy Size of Object
Last post by a.l.e - Today at 06:17:04 PM
since you seem to be comfortable with scripting, you can write scripts for these tasks.

but for the two examples you're mentioning there are also other solutions.

For example 1 you can:

  • if you have not created the text frame yet, copy paste the image frame (sadly, duplicate does not duplicate in place: i've lost that battle) and convert the newly created item into a text frame (it's in the context menu, in the item menu, and can be triggered with the action search). they will have the same size
  • or you can activate the "item snapping" and make both items of the same width
  • or you can use the property palette and copy paste the width of one item into the other one
  • or use guides to define the width of your elements and resize both items to it

which one fits better, depends on your habits and on the specific use case.

concerning example 2:

  • if the page is what is inside of the margins, you can simply activate the image tool and shift click inside of the page (works only if you have not defined any guide).
  • if you want it to be of the size of the page, you can set the width of the image to "pagewidth" and its eight to "pageheight" (yes, those are two variables that are recognized by the measurement fields; you can even do calculations with them like "pageheight + 2 + 1cm")
  • you can also simply activate the snapping to guides and use the mouse to snap the frame to the page.

this having been said, in most cases, you don't want to set the size of the image to the exact size of the page but want to fill the bleed area with it: scribus will also snap to it, if you have defined one. (and if you have 1cm bleed, you can set the position to "-1cm" and then set the width to "pagewidth+2cm")
#4
General Discussion / Re: version confusion
Last post by a.l.e - Today at 06:02:30 PM
well, you're saying it yourself : - )

  • 1.6 is a stable version
  • 1.7 is a development version

1.7 is  mostly usable but has some experimental features.
sometimes, something breaks, but important errors tend to be fixed very fast (overnight; we had three examples in the last couple of weeks... after months without any breakages).

depending on your habits and needs, the development version might have features that make it much more comfortable to use.

development "releases" are ok to use:
  • if you make sure that all the features you need for the current project are working well enough for you
  • are ok with the next release being slightly different.

using the current 1.7 code is (IMHO) only ok:

  • if you can compile scribus and keep it up to date or
  • if you are using the "nightly" appimage on linux or
  • if you're using it only for testing purposes and not for production

concerning the API:

  • my documentation page (the impagina.org one) is indeed based on 1.7
  • is currently a bit outdated (i'm working on a new script that exports it... the first rework did fail miserably)
  • in scribus itself, if you press F1, you get also an API documentation for the stable version (basically, it should match the version that you have installed)
#5
Scripts and Plugins / Re: No itemDialog?
Last post by hibert42 - Today at 04:29:16 PM
Ok, I just downloaded the 1.7.0 Version of scribus (which looks amazing btw.)
but it gives me the same error...

scribus has no attribute "itemDialog" .... why is it in the api when it is not in scribus.
The API says, it was generated from scribus 1.7 ...

Or am I doing something wrong here?
#6
General Discussion / version confusion
Last post by hibert42 - Today at 04:09:53 PM
Hey,
since I am trying to get into scribus scripting due to a more frequent use of this fine peace of software, I am confused about the current version.

scribus.net says that 1.6.x is the current stable version, but here: https://wiki.scribus.net/canvas/1.7.0_Release

it is said, that scribus 1.7 got released.

scribus.net download page lists the 1.7 as development version...

so.. what now?

Is it reccomended to use the 1.7 ?
Is this regarded an experimental release?

I would like to use it and to develope some scripts for it, since the API seems to be the 1.7 and seems to include all kind of cool stuff. But would not like to encounter frequent crashes and all...

#7
Scripts and Plugins / No itemDialog?
Last post by hibert42 - Today at 04:02:58 PM
Hey, I tried to add a itemDialog into a Script, as it is described in the API Documentation here:
https://impagina.org/scribus-scripter-api/dialog/

Well... is is not working. The Errors Message says:
module scribus has no attribute itemDialog

The Line of code in my script currently looks like this:
position = scribus.itemDialog('title', 'text in the window', ['apples', 'pears', 'raisins'])
I am using Scribus 1.6.2

is this only available in the comming 1.7 ?
#8
Layout Issues / Copy Size of Object
Last post by hibert42 - Today at 03:14:45 PM
Hey,
I am looking for a solution to set the size of an object to that of another.

Example 1:
I have a Text Frame and want it to have the same width as a ceatain Image Frame,
but only the width. Intuitively, I am looking for something like:
copy width from

I know, I can copy the width value and paste it to the Textframe. But maybe there is a script or even a built-in function that already does that.

Example 2:
I want an Image Frame to have the width and height of my page.

And so on and on...

Thanks in advance
#9
User Interface / Re: Font list
Last post by a.l.e - Today at 10:41:14 AM
Very recently, Nitramr fixed a bug related to the fonts list display:

https://bugs.scribus.net/view.php?id=17514
#10
User Interface / Re: Font list
Last post by AdmFubar - Today at 05:34:35 AM