POV-Ray : Newsgroups : povray.programming : GUI Question Server Time
29 Jul 2024 06:27:41 EDT (-0400)
  GUI Question (Message 1 to 2 of 2)  
From: Winefred Washington
Subject: GUI Question
Date: 2 Oct 1998 02:19:57
Message: <3614627d.0@news.povray.org>
Does anyone know if it's possible to control POV-RAY's clock variable via
the GUI Extensions API.

Thanks in advance,
Winefred


Post a reply to this message

From: Friedemann Schmidt
Subject: Re: GUI Question
Date: 2 Oct 1998 07:43:02
Message: <3614aaff.1198199@news.povray.org>
>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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.