comet.CMagnet¶
- class comet.CMagnet¶
This section describes all functions for the comet.CMagnet class.
Methods¶
- CMagnet.getType()¶
Get the type of this magnet.
- Returns:
The type of this magnet.
3: Regular magnet
4: Percent magnet
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf®
- CScript:
- CMagnet.isImage()¶
Is this a frame or image magnet?
- Returns:
Whether this magnet is an image magnet (
True
) or frame magnet (False
).- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf®
- CScript:
- CMagnet.isRotationOnly()¶
Is the magnet used for adaptation or in rotation?
- Returns:
Whether this magnet is used for rotation (
True
) or adaption (False
).- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf®
- CScript:
- CMagnet.getSource()¶
Get the source frame of this magnet.
- Returns:
The source frame of this magnet.
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf®
- CScript:
- CMagnet.getTarget()¶
Get the target frame of this magnet.
- Returns:
The target frame of this magnet.
- Return type:
- Raises:
CometError – On internal error
- Available:
InDesign® comet_pdf®
- CScript: