Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Python constants

Python constants

2005-04-22       - By Nick

 Back
Reply:     1     2  

Please ignore... doh! looking in the wrong place, sorry for the wasted
bandwidth...

On 4/22/05, Nick <nick.petit@(protected)> wrote:
> Hi there,
>
> I'm moving on to Python and slowly trudging through it, have read up a
> lot of the pythons related posts, the python stuff on XSIBLog etc...
> one thing has got me stumped though and that's why would, after
> importing the win32com.client constants as c, c.siString works but
> c.siControlCombo doesn't?
>
> When running this line:
> oItem = olayout.AddEnumControl( "Constraint", list, "Which
> constraint?", c.siControlCombo )
>
> I keep on getting this error:
> #ERROR : Traceback (most recent call last):
> #  File "<Script Block >", line 16, in ?
> #    oItem = olayout.AddEnumControl( "Constraint", list, "Which
> constraint?", c.siControlCombo )
> #  File "<COMObject <unknown>>", line 2, in AddEnumControl
> #  File "C:\Python24\lib\site-packages\win32com\client\dynamic.py",
> line 251, in _ApplyTypes_
> #    result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags,
> retType, argTypes) + args)
> #TypeError: Objects of type 'type' can not be converted to a COM VARIANT
>
> Cheers,
> Nick.
>

---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi