Console Commands - Texture


These commands affect the individual texture windows, like cloning them or saving their content to disk. Most of the operations are applied to the active texture, i.e the one, which is placed in the foreground.

Command List:

applygradient, clear, clone, close, forceclose, loadin, lockundo, mix, new, open, putclipboard, rename, rescale, save, setfocus, setopacity, setsource, setworkingtexture, undo/redo.



Usage: applygradient

Applies the Global Color Gradient to the active texture by converting its grayscale values to the gradient colors.



Usage: clear <color>

Deletes the content of the active texture and fills it with <color>, which is a color integer value.

Hint: Use the rgb <red>,<green>,<blue> command to convert RGB into integer values.



Usage: clone

Duplicates the texture to a new texture window.



Usage: close

Closes the active texture and asks whether you want to save it or not.

Hint: For scripts, use the forceclose command.



Usage: forceclose

Closes the active texture disregarding unsaved changes.

Hint: For scripts, use the forceclose command.



Usage: loadin <filename>

Loads the image <filename> into the active texture and rescales the image if necessary to fit the texture's dimensions.

Example: loadin E:\images\texture.jpg



Usage: lockundo

Disables the saving of undo data for the active texture. This is useful in scripts, if you want to apply multiple different operations and also want to be able to undo all of them in a single step.

Hint: Use the unlockundo command to release the undo lock.



Usage: mix <mixsource>,<mixtarget>,<mixmode>

Mixes two textures like it's done by using the Quick Texture Mixer symbol on the Texture Form. The parameters <mixsource> and <mixtarget> are the name of two texture forms. The result of the mixing operation overwrites the content of the <mixtarget> texture.

The following mixing modes available (supplied with the <mixmode> parameter):
opacity25, opacity50, opacity75, add, multiply, multiplydouble, multiplybright, variate, lightest, darkest, embosslow, embossmedium, embosshigh.

Example: mix texture1,texture2,embosslow

Hint: You can use the variable workingtexture as parameters for <mixsource> and <mixtarget>. This is the texture that was used with the setworkingtexture command.



Usage: new <width>,<height>

Creates a new texture with the dimensions <width>*<height>.

Example: new 320,240

Hint: The new texture is filled by the color, which is defined by the variable default texture color.



Usage: open <filename>

Loads the file <filename> to a new texture.

Example: open C:\mytextures\gravel.bmp



Usage: putclipboard

Copies the active texture as bitmap to the windows clipboard.

Hint: Use the getclipboard command to paste textures from the clipboard.



Usage: rename <newname>

Changes the name of the active texture to <newname>.

Example: rename MyTexture



Usage: rescale <width>,<height>

Changes the size of the active texture to a new one with the dimensions <width>*<height>.

Example: rescale 320,240



Usage: save <filename>

Saves the active texture to the file <filename>.

Example: save C:\mynewtexture.tga



Usage: setfocus <name>

Brings the texture <name> to front.

Example: setfocus mytexture01



Usage: setopacity [<name>]

Sets the texture <name> or the active texture as Opacity Map.

Hint: Use the unsetopacity command to have no opacity map.



Usage: setsource [<name>]

Sets the texture <name> or the active texture as Source Texture.

Hint: Use the unsetsource command to have no source texture.



Usage: setworkingtexture

Sets the active texture as "working texture", i.e. marks it as your target texture in scripts.

Hint: Use the getworkingtexture command to bring the texture back to front.



Usage: undo or redo

Takes the last operation back (undo) or redoes the last "undone" operation (redo).