Using Size Control

   Print  Previous  Next

Functions Provided For Setting The Size

The following table provides an overview of all functions the effect can use to modify the size:

Function

Description

void SetSizeX(float value)

Sets the Size X (Width) value in percent of the matrix size.

float GetSizeX()

Returns the current Size X (Width).

void SetSizeY(float value)

Sets the Size Y (Height) value in percent of the matrix size.

float GetSizeY()

Returns the current Size Y (Height).

void SetSizeZ(float value)

Sets the Size Z (Depth) value in percent of the matrix size.

float GetSizeZ()

Returns the current Size Z (Depth).

void SetSize(float x, float y, float z)

Sets the size values x, y, z (Width, Height, Depth) in percent.

void SetPixelSizeX(int value)

Sets the Size X (Width) value in pixels.

int GetPixelSizeX()

Returns the current Size X (Width).

void SetPixelSizeY(int value)

Sets the Size Y (Height) value in pixels.

int GetPixelSizeY()

Returns the current Size Y (Height).

void SetPixelSizeZ(int value)

Sets the Size Z (Depth) value in pixels.

int GetPixelSizeZ()

Returns the current Size Z (Depth).

void SetPixelSize(int x, int y, int z)

Sets the size values x, y, z (Width, Height, Depth), in percent.

 

Remarks

Not all effects that are using the Size Control support the functions SetSize and SetPixelSize with several parameters.

 

MADRIX 2.X To MADRIX 3.X Migration Hints

The following functions and constants are not supported anymore. Please follow the hints to migrate your macros.

Function/Constant

Description

void SetWidth(int size)

Use SetSizeX(float value) or void SetSizeY(float value) instead.

int GetWidth()

Use GetSizeX() or void GetSizeY() instead.

 

MADRIX Version: 3.6f | Script Version: 2.19
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100%
Print   Previous   Next