scripter:start
Scripter
Dieser Bereich beschäftigt sich mit Scribus’ Scripter, der auf Python basiert und es ermöglicht, Abläufe in Scribus zu automatisieren. Dabei können Scripte ab Version 1.5.1 auch direkt von der Kommandozeile durch Scribus verarbeitet werden (praktisch für Stapel-Verarbeitung).
- API-Dokumentation
Liste aller Konstanten und Funktionen
Diese wurde mit folgendem, auf der Konsole (Script > Konsole zeigen) ausgeführtem Script in Scribus 1.4.6 (teilweise Ergänzungen zu neueren Versionen) ermittelt:
import scribus dir(scribus)
- %
- ALIGN_BLOCK
- ALIGN_CENTERED
- ALIGN_FORCED
- ALIGN_LEFT
- ALIGN_RIGHT
- BUTTON_ABORT
- BUTTON_CANCEL
- BUTTON_IGNORE
- BUTTON_NO
- BUTTON_NONE
- BUTTON_OK
- BUTTON_RETRY
- BUTTON_YES
- CAP_FLAT
- CAP_ROUND
- CAP_SQUARE
- COLOR
- COLOR_BURN
- COLOR_DODGE
- DARKEN
- DIFFERENCE
- EXCLUSION
- FACINGPAGES
- FILL_CROSSDIAGONALG
- FILL_DIAGONALG
- FILL_HORIZONTALG
- FILL_NOG
- FILL_RADIALG
- FILL_VERTICALG
- FIRSTPAGELEFT
- FIRSTPAGERIGHT
- HARD_LIGHT
- HUE
- ICON_CRITICAL
- ICON_INFORMATION
- ICON_NONE
- ICON_WARNING
- ImageExport
- JOIN_BEVEL
- JOIN_MITTER
- JOIN_ROUND
- LANDSCAPE
- LIGHTEN
- LINE_DASH
- LINE_DASHDOT
- LINE_DASHDOTDOT
- LINE_DOT
- LINE_SOLID
- LUMINOSITY
- MULTIPLY
- NOFACINGPAGES
- NORMAL
- NameExistsError
- NoDocOpenError
- NoValidObjectError
- NotFoundError
- OVERLAY
- PAGE_1
- PAGE_2
- PAGE_3
- PAGE_4
- PAPER_A0
- PAPER_A1
- PAPER_A2
- PAPER_A3
- PAPER_A4
- PAPER_A5
- PAPER_A6
- PAPER_A7
- PAPER_A8
- PAPER_A9
- PAPER_B0
- PAPER_B1
- PAPER_B10
- PAPER_B2
- PAPER_B3
- PAPER_B4
- PAPER_B5
- PAPER_B6
- PAPER_B7
- PAPER_B8
- PAPER_B9
- PAPER_C5E
- PAPER_COMM10E
- PAPER_DLE
- PAPER_EXECUTIVE
- PAPER_FOLIO
- PAPER_LEDGER
- PAPER_LEGAL
- PAPER_LETTER
- PAPER_TABLOID
- PDFfile
- PORTRAIT
- Printer
- SATURATION
- SCREEN
- SOFT_LIGHT
- ScribusException
- UNIT_C
- UNIT_CENTIMETRES
- UNIT_CICERO
- UNIT_CM
- UNIT_IN
- UNIT_INCHES
- UNIT_MILLIMETERS
- UNIT_MM
- UNIT_P
- UNIT_PICAS
- UNIT_POINTS
- UNIT_PT
- WrongFrameTypeError
- __builtin__
- __doc__
- __name__
- __package__
- _bu
- _ia
- applyMasterPage (ab 1.4.5)
- c
- changeColor
- closeMasterPage
- cm
- createBezierLine
- createEllipse
- createImage
- createLayer
- createLine
- createMasterPage
- createPathText
- createPolyLine
- createPolygon
- createRect
- createText
- currentPage
- defineColor
- dehyphenateText
- deleteColor
- deleteLayer
- deleteMasterPage
- deleteObject
- deletePage
- deleteText
- deselectAll
- duplicateObject
- editMasterPage
- exceptions
- fileDialog
- fileQuit
- getActiveLayer
- getAllObjects
- getColor
- getColorAsRGB
- getColorNames
- getColumnGap
- getColumns
- getCornerRadius
- getFillBlendmode
- getFillColor
- getFillShade
- getFillTransparency
- getFont
- getFontNames
- getFontSize
- getGuiLanguage
- getHGuides
- getImageFile
- getImageScale
- getLayerBlendmode
- getLayerTransparency
- getLayers
- getLineBlendmode
- getLineCap
- getLineColor
- getLineJoin
- getLineShade
- getLineSpacing
- getLineStyle
- getLineTransparency
- getLineWidth
- getObjectType
- getPageItems
- getPageMargins
- getPageNMargins
- getPageNSize
- getPageSize
- getPageType
- getPosition
- getProperty
- getPropertyCType
- getPropertyNames
- getRotation
- getSelectedObject
- getSize
- getTextColor
- getTextDistances
- getTextLength
- getTextLines
- getTextShade
- getVGuides
- getXFontNames
- getval
- gotoPage
- groupObjects
- hyphenateText
- importPage
- inch
- insertText
- isLayerFlow
- isLayerLocked
- isLayerOutlined
- isLayerPrintable
- isLayerVisible
- isLocked
- isPDFBookmark
- isSpotColor
- linkTextFrames
- loadImage
- lockObject
- mainWindow
- messageBox
- messagebarText
- mm
- moveObject
- moveObjectAbs
- moveSelectionToBack
- moveSelectionToFront
- newDocDialog
- newDocument
- newPage
- newStyleDialog
- objectExists
- p
- pageCount
- pageDimension
- placeEPS
- placeODG
- placeSVG
- placeSXD
- progressReset
- progressSet
- progressTotal
- pt
- qApp
- redrawAll
- renderFont
- replaceColor
- retval
- rotateObject
- rotateObjectAbs
- savePageAsEPS
- scaleGroup
- scaleImage
- scribus_version
- scribus_version_info
- scrollDocument
- selectObject
- selectText
- selectionCount
- sentToLayer
- setActiveLayer
- setCharacterStyle (ab 1.5.4)
- setColumnGap
- setColumns
- setCornerRadius
- setCursor
- setFillBlendmode
- setFillColor
- setFillShade
- setFillTransparency
- setFontSize
- setGradientFill
- setGradientStop
- setHGuides
- setImageOffset
- setImageScale
- setLayerBlendmode
- setLayerFlow
- setLayerLocked
- setLayerOutlined
- setLayerPrintable
- setLayerTransparency
- setLayerVisible
- setLineBlendmode
- setLineCap
- setLineColor
- setLineJoin
- setLineShade
- setLineSpacing
- setLineStyle
- setLineTransparency
- setLineWidth
- setMultiLine
- setNewName
- setPDFBookmark
- setProperty
- setRedraw
- setScaleImageToFrame
- setSpotColor
- setText
- setTextAlignment
- setTextColor
- setTextDistances
- setTextScalingH
- setTextScalingV
- setTextShade
- setTextStroke
- setVGuides
- sizeObject
- statusMessage
- textFlowMode
- textOverflows
- traceText
- unGroupObject
- unlinkTextFrames
- valueDialog
- warnings
- zoomDocument
- \xb0
scripter/start.txt · Zuletzt geändert: 2018/05/07 02:58 von julius