"jr" <cre### [at] gmailcom> wrote:
> docs 220.127.116.11.2 "declare vs local", see paragraph beginning with "Use of #local
> within an include file ...". (no different, afaict, from being within a macro)
I considered the ephemeral nature and scope, but if it does indeed apply, then I
don't currently see how. We're definitely looking for the problem/solution in
the same place.
The #declare of Z ought to create a Z that persists in all parts of the scene
Even if it didn't, I'm still in the inc file that I created it in, so in theory
I ought to be able to (and should) use #local (but I'm still in early
#local Z = Z - dz; ought to work because we're still IN the inc file, and IN the
loop - and THAT works in the standalone scene (where I'd think the same #local
issue would apply). Otherwise I'd have to do some wacky #local Z = global(Z) -
dz; which obviously has it's own failure, and how would you do a #while?
Once the whole loop is complete, I don't need Z or long, because I'm done
defining the object.
Post a reply to this message