Examples

   Print  Previous  Next

GetFadeType

Select a different fade type while running the script and monitor the 'Script output' to see the result.

@scriptname="get fade type test";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

{

 switch(GetFadeType())

 {

    case CROSSFADE: WriteText("CrossFade");break;

    case WHITEFADE: WriteText("WhiteFade");break;

    case BLACKFADE: WriteText("BlackFade");break;

    case COLORFADE: WriteText("ColorFade");break;

 }

}

 

void PostRenderEffect()

{}

 

 

SetFadeType

Watch the fade area while running the script to see how the fade type is switched.

@scriptname="set fade type test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value%=200;// range 0...200

 switch(Value)

 {

    case 0: SetFadeType(CROSSFADE);break;

    case 50: SetFadeType(WHITEFADE);break;

    case 100: SetFadeType(BLACKFADE);break;

    case 150: SetFadeType(COLORFADE);break;

 }

 Value++;

}

 

void PostRenderEffect()

{}

 

 

GetFadeColor

Select a different color for the color-fade while running the script and monitor the 'Script output' to see the result.

@scriptname="get fade color values";

@author="";

@version="";

@description="";

 

color c;

void InitEffect()

{}

 

void PreRenderEffect()

{

 c=GetFadeColor();

 WriteText("Red: "+(string)c.r+", Green: "+(string)c.g+", Blue: "+(string)c.b+",
  White:"+(string)c.w);

}

 

void PostRenderEffect()

{}

 

 

SetFadeColor

Monitor the color window next to the color-fade button to see the result.

@scriptname="set fade color red value";

@author="";

@version="";

@description="";

 

color c;

void InitEffect()

{}

 

void PreRenderEffect()

{

 c.r++;

 c.r%=256;// range 0...255

 SetFadeColor(c);

}

 

void PostRenderEffect()

{}

 

 

GetFadeTime

Increase or decrease the fade time and monitor the 'Script output' while running the script.

@scriptname="get fade time";

@author="";

@version="";

@description="";

 

float fTime;

void InitEffect()

{}

 

void PreRenderEffect()

{

 fTime=GetFadeTime();

 WriteText("FadeTime: "+(string)fTime);

}

 

void PostRenderEffect()

{}

 

 

SetFadeTime

Watch the fade time box while running the script.

@scriptname="set fade time";

@author="";

@version="";

@description="";

 

float fTime=0.0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 fTime+=0.1;

 if(fTime>60.0)

         fTime=0.0;// range 0...60

 SetFadeTime(fTime);

}

 

void PostRenderEffect()

{}

 

 

GetFadeValue

Slide the fader from A to B or back and monitor the 'Script output' while running the script.

@scriptname="get fader value A-B ";

@author="";

@version="";

@description="";

 

int fValue;

void InitEffect()

{}

 

void PreRenderEffect()

{

 fValue=GetFadeValue();

 WriteText((string)fValue);

                         

}

 

void PostRenderEffect()

{}

 

 

SetFadeValue

Watch the fader closely to see the result of the script.

@scriptname="set fader value A-B";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value++;

 Value%=256;// range 0...255

 SetFadeValue(Value);

}

 

void PostRenderEffect()

{}

 

 

GetFreeze

To test this script, use the 'Freeze' button and monitor the 'Script output' while running the script.

@scriptname="get freeze button test";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

if(GetFreeze())

  WriteText("Freeze button is pressed");

else

  WriteText("Freeze button is not pressed");

}

 

void PostRenderEffect()

{}

 

 

SetFreeze

Watch the 'Freeze' button to see the effect of the script.

@scriptname="freeze, unfreeze test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value++;

 Value%=100;// range 0...100

 switch(Value)

 {

    case 5: SetFreeze(FREEZE);break;

    case 55: SetFreeze(UNFREEZE);break;

 }

}

 

void PostRenderEffect()

{}

 

 

GetMasterFader

Adjust the Master Fader while running the script and monitor the 'Script output'.

@scriptname="get fader value from master";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

{

 WriteText("MasterFader: "+(string)GetMasterFader());

}

 

void PostRenderEffect()

{}

 

 

SetMasterFader

Watch the Master Fader closely to see the result of the script.

@scriptname="set master fader value";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value++;

 Value%=256;// range 0...255

 SetMasterFader(Value);

}

 

void PostRenderEffect()

{}

 

 

GetAudioFader

Adjust the audio fader while running the script and monitor the 'Script output'.

@scriptname="get fader value from audio";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

{

 WriteText("AudioFader: "+(string)GetAudioFader());

}

 

void PostRenderEffect()

{}

 

 

SetAudioFader

Monitor the audio fader closely to see the result of the script.

@scriptname="set audio fader";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value++;

 Value%=256;// range 0...255

 SetAudioFader(Value);

}

 

void PostRenderEffect()

{}

 

 

CuelistStop/CuelistPlay

To test this script, a playlist with duration and minimal 2 Cue List entries is required.

@scriptname="cue list stop/start test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 Value++;

 Value%=500;// range 0...500

 switch(Value)

 {

    case 10: CuelistStop();break;

    case 260: CuelistPlay();break;

 }

}

 

void PostRenderEffect()

{}

 

 

CuelistGo/CuelistBack

To test this script, a playlist with duration and minimal 2 Cue List entries is required.

@scriptname="cue list go/back test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 

 Value++;

 Value%=500;// range 0...500

 switch(Value)

 {

    case 10: CuelistGo();break;

    case 260: CuelistBack();break;

 }

}

 

void PostRenderEffect()

{}

 

 

CuelistGoto

To test this script, a playlist without duration and minimal 9 Cue List entries is required.

@scriptname="cue list goto test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 

 Value++;

 Value%=250;// range 0...250

 if(Value%50==0)

         CuelistGoto(Value/25);    // skip 1,3,5,7,9,1,3,...

         //CuelistGoto(Value/50);        // skip 1,2,3,4,5,6,1,2,...

}

 

void PostRenderEffect()

{}

 

 

To test this script, create a Cue List, activate several Cues, and monitor the 'Script output'.

@scriptname="CurrentCue";  

@author="jky / info@madrix.com";  

@version="1.0 Madrix 2.8a";  

@description="View current item from Cue List";  

 

void InitEffect() 

{} 

 

void PreRenderEffect() 

{} 

 

void PostRenderEffect() 

     WriteText((string)CuelistCurrentCue()); 

}

 

 

GetStorageSpeedMaster

Adjust the Speed Master of Storage area A or B while running the script and monitor the 'Script output'.

@scriptname="get Speed Master test";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

WriteText("SpeedA:"+(string)GetStorageSpeedMaster(STORAGE_A)

+" SpeedB:"+(string)GetStorageSpeedMaster(STORAGE_B));

}

 

void PostRenderEffect()

{}

 

 

SetStorageSpeedMaster

This is script is best tested with the SCE Colorscroll effect. Monitor Preview A and B as well as the Speed Master faders to see the results of the script.

@scriptname="Speed Master test";

@author="";

@version="";

@description="";

 

float Value=0.0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 

 Value+=0.1;

 if(Value>10.0)

         Value=-10.0;// range 0...255

 

 SetStorageSpeedMaster(STORAGE_A,Value);// storage A

 SetStorageSpeedMaster(STORAGE_B,Value/2.0);// storage B

}

 

void PostRenderEffect()

{}

 

 

GetStoragePause

To test this script, press the 'Pause' button of Storage area A or B and monitor the 'Script output'.

@scriptname="get storage pause test";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

if(GetStoragePause(STORAGE_A))

  WriteText("Storage A paused");

else

  WriteText("Storage A running");

if(GetStoragePause(STORAGE_B))

  WriteText("Storage B paused");

else

  WriteText("Storage B running");

}

 

void PostRenderEffect()

{}

 

 

SetStoragePause

This is script is best tested with the SCE Colorscroll effect. Monitor the 'Pause' buttons of Storage A and B to see the effects of the script.

@scriptname="storage no-/pause test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 

 Value++;

 Value%=200;// range 0...200

 

 switch(Value)

 {

            case 10: SetStoragePause(STORAGE_A,PAUSE);break;// storage A

         case 60: SetStoragePause(STORAGE_B,PAUSE);break;// storage B

            case 110: SetStoragePause(STORAGE_A,NOPAUSE);break;// storage A

         case 160: SetStoragePause(STORAGE_B,NOPAUSE);break;// storage B

 }

}

void PostRenderEffect()

{}

 

 

GetStoragePlace

While running the script, select different Storage Places across Storage A or B and monitor the 'Script output'. The currently selected Storage Place number minus 1 should be displayed.

@scriptname="get storageplace test";

@author="";

@version="";

@description="";

 

void InitEffect()

{}

 

void PreRenderEffect()

  WriteText("Storage A:"+(string)GetStoragePlace(STORAGE_A)
  +" Storage B:"+(string)GetStoragePlace(STORAGE_B));

}

 

void PostRenderEffect()

{}

 

 

SetStoragePlace

Monitor the effect sections A and B as well as the two Storage Areas (A and B) to see the results of the script.

@scriptname="test setStoragePlace with and without autofade";

@author="";

@version="";

@description="";

 

int Value=0;

int place=0;

void InitEffect()

{

 SetFadeTime(1.0);// better for demonstration

}

 

void PreRenderEffect()

{

 Value++;

 Value%=1000;// range 0...1000

 switch(Value)

 {

 case 150: SetStoragePlace(STORAGE_A,place,WITH_AUTOFADE);break;
         // storage A   with autofade

 case 300: SetStoragePlace(STORAGE_B,place,WITH_AUTOFADE);break;
         // storage B   with autofade

 case 450: place++;

         case 600: SetStoragePlace(STORAGE_A,place,WITHOUT_AUTOFADE);break;
 // storage A without autofade, if FaderValue not an place A

 case 750: SetStoragePlace(STORAGE_B,place,WITHOUT_AUTOFADE);break;
 // storage B without autofade, if FaderValue not an place B

 case 900: place++;

 }  

 if(place>59)   // place range 0...59

         place=0;

}

 

void PostRenderEffect()

{}

 

 

GetStorageSubMaster

Adjust the submasters of Storage A and B ('Sub' button) and monitor the 'Script output' while running the script.

@scriptname="storage submaster get test";

@author="";

@version="";

@description="";

 

int subA;

int subB;

void InitEffect()

{}

 

void PreRenderEffect()

{

 subA=GetStorageSubMaster(STORAGE_A);// storage A

 subB=GetStorageSubMaster(STORAGE_B);// storage B

 WriteText("Submaster A:" +(string)subA +", Submaster B:" +(string)subB);           

}

 

void PostRenderEffect()

{}

 

 

SetStorageSubMaster

Select a SCE effect in both effect areas and monitor the two previews (Preview A and B) while running the script.

@scriptname="storage submaster set test";

@author="";

@version="";

@description="";

 

int Value=0;

void InitEffect()

{}

 

void PreRenderEffect()

{

 

 Value++;

 Value%=256;// range 0...255

 

 SetStorageSubMaster(STORAGE_A,Value);// storage A

 SetStorageSubMaster(STORAGE_B,255-Value);// storage B

 WriteText("SubA: "+(string)Value+", SubB: "+(string)(255-Value));

}

 

void PostRenderEffect()

{}