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?
 
pythonwin ide and com tlb files

pythonwin ide and com tlb files

2005-04-04       - By Jerry Gamache

 Back
Reply:     1     2     3     4     5     6  

XSI has a script host and inside this host it is possible to access the global
application object using the call. When XSI is not running the XSI.Application
object has no idea how to start XSI and fails with the error you just saw.

Not a bug. The remote execution feature is complex to implement and is not
there.

You might want to put that code in a try/except bracket. That will allow you to
import the module in PyWin32 and continue exploring.

Jerry.

PS: Have you ever tried running PyAlaMode from within XSI. Good for quick
exploration if you can stand the instability and limitations.

-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Bernard Lebel
Posted At: Sunday, April 03, 2005 12:32 PM
Posted To: xsi
Conversation: pythonwin ide and com tlb files
Subject: Re: pythonwin ide and com tlb files


If I try to import a module in the PythonWin ide that has these lines:


import win32com
Application = win32com.client.Dispatch( 'XSI.Application' )


I get this nice error:


Traceback (most recent call last):
(...)
    Application = win32com.client.Dispatch( 'XSI.Application' )
AttributeError: 'module' object has no attribute 'client'


However when this is run in XSI there is no problem whatsoever.
Any idea?

Thanks
Bernard


Jerry Gamache wrote:
> No need to copy anything, just start PythonWin from the XSI application path.
..
>
> C:\> cd \Softimage\XSI_4.2\Application\bin
> C:\Softimage\XSI_4.2\Application\bin> C:\Python24\Lib\site-packages\pythonwin
\Pythonwin.exe

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

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