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
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