This script creates a stencil from a selection. Only painted areas are included.
1) Select area
2) Run script
Questions for Ambient:
1) Since some scripts are useful as macros, will we be able to bind them to keyboard shortcuts?
2) Is there a command to fill a selection with the forground colour?
Code://=========================================================================== //=========================================================================== // ArtRage Script File. //=========================================================================== //=========================================================================== //=========================================================================== // Version Block - Script version and ArtRage version: //=========================================================================== <Version> ArtRage Version: ArtRage 3 Studio Pro ArtRage Build: 3.5.0 Professional Edition: Yes Script Version: 1 </Version> //=========================================================================== // Header block - Info about the painting/person who generated this script: //=========================================================================== <Header> // === Project data Painting Name: "Untitled" Painting Width: 1600 Painting Height: 860 Painting DPI: 72 //Mask Edge Map Width: 1600 //Mask Edge Map Height: 860 // === Author data Author Name: "Charlie" Script Name: "Selection to Stencil" Comment: "Convert selection to stencil" Script Type: "" Script Feature Flags: 0 </Header> //=========================================================================== // ArtRage project features. Sets the startup state of the script: //=========================================================================== //=========================================================================== // Script data follows: //=========================================================================== <Events> Wait: 0.000s EvType: Command CommandID: Copy Wait: 0.000s EvType: Command CommandID: Paste int nLayer = CurrentLayerIndex() Wait: 0.000s EvType: Command CommandID: CID_SelectSpecificLayer ParamType: uint32 Value: { nLayer } Wait: 0.000s EvType: Command CommandID: CID_CreateStencilFromSpecificLayer ParamType: uint32 Value: { nLayer } Wait: 0.000s EvType: Command CommandID: CID_DeleteSpecificLayer ParamType: uint32 Value: { nLayer } Wait: 0.000s EvType: Command CommandID: Deselect All