> All { braces must have a matching } brace. This scene just puts the 
> opening braces in the macro, and the closing braces after the calls to 
> that macro. Cleanly indented, the code's a lot easier to understand:
> 
> #macro C()
>     function {
>         pigment {crackle
> #end
> 
> #local A = C() solid}}
> 
> #local B = C() }}
> 
> This is equivalent to:
> 
> #local A = function {pigment {crackle solid}}
> 
> #local B = function {pigment {crackle}}
> 
OH.  Clever.  I guess that if I traced it out the whole code, I should 
have seen that.
Thanks
Dave Matthews
 Post a reply to this message 
 |