POV-Ray : Newsgroups : povray.general : Macro, Max. Number of Parameters Server Time
28 Dec 2024 23:30:33 EST (-0500)
  Macro, Max. Number of Parameters (Message 1 to 5 of 5)  
From: Sereib
Subject: Macro, Max. Number of Parameters
Date: 25 Aug 2013 03:50:02
Message: <web.5219b694efbe9d593ba0aaa90@news.povray.org>
Hello all,

it seems that a #macro() can only handle 55 parameters. Any chance to increase
this number? I would need some more for a human model.

Thanks!


Post a reply to this message

From: Le Forgeron
Subject: Re: Macro, Max. Number of Parameters
Date: 25 Aug 2013 04:32:33
Message: <5219c121$1@news.povray.org>
Le 25/08/2013 09:47, Sereib nous fit lire :
> Hello all,
> 
> it seems that a #macro() can only handle 55 parameters. Any chance to increase
> this number? I would need some more for a human model.

If you need so much, it might be time to put some of them inside an array.


Post a reply to this message

From: clipka
Subject: Re: Macro, Max. Number of Parameters
Date: 25 Aug 2013 07:50:19
Message: <5219ef7b$1@news.povray.org>
Am 25.08.2013 09:47, schrieb Sereib:
> Hello all,
>
> it seems that a #macro() can only handle 55 parameters. Any chance to increase
> this number? I would need some more for a human model.

If you're using the model only for yourself, you could modify the source 
code and build a customized version of POV-Ray; the maximum number of 
parameters per macro (and also per function) is controlled by 
MAX_PARAMETER_LIST in source/backend/parser/parse.h.


Post a reply to this message

From: Alain
Subject: Re: Macro, Max. Number of Parameters
Date: 25 Aug 2013 17:04:34
Message: <521a7162$1@news.povray.org>

> Hello all,
>
> it seems that a #macro() can only handle 55 parameters. Any chance to increase
> this number? I would need some more for a human model.
>
> Thanks!
>
>

You can do as is done for blobman and make human: Use vectors to specify 
a bunch of related angles, like those of the joins of the fingers or 
shoulder and arm. That way, a single parameter can cary up to 5 values.

You can pass an array or a spline as a parameter.


Post a reply to this message

From: Sereib
Subject: Re: Macro, Max. Number of Parameters
Date: 26 Aug 2013 07:45:01
Message: <web.521b3f233306ef28b8c295cc0@news.povray.org>
Alain <kua### [at] videotronca> wrote:

> > Hello all,
> >
> > it seems that a #macro() can only handle 55 parameters. Any chance to increase
> > this number? I would need some more for a human model.
> >
> > Thanks!
> >
> >
>
> You can do as is done for blobman and make human: Use vectors to specify
> a bunch of related angles, like those of the joins of the fingers or
> shoulder and arm. That way, a single parameter can cary up to 5 values.
>
> You can pass an array or a spline as a parameter.

Good idea(s), thank you all!


Post a reply to this message

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