Using Look-At Types |
Print Previous Next |
Functions Provided For Setting Effect Look-At Types The following table provides an overview of all functions to modify effect look-at types:
Remarks The effects sometimes offer just a selection of all the look-at types which are listed below. The function SetLookAtType will only set look-at types which are offered by the effect.
This macro example randomly changes the look-at type each second. It works with the »SCE Image or »SCE Ticker / Scrolling Text effect, for example. (In the SCE Image effect, please load at least one image.) @scriptname=""; @author=""; @version=""; @description="";
int g_startTime;
void InitEffect() { time t = GetTime(); g_startTime = t.hour * 3600 + t.min * 60 + t.sec; }
void PreRenderEffect() { time t = GetTime(); int t2 = t.hour * 3600 + t.min * 60 + t.sec;
if(t2 - g_startTime >= 1) { g_startTime = t2; switch(random(0,5)) { case 0: SetLookAtType(LOOKAT_FRONT); break; case 1: SetLookAtType(LOOKAT_BACK); break; case 2: SetLookAtType(LOOKAT_LEFT); break; case 3: SetLookAtType(LOOKAT_RIGHT); break; case 4: SetLookAtType(LOOKAT_TOP); break; case 5: SetLookAtType(LOOKAT_BOTTOM); break; default: break; } } }
void PostRenderEffect() {
}
void MatrixSizeChanged() { InitEffect(); }
|
MADRIX Version: 3.6j | Script Version: 2.22 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
Print Previous Next |