SOP.pointAttribs

Hi guys!

I’m a beginner so :

I connect a Script SOP to particleSOP
I try to evaluate the velocity and all particle’s attribute with python.

To access particule (index 0) position, I write :

a = scriptOp.inputs[0]
k= a.points[0]

how to access the speed attribute (V, or liffe, Pw…) ?

Cheers,
Jeff

You should be able to get to them directly:

Example:

print(k.life[0], k.life[1], k.pstate[0])

Cheers,
Rob.

Thank you for your help

it works perfectly !