Anonymous
The Operation global object allows execution of any operation from a script.
The object returned by the GetConfiguration method has the following methods and properties.
// create configuration object for the colorize operation
var colorize = Operation.Create("Raster Image - Colorize");
// set parameters of the Colorize operation
colorize.SetParameter("Hue", 120);
colorize.Saturation = 0.3; // the simplified way of setting properties
// execute the operation on the main document
Operation.Execute(colorize, Document);
// resample current image to fit desktop (warning: aspect ratio may change)
var resample = Operation.Create("Raster Image - Resample");
resample.Mode = 1;
resample.SizeXAbs = Blender.DesktopSizeX;
resample.SizeYAbs = Blender.DesktopSizeY;
Operation.Execute(resample, Document);
Find out how Vista icons differ from XP icons.
See how RealWorld Icon Editor handles Vista icons.