Getting points in Python 2004-12-16 - By Bernard Lebel
Back 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
|
|