Difference between revisions of "Paint"
Jump to navigation
Jump to search
(Created page with "The Paint object is a global object used to interact with the Paint UI while in the Paint Node. === Attributes === {| class="wikitable" ! scope="col" | Name ! scope="col...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
! scope="col" class="unsortable" | Description | ! scope="col" class="unsortable" | Description | ||
|- | |- | ||
− | | | + | |align |
− | | | + | |True if the Clone overlay mode is set to Align. |
|- | |- | ||
− | | | + | |alphaSource |
− | |The current | + | |The current alpha source used for ''Obey Alpha''. (0=input, 1=output) |
|- | |- | ||
− | | | + | |brush |
− | |The current | + | |The current brush name. |
|- | |- | ||
− | | | + | |brushes |
− | |The | + | |The List of available brush names. (''read-only'') |
|- | |- | ||
− | | | + | |brushSize |
− | |The current | + | |The current brush size (diameter in pixels). |
|- | |- | ||
− | | | + | |channelMask |
− | |The | + | |The target channel mask as a [[Color]]. |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |cloneOffset |
− | | | + | |The current clone offset as a [[Point3D]]. |
|- | |- | ||
− | | | + | |invertAlpha |
− | | | + | |True if ''Invert Alpha'' is on. |
|- | |- | ||
− | | | + | |matchMove |
− | |True if | + | |True if ''Match Move'' is on. |
|- | |- | ||
− | | | + | |opaqueAlpha |
− | |True if | + | |True if ''Opaque Alpha'' is on. |
|- | |- | ||
− | | | + | |onionSkin |
− | | | + | |True if the Clone overlay mode is on. |
|- | |- | ||
− | | | + | |onionSkinMix |
− | | | + | |The mix value of the Clone overlay. |
|- | |- | ||
− | | | + | |opacity |
− | | | + | |The current brush opacity. |
|- | |- | ||
− | | | + | |preset |
− | | | + | |The current Preset index. |
|- | |- | ||
− | | | + | |profileType |
− | | | + | |The current Brush Profile index (0=Circle, 1=Square) |
|- | |- | ||
− | | | + | |transformMode |
− | |True if | + | |True if Clone Interactive Transform mode is enabled. |
|- | |- | ||
− | | | + | |cloneOffsetModifier |
− | |The | + | |The [[Silhouette Module Reference#Modifier Constants|Modifier]] used for setting the Clone Offset |
|- | |- | ||
− | | | + | |brushEditModifier |
− | |The | + | |The [[Silhouette Module Reference#Modifier Constants|Modifier]] used for editing the Brush Size. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 92: | Line 68: | ||
! scope="col" class="unsortable" | Description | ! scope="col" class="unsortable" | Description | ||
|- | |- | ||
− | | | + | |getState(state) |
− | + | |Returns the value for the [[Paint State]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |savePreset(index) |
− | | | + | |Save the current paint settings to the specified preset index. |
|- | |- | ||
− | | | + | |setState(state, value) |
− | | | + | |Sets the value for [[Paint State]] |
|} | |} |
Latest revision as of 18:59, 10 December 2012
The Paint object is a global object used to interact with the Paint UI while in the Paint Node.
Attributes
Name | Description |
---|---|
align | True if the Clone overlay mode is set to Align. |
alphaSource | The current alpha source used for Obey Alpha. (0=input, 1=output) |
brush | The current brush name. |
brushes | The List of available brush names. (read-only) |
brushSize | The current brush size (diameter in pixels). |
channelMask | The target channel mask as a Color. |
cloneOffset | The current clone offset as a Point3D. |
invertAlpha | True if Invert Alpha is on. |
matchMove | True if Match Move is on. |
opaqueAlpha | True if Opaque Alpha is on. |
onionSkin | True if the Clone overlay mode is on. |
onionSkinMix | The mix value of the Clone overlay. |
opacity | The current brush opacity. |
preset | The current Preset index. |
profileType | The current Brush Profile index (0=Circle, 1=Square) |
transformMode | True if Clone Interactive Transform mode is enabled. |
cloneOffsetModifier | The Modifier used for setting the Clone Offset |
brushEditModifier | The Modifier used for editing the Brush Size. |
Methods
Name | Description |
---|---|
getState(state) | Returns the value for the Paint State. |
savePreset(index) | Save the current paint settings to the specified preset index. |
setState(state, value) | Sets the value for Paint State |