Insert Path
With this node you can insert a path in a document.
It has the following configuration options:
- Input File: here you can define the input file. Select the pencil to open Expression Builder.
- Page Range: here you can select the page range for the path.
Options:
- All: if you select this option, the path will be added for all pages.
- First: if you select this option, the path will be added for the first page only.
- Selected Range: if you select this option, the path will be added for specific pages only.
- Separation Name: here you can define the separation of the path.
- Ink Value: here you can define the ink value of the path. For example if you enter 100, the path will be created in a 100% ink value.
- Stroke Width: here you can define the stroke width of the path.
- Layer Name: here you can define on which layer the path should be created.
- Path Points: here you can define the path coordinates.
- In case of single path, the input needs to be a single flat list containing points:
[ x, y, c1x, c1y, c2x, c2y, x, y, c1x, c1y, c2x, c2y, x, y, c1x, c1y, c2x, c2y...]
- In case of compound path, in needs to contain a list of lists, each sub-list
represents a sub-path of compound path:
[ [ x, y, c1x, c1y, c2x, c2y...], [ x, y, c1x, c1y, c2x, c2y...]...]
Where:- xn, yn corresponds to the starting point of n-th segment.
- c1xn, c1yn corresponds to the bezier control point of beginning of n-th segment, relative to xn.
- c2xn, c2yn: corresponds to the bezier control point of ending of n-th segment, relative to yn.
And:- Every coordinate is relative to xn, yn.
- Every next segment coordinate is relative to the previous x(n-1), y(n-1).
- In case of single path, the input needs to be a single flat list containing points:
Note: In many cases, the coordinates will be defined in a variable through prior scripting
nodes.
Example
If you want to add a path with 50% paint and 0.1 mm width to
a PDF file, you need to add the Script node prior to the Insert Path node. If you
define the following script in the Script node, the points will be converted into a string
and communicated as a string of values to the Insert Path
node:
setResults ( {
variables : {
abs: [150, 230, 0, 0, 0, 0, 0, 280, 0, 5.518, -5.518, 0]
}
}
);
- Reference: here you can define to which reference point the path
is relative. Options:
- Absolute: if you select this option, the position of the path is relative to the document's absolute zero point.
- Media Box: if you select this option, the path is relative to the left-bottom point of the document's media box.
- Crop Box: if you select this option, the path is relative to the left-bottom point of the document's crop box.
- Bleed Box: if you select this option, the path is relative to the left-bottom point of the document's bleed box.
- Trim Box: if you select this option, the path is relative to the left-bottom point of the document's trim box.
- Art Box: if you select this option, the path is relative to the left-bottom point of the document's art box.
- Selection Bounds: if you select this option, the path is relative to the bounding box of a selection.
- Extra Horizontal Offset: here you can define extra horizontal offset to create an extra shift in the path.
- Extra Vertical Offset: here you can define extra vertical offset to create an extra shift in the path.
- Preserve CAD Groups in CF2: if you select this checkbox, no groups will be created for sub routines in the CFF2 when importing repetition CFF2 files.
- Remove Text in CF2: if you select this checkbox, all the text will be removed, except text that has been marked as a dimension.
- Remove dimensions in CF2: if you select this checkbox, all the text and lines that are marked as dimension will be removed.
- Plate/Drum from CFF2: here you can select the
Line Types that set the Plate/Drum. Options
- None: if you select this option, predefined Line Types will be used to set the Plate/Drum, not line types from CFF2.
- LL-UR: if you select this option, the lower left (LL) and upper
right (UR) defined in the CFF2 file sets the Plate/Drum of the repetition.
When a line type is selected, CLOUDFLOW will calculate the bounding box of all the straight lines (excluding subroutines) and use the dimensions of that box as the Plate/Drum Size.
- Printable Area from CFF2: here you can select
the Line Types that set the Printable Area. Options:
- None: if you select this option, predefined Line Types will be used to set the Printable Area, not line types from CFF2.
- LL-UR: if you select this option, the lower left (LL) and upper
right (UR) defined in the CFF2 file sets the Printable Area of the repetition.
When a line type is selected, CLOUDFLOW will calculate the bounding box of all the straight lines (excluding subroutines) and use the dimensions of that box as the Printable Area.
- Output: here you can select the output type.
Options:
- Postfix: if you select this option, you can define a postfix that will be added to the newly generated file. The new file will be placed on the same location as the original file.
- Custom: if you select this option, you can specify a path where the new file will be placed and a postfix that will be added to the new file. Select the pencil to open Expression Builder.