Jump to content
Sign in to follow this  

Get point attribute within groups using python

Recommended Posts

Hi all,

I've looked for an answer on the forum but couldn't find exactly what I am looking for, I'm sure this is super basic question (I'm learning python right now).

how can I reach point that are within different groups ? I want to do simple math operations for different groups of points, so the idea is that once I have access to points within a group I'll do something like MyAttrib = [p.attribValue("MyAttrib") for p in points] to do some statistics of MyAttrib




Share this post

Link to post
Share on other sites

I found the solution here

just change the points expression by :

points = [str(point.attribValue("myAttrib")) for point in group.points()]



Edited by Alexandre

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this