|
|
On 2/18/2019 12:38 PM, JimT wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> On 2/17/2019 7:27 AM, Tor Olav Kristensen wrote:
>>> #macro MacroName(StartTime, EndTime)
>>>
>>> #local R = (clock - StartTime)/(EndTime - StartTime);
>>> #local S = min(max(0, R), 1);
>>>
>>> S
>>>
>>> #end // macro MacroName
>>
>>
>> Thank you! That's perfect.
>>
>>
>> Mike
>
> I hesitate to try to improve on a TOK solution, but in my animations, a very
> early line will be
>
> #declare MyTime = clock;
>
> then I use MyTime wherever I would use clock. This lets me #declare MyTime =
> 0.6667, for example to go to a position in the animation to test a particular
> stage without running the whole animations. You would pass MyTime to the #macro.
> This may be obvious, but it is an improvement.
>
>
I'll keep that in mind, thanks! What I usually do is set the clock value
using the +K switch if I need to. I get confused by all the INI settings
sometimes too.
Mike
Post a reply to this message
|
|