> Thanks Andy,
>
> That does the trick.
>
> Also, I have come across some really weird intermittent problems with
> XSI complaining about Python syntax.
>
> It sometimes spits out an error on a particular line. Then when I
> retype it verbatim, it works fine.
>
> Is this common?
No, usually there are a few typos when a line is re-typed. ;-p
> Andre
>
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
> Of Andy Jones
> Sent: November 1, 2006 4:07 PM
> To: XSI(at)Softimage.COM
> Subject: Re: Help with Python
>
> How about Application.ClassName()?
>
> -Andy
>
> Andre DeAngelis wrote:
>
> >Hi guys,
> >
> >Does anyone know of a Python equivalent of the typof function in
> >jscript?
> >
> >I am having some trouble converting a vbscript to Python so any help
> >would be grand.
> >
> >Here is the working VBscript version.
> >
> >set oObj = selection(0)
> >set clusters = oObj.ShapeAnimatedClusters
> >for each cls in clusters
> > LogMessage cls.name
> >Next
> >
> >I tried to convert this to Python with this:
> >
> >oObj = Application.selection(0)
> >clusters = oObj.ShapeAnimatedClusters
> >for cls in clusters:
> > Application.LogMessage (cls.name)
> >
> >When I run this, I get the following error:
> >
> >#TypeError: iteration over non-sequence
> >
> >No doubt this is a very trivial error.
> >
> >Any ideas?
> >
> >---
> >Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> >unsubscribe xsi
> >
> >
> >
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi