Scripting Interface |
The ToolProperties JavaScript global object. Controls the Tool Properties. More...
Public Slots | |
General options | |
void | setApplyAllArts (bool b) |
Sets the Apply to Line Art and Colour Art checkbox state to b; in the Select Tool Options. More... | |
Brush Options | |
void | setDrawBehindMode (bool b) |
Toggles the Draw Behind mode of the Brush tool. More... | |
void | setAutoCreateColourArt (bool b) |
Sets the auto create colour art mode of the current tool to b if applicable. More... | |
void | setAutoFlattenMode (bool b) |
Sets the auto flatten mode if applicable. More... | |
void | setRespectProtectedColourMode (bool b) |
Sets the Respect Protected Colour mode if applicable. More... | |
void | setDrawingMagnifierMode (bool b) |
Sets the magnifier mode. More... | |
Drawing selection | |
void | setMarkeeMode (bool b) |
Sets the select tool mode selection to Lasso or Marquee. If b is true, the mode will be set to Marquee. More... | |
void | setSnapping (bool contour, bool align, bool grid) |
Sets the snapping mode for the contour, align and grid mode all to the modes specified in argument. More... | |
void | setPermanentSelectionMode (bool b) |
Toggles the permanent selection mode. More... | |
void | setSelectByColourMode (bool b) |
Sets the select by colour mode of the Select tool . More... | |
Contour editor tool options | |
void | setShowHideAllContourEditingControls (bool b) |
Toggles whether contour editor shows all tool controls or not. More... | |
Transform tool options | |
void | setPegSelectionMode (bool b) |
Sets the selection mode of the transform tool to peg mode if b is true. More... | |
void | setTransformToolSnapping (bool align, bool grid) |
Sets the align and grid snapping modes of the transform tool. More... | |
void | setShowHideManipulatorControls (bool b) |
Hides the transform tool manipulator if b is true. More... | |
void | setDisablePivotControl (bool b) |
Disables the pivot Transform tool manipulator if b is true. A pivot control will still be displayed but will not be manipulatable. More... | |
paint options | |
void | setPaintAndRemoveTextureMode (bool b) |
Instruct the paint tool to remove the opacity texture if b is true. More... | |
void | setUsedStoredColourGradientMode (bool b) |
Instruct the paint tool to use the gradient/texture matrix stored in the tool if b is true. More... | |
void | setPaintToolShouldSelectPaintedZonesAfterPainting (bool b) |
If b is true, the paint tool will select the newly painted zone after painting. This can be useful if you want to edit a gradient on multiple zones after painting. More... | |
void | setApplyAllDrawings (bool b) |
Sets the apply all drawing mode to b. More... | |
void | setApplyAllVisibleDrawings (bool b) |
Sets the apply all visible drawing mode to b. More... | |
void | setAutogapClosingMode (int m) |
Sets the auto gap closing mode to m. Mode can be 0, 1, 2 or 3, which corresponds to No Gap, Small, Medium and Large. More... | |
Rect and ellipse options | |
void | setAutoFillInside (bool b) |
Sets the auto fill mode of Rectangle and Ellipse tools to b. More... | |
Cutter options | |
void | setGestureCutter (bool b) |
Set the cutter's gesture mode to b. More... | |
void | setMouseGestureBreakeMode (bool b) |
Set the cutter's gesture break mode to b. More... | |
ink options | |
void | setShowInkableLines (bool b) |
Shows the inkable lines if b is true. More... | |
void | setSmartInkLineConnectionMode (bool b) |
Sets the smart ink line connection mode to b. More... | |
void | setInkLineSelectionMode (bool b) |
Instructs the ink tool to select inked lines after inking if b is true. More... | |
void | setBringInkedLinesOnTop (bool b) |
Instructs the ink tool to bring inked lines on top after inking if b is true. More... | |
void | setInkJoinMode (String joinType) |
Sets the join mode of the inked lines to be joinType. Join type can be one of: "ROUND_JOIN", "MITER_JOIN" or "BEVEL_JOIN". More... | |
general option | |
void | setPencilTipMode (String pencilTip) |
Sets the pencil tip shape used by the eraser, cutter, and ink tools whenever an existing pencil line gets split by the tool. More... | |
line tool options | |
void | setLineBuildingMode (bool b) |
Sets the line building mode of the Pencil tool to b. More... | |
void | setLinePushingMode (bool b) |
Sets the line pushing mode of the Pencil tool to b. More... | |
void | setLineAutoGapClosing (bool b) |
Toggles the auto gap closing functionality for the line and pencil tools. When the auto gap functionality is on, the line or pencil tool tries to add a stroke line to cover the gap between the newly created line and any existing line. More... | |
The ToolProperties JavaScript global object. Controls the Tool Properties.
This object controls most of the tool properties that can be found on the Tool Properties Panel. The Tool Presets view must have been loaded for these function to be available.
|
slot |
Sets the Apply to Line Art and Colour Art checkbox state to b; in the Select Tool Options.
b | : When true sets the Apply to Line Art and Colour Art checkbox state to checked. When false, unchecks it. |
|
slot |
Sets the apply all drawing mode to b.
b | : When true enables the apply all drawing mode. |
|
slot |
Sets the apply all visible drawing mode to b.
b | : When true enables the apply all visible drawing mode. |
|
slot |
Sets the auto create colour art mode of the current tool to b if applicable.
b | : When true enables the auto create colour art mode of the current tool. When false disables it. |
|
slot |
Sets the auto fill mode of Rectangle and Ellipse tools to b.
b | : When true enables the auto fill mode of the Rectangle and Ellipse tools. |
|
slot |
Sets the auto flatten mode if applicable.
b | : When true enables the auto flatten mode if applicable. When false disables it. |
|
slot |
Sets the auto gap closing mode to m. Mode can be 0, 1, 2 or 3, which corresponds to No Gap, Small, Medium and Large.
m | : Sets the auto gap closing mode to 0, 1, 2 or 3, which corresponds to No Gap, Small, Medium and Large. |
|
slot |
Instructs the ink tool to bring inked lines on top after inking if b is true.
b | : When true instructs the ink tool to bring inked lines on top after inking. |
|
slot |
Disables the pivot Transform tool manipulator if b is true. A pivot control will still be displayed but will not be manipulatable.
b | : When true disables the pivot Transform tool manipulator. |
|
slot |
Toggles the Draw Behind mode of the Brush tool.
b | : When true enables the Draw Behind mode of the Brush tool. When false, disables it. |
|
slot |
Sets the magnifier mode.
b | : When true enables the magnifier mode. When false disables it. |
|
slot |
Set the cutter's gesture mode to b.
b | : When true enables the cutter's gesture mode. |
|
slot |
Sets the join mode of the inked lines to be joinType. Join type can be one of: "ROUND_JOIN", "MITER_JOIN" or "BEVEL_JOIN".
joinType | : Sets the join mode of the inked lines to be joinType. |
|
slot |
Instructs the ink tool to select inked lines after inking if b is true.
b | : When true instructs the ink tool to select inked lines after inking. |
|
slot |
Toggles the auto gap closing functionality for the line and pencil tools. When the auto gap functionality is on, the line or pencil tool tries to add a stroke line to cover the gap between the newly created line and any existing line.
b | : When true enables the auto gap closing functionality for the Line and Pencil tools. |
|
slot |
Sets the line building mode of the Pencil tool to b.
b | : When true enables the line building mode of the Pencil tool. |
|
slot |
Sets the line pushing mode of the Pencil tool to b.
b | : When true enables the line pushing mode of the Pencil tool. |
|
slot |
Sets the select tool mode selection to Lasso or Marquee. If b is true, the mode will be set to Marquee.
b | : When true sets the selection mode to Marquee. When false sets the selection mode to Lasso. |
|
slot |
Set the cutter's gesture break mode to b.
b | : When true enables the cutter's gesture break mode. |
|
slot |
Instruct the paint tool to remove the opacity texture if b is true.
b | : When true enables the remove texture when painting mode is turned on. |
|
slot |
If b is true, the paint tool will select the newly painted zone after painting. This can be useful if you want to edit a gradient on multiple zones after painting.
b | : When true the paint tool will select the newly painted zone after painting. |
|
slot |
Sets the selection mode of the transform tool to peg mode if b is true.
b | : When true enables the selection mode of the transform tool to peg mode. |
|
slot |
Sets the pencil tip shape used by the eraser, cutter, and ink tools whenever an existing pencil line gets split by the tool.
pencilTip | : Can have one of the following values: "ROUND_TIP", "FLAT_TIP" or "BEVEL_TIP". |
|
slot |
Toggles the permanent selection mode.
b | : When true enables the permanent selection mode. When false disables it. |
|
slot |
Sets the Respect Protected Colour mode if applicable.
b | : When true enables the Respect Protected Colour mode. When false disables it. |
|
slot |
Sets the select by colour mode of the Select tool .
b | : When true enables the select by color mode of the Select tool. When false disables it. |
|
slot |
Toggles whether contour editor shows all tool controls or not.
b | : When true contour editer shows all tool controls. When false hides them. |
|
slot |
Hides the transform tool manipulator if b is true.
b | : When true hides the transform tool manipulator. |
|
slot |
Shows the inkable lines if b is true.
b | : When true shows the inkable lines. |
|
slot |
Sets the smart ink line connection mode to b.
b | : When true enables the smart ink line connection mode. |
|
slot |
Sets the snapping mode for the contour, align and grid mode all to the modes specified in argument.
contour | : When true enables the snapping mode for the contour mode. When false disables it. |
align | : When true enables the snapping mode for the align mode. When false disables it. |
grid | : When true enables the snapping mode for the grid mode. When false disables it. |
|
slot |
Sets the align and grid snapping modes of the transform tool.
align | : When true enables the align snapping mode of the transform tool. When false disables it. |
grid | : When true enables the grid snapping mode of the transform tool. When false disables it. |
|
slot |
Instruct the paint tool to use the gradient/texture matrix stored in the tool if b is true.
b | : When true the paint tool will use the gradient/texture matrix stores in the tool. |