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-03-17       - By Jerry Gamache

 Back
Reply:     1     2     3     4     5     6  

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

My solution was way too complicated. The shortcut can also be modified to
"Start in" there.

-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Jerry Gamache
Posted At: Thursday, March 17, 2005 11:30 AM
Posted To: xsi
Conversation: pythonwin ide and com tlb files
Subject: RE: pythonwin ide and com tlb files


The %SUMATRAPATH% stuff in the tlb is our way of supporting multiple versions
of XSI on the same machine without having to create a brand new registry entry
for each one of them.

You can use this method if you don't want to constantly modify your registry:

1) Create a folder for the TLB files:
  C:\> mkdir C:\Python24\TLBStore
2) Copy all Softimage TLB files there:
  C:\> copy C:\Softimage\XSI_4.2\Application\bin\*.tlb C:\Python24\TLBStore
3) Start PythonWin in that folder:
  C:\> cd \Python23\TLBStore
  C:\Python23\TLBStore> E:\Python24\Lib\site-packages\pythonwin\Pythonwin.exe

PythonWin will look in the current folder for the TLB files and will find them,
allowing you to MakePy and browse at will.

You will probably want to create a new shortcut for PythonWin\Soft in the start
menu and specify "C:\Python23\TLBStore" for the "Start in" folder.

Please do not copy the TLB files to any location in your %PATH% environment
variable (especially winnt\system32). This will lead to very serious and hard
to debug problems the next time you install a version of XSI because stale tlb
files will get loaded instead of the correct ones.


-- --Original Message-- --
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf
Of Brad Friedman
Posted At: Thursday, March 17, 2005 10:28 AM
Posted To: xsi
Conversation: pythonwin ide and com tlb files
Subject: pythonwin ide and com tlb files


I'm following Bernard's advice from a while ago and taking a look at
Python for XSI scripting.  I'm particularly excited about importing the
COM type libraries into the Pythonwin IDE and getting some code
completion help from the IDE.  I think this should work fine... except
that in the COM browser, all the softimage type libaries show up with a
note "si3dobjectmodel.tlb can not be loaded" or the like on them.

In the registry, I've noticed that they are set up without absolute
paths and such... so I thought perhaps using the following batch file
would help.

C:\Softimage\XSI_4.2\Application\bin\setevt.bat
Pythonwin.exe

but it doesn't seem to help at all.

In other IDEs for other languages I've had to point tlb importing
programs to the absolute path of the tlb files in order to get a proper
import.  But Pythonwin doesn't seem to have that capability.

I've contemplated hand hacking the regsitry to substitute absolute paths
but I'm warry.

Has anyone gotten this to work?  I'd really love to be able to properly
import the com libraries into the IDE so I can get the benefits of code
completion and all the other features.

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

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

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