POV-Ray : Newsgroups : povray.general : Animation feature request. : Re: Animation feature request. Server Time
28 Mar 2026 12:57:04 EDT (-0400)
  Re: Animation feature request.  
From: m@b
Date: 22 Mar 2026 21:50:00
Message: <web.69c09b89f7a277641463fe62d568493a@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "m@b" <nomail@nomail> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > > ...
> > > So, in your ini file you do something like Subset_Start_Frame=30
> > > but I'm wondering if you can then do something like
> > > Declare=SSF=Subset_Start_Frame.
> > > If not, you could just set Declare=SSF=30 and then do Subset_Start_Frame=SSF
> > > (if that works)
> >
> > Thanks for the reply, I didn't realise I could pass identifier values from an
> > ini file, that's useful.
> >
> > Unfortunately "The value on the right-hand side must be a constant float value."
> >
> > So this works:
> >
> >    Subset_Start_Frame=394
> >    Declare=SSF=394
> >
> > But these don't:
> >
> >    Subset_Start_Frame=394
> >    Declare=SSF=Subset_Start_Frame
> >
> >    Subset_Start_Frame=394
> >    Declare=SSF=float(Subset_Start_Frame)
> >
> >    Declare=SSF=394
> >    Subset_Start_Frame=SSF
> >
> > Declaring twice is no big hardship as long as I remember!
>
> another option, not yet mentioned, is having a (shell) script run from the
> 'pre_frame_command' which writes the values to a simple CSV type file that you
> can read from within the scene.
>
>
> regards, jr.

Hmm, yes, I could shell out to a Python script that parses the resolution.ini
file.
But how could Python know which section of the resolution file I have selected?

m@


Post a reply to this message

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