this only works with xsiCollection not xsiSelection

On 27 February 2014 10:04, Stephen Blair <[email protected]> wrote:

>
> from sipyutils import si # win32com.client.Dispatch('XSI.Application')
> from sipyutils import siut # win32com.client.Dispatch('XSI.Utils')
> from sipyutils import siui # win32com.client.Dispatch('XSI.UIToolkit')
> from sipyutils import simath # win32com.client.Dispatch('XSI.Math')
> from sipyutils import log # LogMessage
> from sipyutils import disp # win32com.client.Dispatch
> from sipyutils import C # win32com.client.constants
>
>
> #import win32com.client
> oObj = disp( "XSI.Collection" )
> oObj.Items = Application.Selection
> x = oObj.FindObjectsByMarkingAndCapabilities( "kine.posx", C.siKeyable )
> print x
>
>
> On Thu, Feb 27, 2014 at 12:57 PM, Szabolcs Matefy <[email protected]>wrote:
>
>> Hey folks
>>
>>
>>
>> I'm new to Python...Anybody know how to use this command properly?
>> Apparently when I want to use this:
>>
>>
>>
>> Application.Selection.FindObjectsByMarkingAndCapabilities("", 2048)
>>
>>
>>
>> It throws this:
>>
>>
>>
>> AttributeError: <unknown>.FindObjectsByMarkingAndCapabilities
>>
>>
>>
>> Any idea?
>>
>>
>>
>>
>>
>> Cheers
>>
>>
>>
>> Szabolcs
>>
>>
>>  ___
>> This message contains confidential information and is intended only for
>> the individual named. If you are not the named addressee you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately by e-mail if you have received this e-mail by mistake and
>> delete this e-mail from your system. E-mail transmission cannot be
>> guaranteed to be secure or error-free as information could be intercepted,
>> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
>> The sender therefore does not accept liability for any errors or omissions
>> in the contents of this message, which arise as a result of e-mail
>> transmission. If verification is required please request a hard-copy
>> version. Crytek GmbH - http://www.crytek.com - Grüneburgweg 16-18, 60322
>> Frankfurt - HRB77322 Amtsgericht Frankfurt a. Main- UST IdentNr.:
>> DE20432461 - Geschaeftsfuehrer: Avni Yerli, Cevat Yerli, Faruk Yerli
>>
>
>

Reply via email to