From: Agustin Maria Rodriguez
> Hi, Peter. Dunno which error you�re talking about. Maybe you were
> not
> creating the spheres before trying to make them child of the main one.
> Oh, by the way, you were trying to create many newShaders with the same
> name and that would give you a script error. Anyway, here�s a working
> version:
>
> www.onwine.com.ar/temp/addChild.zip
>
> -- create model and apply shader to it
> sm1 = member("model").newModel("childSphere1", sr)
>
> --make this sphere child of the main one
> parentSphere = member("model").model("sphere1")
> parentSphere.addChild(sm1)
>
> Regards,
> --
> Agust�n Mar�a Rodr�guez | [EMAIL PROTECTED] | www.OnWine.com.ar
Hi Agustin, it worked! I figured out that I haven't created a child object
first when I tried to do something with it. That was the problem.
Thanks a lot
Cheers
peb965
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]