

This script is now included with versions 1.4.7svn and 1.5.3svn as Caption.py.Ĭreates a text frame (caption) in selected location relative toĬaptionloc = scribus.valueDialog("Caption Location","Where to put the caption(s) -\n B/T/R/L?", "b") If you enter something other than b/t/r/l it shouldn't do anything.

Here is one more script which incorporates all the above options, by allowing you to choose position in a dialog. ssageBox('Selection Count', "You must have at least one image frame selected",įrames.append(scribus.getSelectedObject(count)) Print "the Python interpreter embedded in Scribus. Print "Unable to import the 'scribus' module. One thing to notice is that the scripts do not check for object type, so you can create "captions" for any object, such as shapes, text frames, render frames, vector graphics, or even groups of objects (make sure you actually group them, since if you just select a number of objects, each one will get its own caption).Ĭreates a text frame (caption) to the left of one or more selected frames. In usage, this would be a situation where you could save time be creating a caption Paragraph Style for the caption frames.

Your page units don't matter, since the script converts to points and uses points, then switches back again. The sizes and positions of frames can be changed according to your needs, and like any frame, can be edited afterward.
SCRIBUS LINK TEXT FRAMES HOW TO
I tend to prefer simple scripts, with little or no input needed, which is why I made individual scripts for each position, but at the bottom, I'll show how to create one script which needs input to state which position to place the caption. You can either do frames one-by-one, or select a number of frames as long as you want the captions in the same position relative to the image. Here is a series of scripts which accomplish the simple task of creating a caption frame for images. This article is part of the Scripts series.
