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.

 

applygradient

Usage: applygradient

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

 

clear

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.

 

clone

Usage: clone

Duplicates the texture to a new texture window.

 

close

Usage: close

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

Hint: For scripts, use the forceclose command.

 

forceclose

Usage: forceclose

Closes the active texture disregarding unsaved changes.

Hint: For scripts, use the forceclose command.

 

loadin

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

 

lockundo

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.

 

mix

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.

 

new

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.

 

open

Usage: open <filename>

Loads the file <filename> to a new texture.

Example: open C:\mytextures\gravel.bmp

 

putclipboard

Usage: putclipboard

Copies the active texture as bitmap to the windows clipboard.

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

 

rename

Usage: rename <newname>

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

Example: rename MyTexture

 

rescale

Usage: rescale <width>,<height>

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

Example: rescale 320,240

 

save

Usage: save <filename>

Saves the active texture to the file <filename>.

Example: save C:\mynewtexture.tga

 

setfocus

Usage: setfocus <name>

Brings the texture <name> to front.

Example: setfocus mytexture01

 

setopacity

Usage: setopacity [<name>]

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

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

 

setsource

Usage: setsource [<name>]

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

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

 

setworkingtexture

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.

 

undo/redo

Usage: undo or redo

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