PenstyleManager

This set of functions is used to query/modify the current penstyle and list of penstyles. The list of penstyles includes the brush, pencil and texture styles.

The following is a list of the PenstyleManager functions:

getNumberOfPenstyles
getPenstyleName
setCurrentPenstyleByName
setCurrentPenstyleByIndex
changeCurrentPenstyleMinimumSize
changeCurrentPenstyleMaximumSize
getCurrentPenstyleIndex
changeCurrentPenstyleOutlineSmoothness
changeCurrentPenstyleCenterlineSmoothness
changeCurrentPenstyleEraserFlag
getCurrentPenstyleMinimumSize
getCurrentPenstyleMaximumSize
getCurrentPenstyleOutlineSmoothness
getCurrentPenstyleCenterlineSmoothness
getCurrentPenstyleEraserFlag
exportPenstyleToString
exportPenstyleListToString
importPenstyleListFromString
savePenstyles

Example

function queryPenstyles()

{

 

var num = PenstyleManager.getNumberOfPenstyles();

for ( var i =0 ; i < num ; ++i )

{

System.println( "penstyle name is " + PenstyleManager.getPenstyleName(i) );

}

 

System.println("The current penstyle has min size of " +

PenstyleManager.getCurrentPenstyleMinimumSize() +

" and maximum size of " +

PenstyleManager.getCurrentPenstyleMaximumSize());

Related Topics 

Scripting Reference