PDA

View Full Version : About getAlpha function


omidbrb
02-07-2010, 03:14 AM
Hi,

I have a problem using the getAlpha function. I'm calling getAlpha on the resulting object from the pick function:


intersect = win.pick(True, viz.WORLD, pos = [xNorm, yNorm])
alpha = intersect.object.getAlpha()


But whatever node I pick (even if transparent), getAlpha results 1, which means completely opaque.

Does anybody have an idea on that?

Thanks,
Omid

farshizzo
02-08-2010, 12:37 PM
Does the object have multiple sub-nodes with different material settings? If so, then this might be why you are not getting the correct alpha value.