# Scripting commands

The following is an alphabetical list of all scripting commands supported by Fotografix, along with their parameters (if any) and menu equivalent. Command names are case-sensitive and do not contain any spaces. Words in bold are parameters; acceptable values for these are listed in the Parameters column.

Command | Parameters | Menu equivalent / description
--- | --- | ---
AddLayerMask | None | Layer > Add Layer Mask
AddNoise amount | amount = number (0 to 100) | Filter > Miscellaneous > Add Noise
BlackWhite red green blue | red, green, blue = number (0 to 100) | Adjustments > Black & White
Blur radius | radius = number | Filter > Blur > Blur
BrightnessContrast brightness contrast | brightness, contrast = number (-255 to 255) | Adjustments > Brightness/Contrast
Clear | None | Edit > Clear
ColourBalance red green blue | red, green, blue = number (-255 to 255) | Adjustments > Colour Balance
Copy | None | Edit > Copy
Cut | None | Edit > Cut
DeleteLayer | None | Layer > Delete Layer
Desaturate | None | Adjustments > Desaturate
Deselect | None | Select > Deselect
Diffuse | None | Filter > Stylize > Diffuse
DuplicateLayer | None | Layer > Duplicate Layer
EdgesAll | None | Filter > Find Edges > All
EdgesHorz | None | Filter > Find Edges > Horizontal
EdgesVert | None | Filter > Find Edges > Vertical
EdgesDiag | None | Filter > Find Edges > Diagonal
Emboss | None | Filter > Stylize > Emboss
FillFG | None | No menu equivalent (Fills the selected region with the foreground colour)
FillBG | None | No menu equivalent (Fills the selected region with the background colour)
FlipH | None | Image > Flip > Horizontal
FlipV | None | Image > Flip > Vertical
GradientMap | None | Adjustments > Gradient Map
Halftone radius | radius = number (1 to 100) | Filter > Miscellaneous > Halftone
HideLayer | None | No menu equivalent (Makes the active layer hidden)
Invert | None | Adjustments > Invert
Levels shadows midtones highlights | shadows, highlights = number (0 to 255) midtones = number (75 to 125) | Adjustments > Levels
MotionBlur distance | distance = number | Filter > Blur > Motion Blur
MoveLayerDown | None | No menu equivalent (Moves the active layer down in the layer stack)
MoveLayerUp | None | No menu equivalent (Moves the active layer up in the layer stack)
NewLayer | None | Layer > New > Layer
NewLayerCopy | None | Layer > New > Layer via Copy
NewLayerCut | None | Layer > New > Layer via Cut
NightVision | None | Filter > Stylize > Night Vision
Offset x y | x, y = number | Filter > Miscellaneous > Offset
Paste | None | Edit > Paste
Pixelate level | level = number (1 to 31) | Filter > Miscellaneous > Pixelate
Posterize levels | levels = number (3 to 7) | Adjustments > Posterize
RasterizeLayer | None | Layer > Rasterize Layer
RemoveLayerMask:Apply RemoveLayerMask:Discard | None | Layer > Remove Layer Mask
RevealAll | None | Image > Reveal All
SelectAll | None | Select > All
SelectContract distance | distance = number | Select > Modify > Contract
SelectEllipse x1 y1 x2 y2 SelectEllipse:Add x1 y1 x2 y2 SelectEllipse:Subtract x1 y1 x2 y2 | (x1, y1) - (x2, y2) = numbers (bounding rectangle) | No menu equivalent (Equivalent to the Elliptical Marquee tool)
SelectExpand distance | distance = number | Select > Modify > Expand
SelectFeather radius | radius = number | Select > Modify > Feather
SelectInverse | None | Select > Inverse
SelectRectangle x1 y1 x2 y2 SelectRectangle:Add x1 y1 x2 y2 SelectRectangle:Subtract x1 y1 x2 y2 | (x1, y1) - (x2, y2) = numbers (bounding rectangle) | No menu equivalent (Equivalent to the Rectangular Marquee tool)
SelectTransparency | None | Select > Layer Transparency
SetLayerOpacity opacity | opacity = number (0 to 100) |
Sharpen | None | Filter > Sharpen > Sharpen
ShowLayer | None | No menu equivalent (Makes the active layer visible)
Solarize | None | Filter > Stylize > Solarize
Threshold threshold | threshold = number (0 to 255) | Adjustments > Threshold
UnsharpMask amount | amount = number (1 to 100) | Filter > Sharpen > Unsharp Mask