POV-Ray : Newsgroups : povray.newusers : All the brackets are there but still get errors : Re: All the brackets are there but still get errors Server Time
14 May 2024 01:16:22 EDT (-0400)
  Re: All the brackets are there but still get errors  
From: scott
Date: 4 Jul 2013 11:35:35
Message: <51d59647$1@news.povray.org>
> If the part where i create the pins is placed outside the macro that creates the
> shell all goes fine.
> But when i place it all inside the macro it complains that the closing bracket
> for the object cant be found and it finds object instead.

You can't have more than one object inside another object. You need to 
put them inside a union instead.

> #macro BB02JS_GRND(Pins)
> //#local Pins = 7;
> #local Pitch = 2.54;
> #local H = .4;      // Pin height
> #local W = .6;      // Pin width
> #local L1 = 5;      // Total lenght outside main body
> #local L2 = 1.27;   // Lenght of pin on solder area
> #local L3 = 1.25;   // Height pin center above PCB
> #local i = 0;
>
> object{

That line should be union{ and then it seems to work.


Post a reply to this message

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