Changelog¶
The priint:comet Python API is now considered stable. This changelog will be removed in the future. All changes are now part of the main changelogs:
Legacy version history
This section contains all changes made during the beta phase by version to the priint:comet Python API. Each release can contain two sections:
Compatible changes
These changes extend functionality or fix errors and can generally be considered compatible with existing project implementations.
There is usually no need to change existing code for these changes to take effect.
Incompatible changes:
These changes require changes to existing project implementations or will generally cause existing scripts to fail or behave differently.
These changes usually are fixes to severe errors or restructuring of the priint:comet Python API.
R33520
Compatible changes
- New functions:
R33466
Compatible changes
- Fixes:
Cannot add arguments to comet.placeholder.loadServer (TW #2685384)
R33000
Compatible changes
- New modules:
R32862
Compatible changes
- New functions:
R32762
Compatible changes
- New functions:
- Fixes:
frame placeholder actions always error out with syntax errors.
placeholder actions error out when function variables are used which only have default values.
wlog()
does not respect extened logging configuration.
R32735
Compatible changes
Global variables from the Settings panel are now supported.
- Fixes:
frame.createTextFrame()
parameter page is not considered default and must always be provided.frame.createTextFrame()
interprets page number wrongly.placeholder.getTagValue()
does not yield any valid result.CPageItem.getPage()
does not work for horizontal or vertical lines.
R32585
No changes
R32423
Compatible changes
Loading product pool entries is now supported. All environment variables for the context kContextProductPoolEntries are now implemented.
CFrame.setImage()
now has an additional options parameter for selecting PDF pages and cropboxes when inserting a PDF
Incompatible changes
placeholder.load()
changed parameter name applyRules to applyLayoutRulesCRect.moveTo()
changed default value of parameter refPoint fromcomet.kRefPointCenter
tocomet.kRefPointTopLeft
.CRect.adjust()
changed default value of parameter refPoint fromcomet.kRefPointCenter
tocomet.kRefPointTopLeft
.CRect.setWidth()
changed default value of parameter refPoint fromcomet.kRefPointCenter
tocomet.kRefPointTopLeft
.CRect.setHeight()
changed default value of parameter refPoint fromcomet.kRefPointCenter
tocomet.kRefPointTopLeft
.
R32286
Compatible changes
comet.runCScript()
now supportsCIDType
andlist
[CIDType
] as inputcomet.runCScript()
now supportsCProduct
andlist
[CProduct
] as inputcomet.setScriptClipboard()
now supportsCIDType
andlist
[CIDType
]comet.setScriptClipboard()
now supportsCProduct
andlist
[CProduct
]CTextModel.setLeading()
can now enable or disable automatic leading using the value parametercomet.setScriptClipboard()
now has a parameter to automatically delete entries once no more scripts are on the stack- Fixes:
CSwatch.redefine()
crashes when called more than once of the same swatch.
Incompatible changes
CSwatch.redefine()
parameter colors renamed to colorCSwatch.redefine()
parameter space has been removed - the space is now derived from the color parameter.
R32141
Compatible changes
- New constants:
- Fixes:
frame.createImageFrame()
does not evaluate dimensions parameter.product.get()
does not work when using ‘selected’ as the statement.comet.pyImport()
sometimes fails withModuleNotFoundError
even though the module is there.CPageItem.setScale()
parameter refPoint is not considered a default parameter.
R32064
Compatible changes
CometError
now inheritsException
instead ofBaseException
, making it easier to catch- New situations (see Availability):
Stamp action: kContextStampAction
Excel Query function script: kContextExcelQueryFunction
- Fixes:
comet.runCScript()
crashes when parameter items is default.CDocument.createPages()
returns invalid objects after successful execution.CFrame.duplicate()
puts the result at inverted Y-coordinates for compound pathsCFrame.duplicate()
does not properly place subpaths for compound pathsAfter calls to
CPage.setPosition()
, the page object is left in an invalid state.Situation kContextLayoutRule is missing pubserver environment variables.
Situation kContextLayoutRuleCondition is missing pubserver environment variables.
Situation kContextLayoutRuleDynamicList is missing pubserver environment variables.
Situation kContextDoubleClickProductPool is missing pubserver environment variables.
R31940
Compatible changes
CDocument.saveAs()
andCDocument.saveAsCopy()
now have an additional options parameter to configure saving optionsCFrame.duplicate()
now acceptsNone
for the x and y parameters, using the source coordinates if given- Fixes:
situation kContextAfterLogin was not working for XML offline datapools
CFrame.duplicate()
puts the result at inverted Y-coordinates
R31859
Compatible changes
CDocument.getPage()
now also acceptsstr
as the data parameter to search for a page by nameframe.getBBox()
now acceptslist
[CPageItem
] as inputframe.getSelected()
now returnslist
[CPageItem
] instead oflist
[CFrame
]frame.createTextFrame()
now accepts coordinates directly as a tuple for the dimensions parameterframe.createTextFrame()
now accepts [CLayer
] andlist
[str
] andint
for the target layerframe.createTextFrame()
now accepts [CPage
] for the target pageCPageItem.setLayer()
can now use nested layers as the target layerCDocument.getLayer()
can now search for nested layers and for layers by index- New functions:
- Fixes:
frame.createTextFrame()
page parameter is not properly interpretedCometError.getAdditionalInfo()
raises when no additional information is availableCTable.getRowCount()
parameter rowType does not have a default valueCTable.setStroke()
does not work when operating on entire columns or rowsCPageItem.getType()
was not implementedCPageItem.setLayer()
fails when the layer parameter is a nestedCLayer
CDocument.exportPDF()
does an undo after saving the documentCDocument.exportPDF()
does not evaluate the indices parameter
Incompatible changes
frame.createTextFrame()
parameter order changedframe.getBBox()
parameter frames has been renamed to itemsCDocument.getLayer()
parameter name has been renamed to data
R31755
No changes
R31701
Compatible changes
product.establish()
now additionally accepts a page index for the page parametercomet.pyImport()
can now handle all imports like CScriptCTable.setCellFill()
now also acceptsCColor
as the data parameter- New modules:
- New functions:
- Fixes:
Error messages of exceptions do not get output to the logfile when custom logging (log.xml) is enabled
product.establish()
does not acceptCPage
as the page parameterlink.insertTocEntry()
crashes when parameter options is not givencomet.pyImport()
does not always raise an ImportError when the import failedhyperlink.create()
raises CometError on creation of text hyperlinksplaceholder.load()
only works properly when parameter recordIDs is not emptyrect.create()
parameters top and right are reversedhyperlink.findCrossRefs()
parameter calcTextCoords does not workCCrossRef.getPageIndex()
parameter fromBook is not defaultCCrossRef.getPageName()
parameter fromBook is not defaultCBook.setDocumentPosition()
does not raise KeyError when the document is not foundCBook.setMasterDocument()
does not raise KeyError when the document is not foundCBook.removeDocument()
does not raise KeyError when the document is not foundCBook.removeDocument()
reports wrong function name on errorCTable.setCellFill()
raises TypeError when the data parameter is a tupleCTable.getCellType()
always raises CometErrorCTable.remove()
always raises CometErrorCTable.getCellStyle()
always raises CometErrorCTable.setCellStyle()
always raises CometErrorCTable.getCellInsets()
always raises CometErrorCTable.setCellInsets()
always raises CometErrorCTable.getCellFrame()
always raises CometErrorCTable.getCellBox()
always raises CometErrorCTable.getCellSize()
always raises CometErrorCTable.getCellText()
always raises CometErrorCTable.setStroke()
always raises CometErrorCTable.setCellFill()
always raises CometErrorCTable.setCellText()
always raises CometErrorCTable.mergeCells()
always raises CometErrorCTable.getStyle()
always raises CometErrorCTable.setStyle()
always raises CometErrorCTable.getColumnWidth()
always raises CometErrorCTable.getColumnWidth()
always raises CometErrorCTable.getRowHeight()
always raises CometErrorCTable.setRowHeight()
always raises CometErrorCTable.insertColumns()
always raises CometErrorCTable.removeColumns()
always raises CometErrorCTable.getColumnCount()
always raises CometErrorCTable.insertRows()
always raises CometErrorCTable.removeRows()
always raises CometErrorCTable.getRowCount()
always raises CometErrorCTable.getFrame()
always raises CometError
Incompatible changes
comet.runCScript()
items parameter completely reworked to support a wide range of Python types in CScriptCFrame.getTemplate()
now has an additional parameter whether to determine the template nameCPage.snapshot()
has been removedCFrame.getHasOverset()
is nowCFrame.hasOverset()
comet.pyImport()
now always requires a file extension when trying to import a file
R31400
Compatible changes
- Fixes:
CPageItem.getOpacity()
always raises an error in InDesign®
R31313
Compatible changes
- Fixes:
- The following functions always raise an exception stating the textmodel could not be found:
R31147
Compatible changes
- Fixes:
Fixed an issue on Mac systems where sometimes int parameters would not be properly filled
R30871
Compatible changes
- New situations (see Availability):
app.comet.eval (Call from Javascript): kContextServerInterface
URLLink header data: kContextURLLinkHeaderData
- New constants:
- Fixes:
Text layout rules cause a crash on execution
hyperlink.findCrossRefs()
is not workingCDocument.getPage()
parameter data is evaluated wronglyCPage.getFrames()
yields frames of entire spread and sometimes nothing
Incompatible changes
The function
CFrame.getIsInFront()
is nowCFrame.isInFront()
The function
CFrame.getIsInBack()
is nowCFrame.isInBack()
The function
CSwatch.getIsSpot()
is nowCSwatch.isSpot()
The function
CSwatch.getIsLocked()
is nowCSwatch.isLocked()
The function
CSwatch.getIsReserved()
is nowCSwatch.isReserved()
R30779
Compatible changes
- New functions:
- Other new things:
- The documentation stubs (found in PyDoc/comet) now more accurately reflect the actual class and module structure of comet.
All classes are now properly members of the comet module instead of a seperate module per class.
Designate constants
Pageitem types new value
comet.kPageItemTypeGuide
(used withCPageItem.getType()
)Pageitem types new value
comet.kPageItemTypeQRCode
(used withCPageItem.getType()
)product.establish()
provides a more verbose error message when parameter products is empty listCDocument.exportPDF()
now accepts an empty path parameter, putting the result PDF next to the documentCDocument.exportPDF()
now respects the scope parameterCDocument.exportPDF()
now respects the indices parameterCDocument.exportPDF()
now accepts adict
as the profile parameter containing interactive PDF options
- Fixes:
CDocument.exportPDF()
always crashesCTable.getCellSize()
,CTable.getCellTextPosition()
,CTable.getCellBox()
,CTable.getCellFrame()
,CTable.getCellInsets()
, andCTable.getCellStyle()
don’t accept out of bounds indices even though they shouldproduct.establish()
parameter layer does not work when explicitly providingNone
as value
Incompatible changes
- Other changes:
comet.FrameTypes is now Pageitem types
CFrame.hasOverset()
is nowCFrame.getHasOverset()
CFrame.isInline()
is nowCFrame.getIsInline()
CDocument.getCellSize()
parameter insetRelative renamed to areaType, type changed frombool
toint
CDocument.getCellBox()
parameter relativeTo renamed to areaType, valid value range changedprint()
is no longer redirected to the comet logfile since that causes crashes on M1 Macs
R30683
Compatible changes
Python version has been upgraded to 3.10
- New functions:
- Other new things:
CTextModel.setColor()
now also acceptsCColor
for the color parameterCHyperlink.setColor()
now also acceptsCColor
for the color parameterColor models constants
Swatch spaces constants
- Fixes:
Several memory leaks
document.open()
always raises a CometError
Incompatible changes
- Removals:
comet.DocColorModels constants (replaced by Color models)
comet.ColorTypes constants (replaced by Swatch spaces)
page
module removed - was not functionalframe.find()
(replaced byCDocument.getFrame()
)color.getSwatch()
(replaced byCDocument.getSwatch()
)color.getSwatches()
(replaced byCDocument.getSwatches()
)color.createSwatchRGB()
(replaced byCDocument.createSwatchRGB()
)color.createSwatchCMYK()
(replaced byCDocument.createSwatchCMYK()
)color.createSwatchLAB()
(replaced byCDocument.createSwatchLAB()
)
- Other changes:
All Python scripts must now start with the #!py directive at beginning of the script.
Before, this directive could be anywhere in the script.
See here: Hello world!
color
: Several functions now have uppercase parameter names for the color valuesCExcelBook.getFontColor()
now returnsCColor
instead of color values tupleCExcelBook.getColor()
now returnsCColor
instead of color values tupleCTextModel.getColor()
now returnsCColor
instead of color values tupleCTextModel.getColor()
no longer returns color model individually - it is contained in the resultCColor
CDocument.addLayer()
renamed toCDocument.createLayer()
R30603
Compatible changes
- New classes:
- New functions:
color.createSwatchRGB()
color.createSwatchCMYK()
- Other new things:
New environment variables gDocumentPathPDF and gBeforeMetaData in kContextDocWatch
Constants Snippet match settings
New parameter for
prefs.getURLLinkTimeout()
andprefs.setURLLinkTimeout()
which determines the type of timeout
- Fixes:
CPage
objects pointing to the same page should now properly update on changes
Incompatible changes
- Removals
frame.resolveCometGroup()
frame.getCometGroupMembers()
- Other changes
CTable.colorize()
is now namedCTable.setCellFill()
CTable.setCellFill()
parameters refactored
frame.define()
is now namedframe.find()
CDocument.getFrames()
parameters fully refactored
R30464
Compatible changes
- New classes:
- New functions:
frame.define()
- Other new things:
CPage.setSize()
new default parameter ‘refPoint’
CRect.adjust()
new default parameter ‘refPoint’
CRect.setHeight()
new default parameter ‘refPoint’
CRect.setWidth()
new default parameter ‘refPoint’
CRect.moveTo()
new default parameter ‘refPoint’
Incompatible changes
- Other new things
CTextModel.setFontSize()
parameter order changed
CTextModel.setFont()
parameter order changed
CTextModel.setColor()
parameter order changed
CTextModel.setParaStyle()
parameter order changed
CTextModel.setCharStyle()
parameter order changed
CTextModel.getParaStyle()
result tuple value order changed
CTextModel.getCharStyle()
result tuple value order changed
CTextModel.getFontSize()
returns tuple instead of float
- R30323
Compatible changes - New situations (see Availability):
Page template after apply
- New classes:
- New functions:
color.createSwatchRGB()
color.createSwatchCMYK()
color.createSwatchLAB()
color.getSwatch()
color.getSwatches()
CSwatch.getIsSpot()
CSwatch.getIsLocked()
CSwatch.getIsReserved()
CFrame.getOverprint()
CFrame.setOverprint()
CFrame.setName()
CFrame.getScale()
CFrame.setScale()
CFrame.getSkew()
CFrame.setSkew()
CFrame.setPrintable()
CFrame.getPrintable()
- Other new things:
Constants Swatch types
Constants comet.ColorTypes
Constants Overprint settings
Sides value
comet.kSideAll
- Incompatible changes
CDocument.hasAttribute()
removed for now. May be reintroduced later.CExcelBook.getCellFormat()
now returns tuple instead of listCTable.setText()
is now namedCTable.setCellText()
- R30121
Compatible changes - New situations (see Availability):
Product build: Prescript
Previews panel entries
- New functions:
- Other new things:
New context
comet.kContextProductBuildPre
New context
comet.kContextPreviewsEntries
New context
comet.kContextPreviewsLink
Environment variable gProducts is now available for kContextProductBuildPre
- R30009
Compatible changes - New situations (see Availability):
Table Module: Insert rows
Table Module: Insert columns
Table module: Layout rules
Table Module: Cell ID
ToDoList: Custom tasks
Placeholder sync: String comparison
Product pool: Default search field value
- New functions:
Added
product.establish()
Added
prefs.getMagnetState()
Added
prefs.setMagnetState()
- Other new things:
Added new context
comet.kContextTableModuleInsertRow
Added new context
comet.kContextTableModuleInsertColumn
Added new context
comet.kContextTableModuleLayoutRule
Added new context
comet.kContextTableModuleCellID
Added new context
comet.kContextToDoListCustomTask
Added new context
comet.kContextPlaceHolderStringCompare
Added new context
comet.kContextProductPoolSFDefaultValue
Added Magnet situations constants and dictionary
Added Magnet states constants and dictionary
- R29607
Compatible changes Several modules and their static functions have been reinstituted
- New modules:
- Added
host
module for querying the host environment the priint:comet Python API is running in Added
host.getType()
Added
host.getVersion()
Added
host.getIsServer()
Added
host.getLanguage()
Added
host.getPluginPath()
Added
host.exportPDFProfiles()
Added
host.importPDFProfiles()
- Added
- New functions:
Added
comet.getVersion()
Added
comet.getRevision()
Added
page.create()
Added
placeholder.loadServer()
Added
CTextModel.replace()
- Other new things:
Added Excel cell types constants and dictionary
Added Excel selectors constants and dictionary
Added Excel border styles constants and dictionary
Added Excel underline styles constants and dictionary
Added Excel font positions constants and dictionary
- Incompatible changes
Removed all constants from
excel
module and moved them tocomet
moduleRemoved
comet.getHost()
(moved tohost.getType()
)Removed
sync
module. Functionality can be achieved usingcomet.setOutput()
Static functions in classes have been removed again and moved to their appropriate modules
Moved
comet.selectFile()
todialog.selectFile()
Moved
comet.selectFolder()
todialog.selectFolder()
- R29546
Compatible changes - Python can now be used in the following additional situations (see Availability):
Text layout rules
Text layout conditions
Panel actions: Previews
Panel actions: ToDo list
Comet notes: Target layer
Comet notes: Parastyle
Products of document: Special cases
- New functions:
Added
comet.selectFolder()
Added
comet.getKeyValue()
Added
CTable.create()
Added
CTable.find()
- Other new things:
Added Basic types dictionary
Added Contexts dictionary
Added Indices dictionary
Added Line types dictionary
Added Row types dictionary
Added Stroke selectors dictionary
Added Stroke attributes dictionary
Added Stroke types dictionary
Added Text formats dictionary
Added an Examples section
Added new context
comet.kContextNoteParastyle
Added new context
comet.kContextNoteTargetLayer
Added new context
comet.kContextPODSpecialCases
- Incompatible changes
Removed constants from table module. Replaced by constants in comet module, e.g. Row types
- The following modules are deprecated and will be removed (already gone from documentation): dialog, document, element, idtype, layoutrule, link, page, product, rect, table .
All functionality is now moved to static functions in the appropriate classes
comet.setGlobal is now named
comet.setOutput()
Removed
CParameter.getAll()
Removed
CParameter.get()
Removed
CParameter.createFromXML()
Removed
CParameter.toXML()
Removed
CPlanning.createFromXML()
Removed
CPlanning.toXML()
Removed
CPublication.get()
Removed
CPublication.createFromXML()
Removed
CPublication.toXML()
Removed
CPublicationType.getAll()
Removed
CPublicationType.createFromXML()
Removed
CPublicationType.toXML()
Removed
CWorkflowStatus.getAll()
Removed
CWorkflowStatus.get()
Removed
CWorkflowStatus.getAvailable()
Removed
CWorkflowStatus.createFromXML()
Removed
CWorkflowStatus.toXML()
R29355
- Compatible changes
A lot of refactoring has been done in moving module functions from their module to static class functions.
- New Modules:
- Added
publication
module for querying priint:suite publication information
- Added
- New Classes:
- Added
CParameter
Added
CParameter.createFromXML()
Added
CParameter.getValue()
Added
CParameter.toXML()
- Added
- Added
CPlanning
Added
CPlanning.createFromXML()
Added
CPlanning.getValue()
Added
CPlanning.toXML()
- Added
- Added
CPublication
Added
CPublication.createFromXML()
Added
CPublication.getValue()
Added
CPublication.toXML()
- Added
- Added
CPublicationType
Added
CPublicationType.createFromXML()
Added
CPublicationType.toXML()
- Added
- Added
CWorkflowStatus
Added
CWorkflowStatus.createFromXML()
Added
CWorkflowStatus.toXML()
- Added
- New Functions:
Added
CDocument.getFront()
Added
CDocument.open()
Added
CDocument.getOpen()
Added
CDialog.create()
Added
CElement.create()
Added
CIDType.create()
Added
CLink.collect()
Added
CRect.create()
Added
CRect.createSquare()
- Other new things:
Added Publication selectors constants and descriptions for querying publication class information
Added Document close modes constants for closing documents in InDesign®
Added comet.DocColorModels constants for querying the document color model for Illustrator®
Added Link sorting constants
Added Link first selectors constants
Added
comet.kFrameTypeGroup
,comet.kFrameTypeLegacyText
andcomet.kFrameTypeGraph
which can be returned fromCFrame.getType()
- Fixes:
Fixed comet.sync.setNewValue and setOldValue not working
Fixed CDocument.exportPDF not working
Fixed a crash involving CProduct instances
Fixed product.get not working
Fixed
page.snapshot()
not parsing parameters correctly
- Incompatible changes
Removed link sorting constants from idtype module. Replaced by Link sorting
Removed first link selector constants from idtype module. Replaced by Link first selectors
R29302
Compatible changes
Documentation restructuring (Moved several articles from Usage to Introduction)
- Python can now be used in the following additional situations (see Availability):
Template panel actions
- Running other script types from Python now provides limited environment variable inheritance.
- New Functions:
Added
comet.selectFile()
Added
placeholder.load()
Added
placeholder.store()
Added
placeholder.build()
Added
CDocument.setFront()
Added
CDocument.close()
Added
CFrame.getScriptTag()
CTextModel.getFont()
now also returns the run length
document.open()
now has an appendToRecent parameterFixed
CDocument.setAttribute()
crashingFixed
CFrame.moveTo()
not working properly with moved artboards
R29218
Compatible changes
All parameters for any functions are now keyword parameters
- New Modules:
- Added
system
module which provides general comet environment information
Added
system.getApplicationPath()
Added
system.getPluginPath()
Added
system.getRevision()
Added
system.getCometVersion()
- Added
datapool
module which provides connection access for the comet data pool
Added
datapool.getConnection()
Added
datapool.loginSOAP()
Added
datapool.loginDB()
Added
datapool.loginXML()
Added
datapool.logout()
- New Classes:
- Added
CSOAP
class for SOAP connections
Added
CSOAP.getServer()
Added
CSOAP.getUser()
Added
CSOAP.getLanguage()
Added
CSOAP.getClient()
Added
CSOAP.getCharset()
Added
CSOAP.uploadFile()
Added
CSOAP.uploadData()
Added
CSOAP.uploadFolder()
Added
CSOAP.download()
Added
CSOAP.createQuery()
- Added
CSQL
class for SQL connections
Added
CSQL.getServer()
Added
CSQL.getUser()
Added
CSQL.getDBName()
Added
CSQL.getClient()
Added
CSQL.getCharset()
Added
CSQL.createQuery()
- Added
CQuery
class for SQL/SOAP queries
Added
CQuery.send()
Added
CQuery.input()
Added
CQuery.output()
Added
CQuery.execute()
Added
CQuery.fetch()
Added
CQuery.commit()
Added
CQuery.rollback()
Added
CQuery.getCommand()
Added
CQuery.getParent()
- New Functions:
Added
comet.runJavaScript()
Added
comet.runCScript()
Added
prefs.getTagsReadable()
Added
prefs.setTagsReadable()
Added
prefs.getURLLinkTimeout()
Added
prefs.setURLLinkTimeout()
Added
prefs.getURLLinkFolder()
Added
prefs.setURLLinkFolder()
Added
prefs.getUpdateType()
Added
prefs.setUpdateType()
Added
prefs.getUpdatePath()
Added
prefs.setUpdatePath()
Added
prefs.getDocWatch()
Added
prefs.setDocWatch()
Added
CPage.getUID()
Added
CPage.setIndex()
Added
CPage.remove()
Added
CTable.getUID()
Added
CTable.removeRows()
Added
CTable.removeColumns()
- Other new things:
Added Sides constants dictionary
Added List types constants dictionary
Added comet.FrameTypes constants dictionary
Added Host environments constants dictionary
Added Link types constants dictionary
Fixed
CRect.setBottom()
setting the wrong valueFixed
CTextModel.setCharStyle()
expecting wrong parameter typesFixed
CTextModel.setParaStyle()
expecting wrong parameter typesIncompatible changes
CExcelBook.getFontColor()
now returns a tuple instead of a list
R29068
Compatible changes
- Python can now be used in the following additional situations (see Availability):
URL Drop action ID
URL Drop
Build support
Alternative templates
All
CFrame
functions now do improved self checking whether the frame is still valid in the document, e.g. after deleting a frameMultiple
CTable
functions now properly justify out of bounds column and row indices.Functions of
frame
which require a document now acceptNone
to use the current script document.
- New Functions:
frame.resolveCometGroup()
CFrame.isValid()
CFrame.remove()
CFrame.getIsInFront()
CFrame.getIsInBack()
- Other new things:
New context:
comet.kContextURLDropActionID
New context:
comet.kContextURLDrop
New context:
comet.kContextBuildSupport
New context:
comet.kContextAlternativeTemplate
New context:
comet.kContextTableModuleRecordID
New context:
comet.kContextPublicationCheckout
New context:
comet.kContextPublicationAfterSave
New context:
comet.kContextPublicationBeforeClose
New context:
comet.kContextPublicationStatus
New context:
comet.kContextPublicationCheckin
New context:
comet.kContextPublicationAfterClose
New context:
comet.kContextPublicationRevert
New context:
comet.kContextPublicationAfterCheckout
New build situation constants to
comet
module. See Build situationsFixed
link.collect()
pages parameter not workingFixed
CFrame.setScriptTag()
parameters key and value being swappedFixed
CFrame.setScriptTag()
putting strings in quotesFixed
CFrame.setLayer()
layer parameter being wrongfully optional
Incompatible changes
frame.createTextFrame()
now uses a 0-based index for the page instead of 1 based
R28940
Compatible changes
- Python can now be used in the following additional situations (see Availability):
Layout rule dynamic parameter value lists
Layout rule dynamic definition
Table function variable parameter value lists
Table function variable dynamic definition
DocWatch
Comet Tests
URLLink Destination folder
We added a new output variable mechanism for writing to global variables depending on context. See Output variables and
comet.setGlobal()
- New Modules:
- Added
placeholder
module which contains placeholder action context relative functions:
- Added
html
module which contains HTML utility functions
Added
html.getRawText()
- Added
element
module which contains factory functions for repeating element placeholders
Added
element.create()
- New Classes:
- Added
CElement
class for repeating elements
Added
CElement.getID()
Added
CElement.setID()
Added
CElement.getTemplateID()
Added
CElement.setTemplateID()
Added
CElement.getClassID()
Added
CElement.setClassID()
Added
CElement.getFrames()
- New Functions:
Added
frame.getCometGroupMembers()
Added
sync.getSyncState()
Added
sync.setSyncState()
Added
CLayer.setIndex()
Added
CLayer.remove()
Added
CFrame.getUID()
- Other new things:
Added Sync states constants to
comet
moduleAdded new context:
comet.kContextDocWatch
Added new context:
comet.kContextURLLinkDestFolder
- Fixes:
Fixed
CDocument.getMasterPageInfo()
returning double prefixed namesFixed
CDocument.getBleed()
always raising SystemErrorFixed
link.collect()
sort parameter not workingFixed
idtype
module being unavailable
Incompatible changes
Renamed module layoutRule to
layoutrule
(lower case r)Moved Link types constants from
CLink
tocomet
module
R28889
Compatible changes
Added
frame.getBBox()
Added
frame.moveTo()
Added
CDocument.addLayer()
(was not implemented)Added
CDocument.getLayers()
(was not implemented)Added
CFrame.getCometGroupID()
Added
CFrame.getDocument()
Added
CFrame.getName()
Added
CFrame.fitImage()
Added
CFrame.getImageSize()
Added
CFrame.setImageSize()
Added
CFrame.getImageScale()
Added
CFrame.setImageScale()
Added
CFrame.setLayer()
Added
CLayer.getIndex()
Added
CPage.getFrames()
Added
CPage.getMasterPage()
Added
CPage.setMasterPage()
- Added
CDialog
class for creating custom dialogs:
Added
CDialog.setTitle()
Added
CDialog.setSize()
Added
CDialog.addLabel()
Added
CDialog.addCheckBox()
Added
CDialog.addIntField()
Added
CDialog.addFloatField()
Added
CDialog.addTextField()
Added
CDialog.addDropDown()
Added
CDialog.show()
CFrame.moveTo()
now also acceptsCPage
as value for the page parameterFixed
CLayer.getVisible()
returning wrong values for IllustratorFixed gDocument not being available in panel actions
Fixed
link.collect()
parameters pages and placeHolderIDs not being evaluated
R28810
Compatible changes
- InDesign can now use Python in the following situations properly:
Placeholder load, build, sync, store (frame and text)
Placeholder build post event
Publications panel doubleclick
Publications events (checkout, after save, after open, etc…)
Panel actions for panels: Settings, Publications, Product pool
Added gTextModel to Environment variables where appropriate
Added
CFrame.getTextModel()
Added
CDocument.getPages()
Added
CFrame.getPage()
Added
CPage.getDocument()
Added
CPage.getIndex()
Added
CPage.getIndexInSpread()
Added
CPage.getType()
Added
CPage.getSize()
Added
CPage.setSize()
Added
CPage.getMargins()
Added
CPage.setMargins()
Added
CPage.getColumnCount()
Added
CPage.getColumnGutter()
Added
CPage.getName()
Added new constants for page types - see Page types
- Added new
prefs
module with new functions:Fixed gParam1…gParam4 not being available for InDesign layout rules and conditions
Fixed gDocument not being available for InDesign layout rules and conditions
Fixed a crash when placeholder funcvar dynamic definition script was empty
CFrame.getImage()
no longer fails if the frame is an empty graphic frame and now returns an empty str
Incompatible changes
Removed CDocument.getPageCount (was not implemented)
R28726/28730/28732
Compatible changes
Added
wtlog()
Added
CDocument.getBleed()
Added
CDocument.setBleed()
Added
CFrame.getLayer()
Added
CFrame.getObjectStyle()
Added
CFrame.setObjectStyle()
Added
CTable.fitColumn()
Added
CTable.getCellSize()
Added
CTable.getCellStyle()
Added
CTable.setCellStyle()
Added
CTable.insertRows()
Added
CTable.insertColumns()
Added
table.find()
Added default parameter to
comet.wlog()
which appends a new lineAdded proper global variables and context to InDesign panel actions
Added panel actions for Illustrator
Added ExtendScript calls for Illustrator
Added allow login action for Illustrator & InDesign
Added after login action for Illustrator & InDesign
Added example for
CDocument.getStyleNames()
Added documentation for
CDocument.hasAttribute()
Added global variables to InDesign layout rules (gFrame, gDocument, gStart, gLen, gItem, …)
Added parameters removeTableOverrides and removeCellStyles to
CTable.setStyle()
CTable functions in Illustrator should now properly justify the provided indices
Incompatible changes
CFrame.getImagePath is now called
CFrame.getImage()
R28703/28704
Compatible changes
Added Style types constants to
comet
moduleAdded
CFrame.getText()
Added
CFrame.getSize()
Added
CFrame.setSize()
Added
CFrame.isInline()
Added
CRect.getValues()
Added Import directives documentation
Added Pubserver imports from [pubserver] paths
Fixed
CDocument.getFrames()
crashing when there are no frames in the documentFixed
CDocument.getFrames()
crashing when the layers parameter is emptyFixed
link.collect()
not working with None documentFixed
link.collect()
having wrong defaults for edge parameterSome docu look updates
Incompatible changes
Fixed
CFrame.getBBox()
returning wrong data type (tuple instead ofCRect
)