MADRIX Forum • ImportPatch
Page 1 of 1

ImportPatch

Posted: Mon Dec 19, 2022 6:36 pm
by djpeterlewis
Hi

I have been trying to do a Patch Import using the script. I get errors like ImportPatch() does not exist.
If anyone has been successful, please let me know how you did it.
This is one of the options I have tried

Code: Select all

@scriptname="";

@author="";

@version="";

@description="";
void InitEffect()
{
ImportPatch("c:\test\test.mpz");
}
void PreRenderEffect()
{
}
void PostRenderEffect()
{
}

Thank you
Peter

Re: ImportPatch

Posted: Tue Dec 20, 2022 1:44 pm
by Schulze
Hi Peter,

You are almost there! For the file path you will need to us slashes instead of backslashes.

Code: Select all

@scriptname="";
@author="";
@version="";
@description="";

void InitEffect()
{
ImportPatch("c:/test/test.mpz");
}
void PreRenderEffect()
{
}
void PostRenderEffect()
{
}