POV-Ray : Newsgroups : povray.unofficial.patches : something wrong with automate function definition Server Time
1 Nov 2024 13:19:12 EDT (-0400)
  something wrong with automate function definition (Message 1 to 1 of 1)  
From: Wlodzimierz ABX Skiba
Subject: something wrong with automate function definition
Date: 24 Oct 2000 12:39:21
Message: <39f5bb39$1@news.povray.org>
I have strange error - perhaps it is bug

there is such code in my macro"


function{if(z-Params[counter][17],0,max(1-sqrt(sqr(x)+sqr(y)+sqr(z)),0))
}

but this produces error

  function {if(z-Params[counter <----ERROR
  memory macro:143: error: numeric expression expected but float
identifier found instead.

than I change this to:

  #local a=Params[counter][17];
  function{if(z-a,0,max(1-sqrt(sqr(x)+sqr(y)+sqr(z)),0))}

but this produces another error

  #version <----ERROR
  working.pov:1: error: object or directive expected but version found
instead.

after MegaPOV restart (BTW: 0.6a)
version with #local works fine

ABX


Post a reply to this message

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