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?
 
Getting points in Python

Getting points in Python

2004-12-16       - By Bernard Lebel

 Back
Reply:     1     2     3     4  

Hello,

My first attempt at scripting point colors, more, in Python....



xsi = Application

# Get selected object
oSel = xsi.selection(0)

for oTriangle in oSel.activeprimitive.geometry.triangles:
  for oPoint in oTriangle.points:
    xsi.logmessage( oPoint.color.red )


This code barfs an

"AttributeError: '<win32com.gen_py.Softimage|XSI Object Model Library
v1.5.Color instance at 0x244926384>' object has no attribute 'red'"


However, this works fine:

xsi.logmessage(
oSel.activeprimitive.geometry.triangles(0).points(0).color.red )



Any idea what I'm doing wrong?


Thanks in advance
Bernard

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