|
|
>Does anyone know if it's possible to control POV-RAY's clock variable via
>the GUI Extensions API.
You can set the clock variable via the command line by "+k", so you
can set it with for example like this
ExternalVarStruct tVars;
unsigned char bReturn;
tVars.RecSize = sizeof(ExternalVarStruct);
strcpy(tVars.command_line, "+k3.4");
bReturn = (*Instance->Request) (RequestSetVars, &tVars);
if you want to ADD the clock variable to the commandline, you have to
get the commandline first by
bReturn = (*Instance->Request) (RequestGetVars, &tVars);
and then cat the clock variable to it before setting it again with
bReturn = (*Instance->Request) (RequestSetVars, &tVars);
I hope this is o.k. and helps,
Friedemann
Friedemann Schmidt
F.S### [at] fhtw-berlinde
Raytracing-Gallery: http://www.rz.fhtw-berlin.de/~s0049669/
Post a reply to this message
|
|