Is it possible for FileExecute to run a dylib (a Mac dynamic library) or is it limited to just .dll and .lib libraries?
Additional, possibly impertinent information:
When trying to load a dylib, I get the error from Zbrush that the “Specified execute-file could not be found”, while a FileExists command does find the same file.
Here is the code I’m working with:
[IButton,“Hello Button”,“This is my first button”,
[IShowActions,0]
[VarDef,Zstr,“Hello dylib!”]
[VarDef,filePath, “sampleDylib.dylib”]
[If,
[FileExists, filePath] ,
[FileExecute,filePath,MyFirstF,Zstr],
[Note, “file does not exist”]
]
,160,30
]
And the dylib is incredibly simple, and isn’t currently meant to do anything at all:
char *MessageOut = NULL;
void MyFirstF (unsigned char *message, double number, void *memblock,void *Othermemblock )
{
I’m running Zbrush2 on MacOSX.
Thank you kindly,
e