Storyboard Pro
Scripting Interface Documentation
DrawingTools Class Reference

Public Slots

void setCurrentArt (int)
 sets the current art to be one of the following : underlayArt, colourArt, lineArt or overlayArt More...
 
bool setCurrentDrawingFromColumnName (String columnName, int frame=1)
 sets the current drawing to be from column columnName at frame frame More...
 
bool setCurrentDrawingFromNodeName (String nodeName, int frame=1)
 sets the current drawing to be from node nodeName at frame frame More...
 
void convertPencilToBrush (int art=LineArtMask, DrawingToolParams *params=0)
 converts the selected pencil lines in layer of the current drawing using params More...
 
void extractCenterline (int srcArt=LineArtMask, int dstArt=ColourArtMask, DrawingToolParams *params=0)
 extracts the centreline from srcLayer and puts the extracted line in dstLayer using params. More...
 
void computeBreakingTriangles (DrawingToolParams *params=0)
 computes the breaking triangles of the current layer using params. More...
 

Properties

int underlayArt
 readonly property - returns underlayArt mask More...
 
int colourArt
 readonly property - returns colourArt mask More...
 
int lineArt
 readonly property - returns lineArt mask More...
 
int overlayArt
 readonly property - returns overlayArt mask More...
 
int allArts
 readonly property - returns mask for all 4 art layers More...
 

Detailed Description

With the drawing functions, you can call some functions on the current drawing to modify it in some ways.

You can use it in Script Editor only.

Member Function Documentation

◆ computeBreakingTriangles

void DrawingTools::computeBreakingTriangles ( DrawingToolParams params = 0)
slot

computes the breaking triangles of the current layer using params.

◆ convertPencilToBrush

void DrawingTools::convertPencilToBrush ( int  art = LineArtMask,
DrawingToolParams params = 0 
)
slot

converts the selected pencil lines in layer of the current drawing using params

◆ extractCenterline

void DrawingTools::extractCenterline ( int  srcArt = LineArtMask,
int  dstArt = ColourArtMask,
DrawingToolParams params = 0 
)
slot

extracts the centreline from srcLayer and puts the extracted line in dstLayer using params.

◆ setCurrentArt

void DrawingTools::setCurrentArt ( int  )
slot

sets the current art to be one of the following : underlayArt, colourArt, lineArt or overlayArt

◆ setCurrentDrawingFromColumnName

bool DrawingTools::setCurrentDrawingFromColumnName ( String  columnName,
int  frame = 1 
)
slot

sets the current drawing to be from column columnName at frame frame

◆ setCurrentDrawingFromNodeName

bool DrawingTools::setCurrentDrawingFromNodeName ( String  nodeName,
int  frame = 1 
)
slot

sets the current drawing to be from node nodeName at frame frame

Property Documentation

◆ allArts

int DrawingTools::allArts
read

readonly property - returns mask for all 4 art layers

◆ colourArt

int DrawingTools::colourArt
read

readonly property - returns colourArt mask

◆ lineArt

int DrawingTools::lineArt
read

readonly property - returns lineArt mask

◆ overlayArt

int DrawingTools::overlayArt
read

readonly property - returns overlayArt mask

◆ underlayArt

int DrawingTools::underlayArt
read

readonly property - returns underlayArt mask