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?
 
Properties not available in Python?

Properties not available in Python?

2004-07-02       - By Bernard Lebel

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hello,

Trying out some ultra basic things in Python, in this case I'm trying a doc
example letter for letter, and it doesn't work! :-(

>From "Groups, Colleciton and Array" (XSI 3.5.11 docs):

# -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
oSelList = Application.Selection

for iSel in range(oSelList.Count):
  Application.LogMessage(oSelList.Item(iSel).FullName)
# -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---

When I run this code, I get this error:

#ERROR : "Traceback (most recent call last):
#  File "<Script Block >", line 4, in ?
#    Application.LogMessage(oSelList.Item(iSel).FullName)
#  File "C:\Python23\Lib\site-packages\win32com\client\__init__.py", line
454, in __getattr__
#    raise AttributeError, "'??????' object has no attribute '????????1'"
(repr(self), attr)
#AttributeError: '<win32com.gen_py.Softimage|XSI Object Model Library
v1.5.X3DObject instance at 0x557334576>' object has no attribute 'FullName'
# - [line 454]"


I mean, what the...?



Thanks
Bernard


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