This code works
Code: Select all
xsi= Application
lm = xsi.LogMessage
oSel = xsi.Selection
oRoot = xsi.ActiveSceneRoot
cluster = oSel(0).ActivePrimitive.Geometry.Clusters
for i in cluster:
if i.type == 'sample':
lm(i)
Code: Select all
i = [ i for i in cluster if i.type == 'sample']
Can any Python gurus's here tell me why?
Im using XSI version 7.01