ImportPatch

Post Reply
djpeterlewis
Posts: 6
Joined: Sun Jul 17, 2022 8:10 pm

ImportPatch

Post 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
Schulze
Support
Support
Posts: 335
Joined: Fri Mar 22, 2019 4:21 pm
Contact:

Re: ImportPatch

Post 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()
{
}
Post Reply