POV-Ray : Newsgroups : povray.animations : alternating objects depending on Z value of spline vector animation : Re: alternating objects depending on Z value of spline vector animation Server Time
8 May 2024 08:38:18 EDT (-0400)
  Re: alternating objects depending on Z value of spline vector animation  
From: omniverse
Date: 19 Sep 2010 23:30:01
Message: <web.4c96d49478c97e55d939a6800@news.povray.org>
"CAD-Andi" <nomail@nomail> wrote:
>
> I'm controlling the location of a object by the use of a spline (see code
> below).
>
> #if (Z-value of Spline_1(clock) is less or equal 1000 ) // Is something like
> this possible? If yes, how?
>  object {TARGET translate Spline_1(clock)}
> #else
>  object {TARGET2 translate Spline_1(clock)}
> #end

I think this might be what you're looking for.

#if (Spline_1(clock).z <= 1000)


Post a reply to this message

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