POV-Ray : Newsgroups : povray.general : Passing macro as parameter : Re: Passing macro as parameter Server Time
26 Apr 2024 07:31:44 EDT (-0400)
  Re: Passing macro as parameter  
From: Dick Balaska
Date: 19 Dec 2021 16:26:43
Message: <61bfa393$1@news.povray.org>
On 12/15/2021 12:57 AM, Alessio Sangalli wrote:
> On 13-Dec-21 13:48, Alessio Sangalli wrote:
> 
>> I'll perform some experiments and gladly publish them.
> 
> It worked pretty good; a simplified version of what I have done is:
> 
> #macro animation_step(step_function, duration)
>      #declare local_clock = (clock - animation_framework_current_stage) 
> / duration;
>      Parse_String(concat(step_function, "(local_clock)"))
> #end

This is brilliant. I wish I'd thought of it years ago.

dik


Post a reply to this message

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