yes nasty, plus as in past experience its still possible some !(at)#$%
will rename the group.
you'd think there'd be a port to track back to that group contributing
to associated.....
graham
-------------------------------------------
Graham D Clark (available for future work a little after Barnyard
release and some surfing)
CG Supervisor, Barnyard
http://www.barnyardmovie.com
http://www.grahamdclark.com
http://www.linkedin.com/pub/1/173/498
On 8/30/06, Steven Caron <carons(at)gmail.com> wrote:
forgot about dictionary.getobject() will give that a shot.
my string of nestedobjects one after another looks nasty.
thanks
Steven
On 8/30/06, Martin Bélanger <martinb(at)softimage.com> wrote:
>
>
>
> I just helped someone recently with this issue. The idea was to add a
selected Model in Branch mode into the Associated model group list. I
cheated when it was time to get the associated model group as you can see.
>
> My vb script looked something like this:
>
> 'oModelLight is defined has a Model which contains all the scene ligths
amongs other things...
>
> set oLights = oModelLight.FindChildren("*",siLightPrimType, ,True)
>
>
> for each light in oLights
>
> 'We just want to process the spot lights...
>
> if light.ActivePrimitive.Parameters("Type").value = 2
then
>
> set groupAL = Dictionary.GetObject(light&".light.Associated Models")
>
> groupAL.AddMember oModel2Add ,True
>
> End if
>
> Next-Martin
>
> ________________________________
From: owner-xsi(at)Softimage.COM [mailto: owner-xsi(at)Softimage.COM] On Behalf Of
Steven Caron
> Sent: Wednesday, August 30, 2006 2:40 PM
> To: xsi(at)Softimage.COM
> Subject: scripting lights... associated models group
>
>
>
>
> Hey
>
> can someone recommend a way to work with the associated models group under
a light?
>
> i am creating the light in scripting so i have the object, i dont see a
simple OM shortcut or any method to return the associated models group.
>
> thank
> steven
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi