Mike Horvath <mik### [at] gmailcom> wrote:
> On 2/17/2019 5:36 AM, Mike Horvath wrote:
> > This involves probably some very easy algebra.
> > I want a cylinder to spin 360 degrees when the clock is between 0 and
> > 0.6667. I want another object to spin when the clock is between 0.3333
> > and 0.6667. Finally I want the camera to rotate 90 degrees when the
> > clock is between 0.6667 and 1.
> > How do I set this up? Thanks.
> > Michael
> PS - I was thinking of maybe a macro that takes a start time and an end
> time, and outputs a value between 0 and 1?
#macro MacroName(StartTime, EndTime)
#local R = (clock - StartTime)/(EndTime - StartTime);
#local S = min(max(0, R), 1);
#end // macro MacroName
rotate MacroName(0/3, 2/3)*360*y
rotate MacroName(1/3, 2/3)*SomeAngle*y
rotate MacroName(2/3, 3/3)*90*y
Post a reply to this message