Hello World |
First Script We like to write our first script and start with only one function in the render section.
@scriptname=""; @author=""; @version=""; @description="";
void InitEffect() { WriteText("Hello World"); }
void RenderEffect() {
}
void MatrixSizeChanged() { InitEffect(); }
If everything is correct you should see a "Hello World" output at the Script Output section. WriteText is a function of the MADRIX Script Language which write text into the script output during execution.
InitEffect() vs. RenderEffect() Now we insert this line into the RenderEffect() method instead of the InsertEffect() method to get the following code.
@scriptname=""; @author=""; @version=""; @description="";
void InitEffect() {
}
void RenderEffect() { WriteText("Hello World"); }
void MatrixSizeChanged() { InitEffect(); }
If we now compile the script we get a lot of "Hello World" outputs in the Script Output section.
MatrixSizeChanged() There is one more method in the template if we create a new script.
Congratulations! You have created your first MADRIX Script |
MADRIX 5 Tutorials Version 1.0 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |