Yeah, must be a bug I guess.  Easy to circumvent but odd nonetheless.

Thanks Stephen.

DAN



On Thu, Sep 26, 2013 at 6:38 PM, Stephen Blair <[email protected]>wrote:

> Looks like a problem with FindObjects2 to me.
>
> IsClassOf( c.siGroupID ) returns True for all groups, but FindObjects2
> finds only the Associated Model group. And if you delete the light,
> FindObjects2 doesn't find any group at all.
>
>
>
>
> On Thu, Sep 26, 2013 at 12:57 PM, Dan Yargici <[email protected]>wrote:
>
>> Hello all.
>>
>> When you run:
>>
>> from win32com.client import constants as c
>> Application.NewScene("", "")
>> Application.SelectObj("light", "", "")
>> Application.CreateGroup("", "", "")
>> Application.LogMessage(Application.FindObjects2(c.siGroupID).GetAsText())
>>
>> You'll see that FindObjects2 returns only the "Associated Models" groups
>> that are nested under lights and no others.  It seems on closer inspection
>> that they have different ClassIDs.
>>
>> If it were the other way round and it returned only groups that were
>> *not* "Associated Models" groups, then *perhaps* I could understand and
>> accept it, but the way it is now seems crazy, no?
>>
>>
>> DAN
>>
>> --------------------------
>> To unsubscribe: mail [email protected] with
>> subject "unsubscribe" and reply to the confirmation email.
>>
>
>
> --------------------------
> To unsubscribe: mail [email protected] with subject
> "unsubscribe" and reply to the confirmation email.
>
--------------------------
To unsubscribe: mail [email protected] with subject 
"unsubscribe" and reply to the confirmation email.

Reply via email to