Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

SOP.pointAttribs

Still a little green? Ask your beginner's questions here

SOP.pointAttribs

Postby jeffazzo » Wed Sep 12, 2018 5:27 pm

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
jeffazzo
 
Posts: 2
Joined: Wed Sep 12, 2018 1:22 pm

Re: SOP.pointAttribs

Postby rob » Mon Sep 17, 2018 12:18 pm

You should be able to get to them directly:

Example:

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

Cheers,
Rob.
User avatar
rob
Staff
 
Posts: 1513
Joined: Tue Nov 13, 2007 1:14 am

Re: SOP.pointAttribs

Postby jeffazzo » Wed Sep 19, 2018 4:47 pm

Thank you for your help

it works perfectly !
jeffazzo
 
Posts: 2
Joined: Wed Sep 12, 2018 1:22 pm


Return to Beginners

Who is online

Users browsing this forum: No registered users and 8 guests