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 's list comprehension in XSI

Python 's list comprehension in XSI

2005-03-28       - By Aloys Baillet

 Back
Reply:     1     2     3  

Salut Bernard,

Sorry, but your code is correct! I don't get any syntax error message...
Have you checked that you have selected the Python language in the
preferences;)?


Application.CreatePrim("Sphere", "MeshSurface", "", "")
oObj = Application.Selection(0)
aObjParams = [ str(oParam.name) for oParam in oObj.Parameters ]
Application.LogMessage( str( aObjParams  )  )


Cheers,


On Fri, 25 Mar 2005 23:16:42 -0500, Bernard Lebel
<softimage@(protected)> wrote:
> Hello,
>
> Whenever I try to run this line, I always get an invalid syntax error:
>
> aObjParams = [ str(oParam.name) for oParam in oObj.parameters ]
>
> I'm very new to list comprehension, and I don't see anything wrong the
> said syntax. Anyone has an idea?
>
> Thanks
> Bernard
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
> unsubscribe xsi
>


--
Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr
---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi